Not to be confused with Binary tree.
In computer science, a B-tree is a tree data structure that keeps data sorted and allows searches, sequential access, insertions, and deletions in logarithmic amortized time. The B-tree is a generalization of a binary search tree in that a node can have more than two children. (Comer, p. 123) Unlike self-balancing binary search trees, the B-tree is optimized for systems that read and write large blocks of data. It is commonly used in databases and filesystems.
Contents
[hide]- 1 Overview
- 2 The database problem
- 3 Technical description
- 4 Best case and worst case heights
- 5 Algorithms
- 6 B-trees in filesystems
- 7 Variations
- 8 See also
- 9 Notes
- 10 References
- 11 External links
B-tree | ||
---|---|---|
Type | Tree | |
Invented | 1972 | |
Invented by | Rudolf Bayer, Edward M. McCreight | |
Time complexity in big O notation | ||
Average | Worst case | |
Space | ||
Search | O(log n) | O(log n) |
Insert | O(log n) | O(log n) |
Delete | O(log n) | O(log n) |
댓글 없음:
댓글 쓰기