2010년 11월 19일 금요일

B-tree

http://en.wikipedia.org/wiki/B-tree

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]

B-tree
TypeTree
Invented1972
Invented byRudolf Bayer, Edward M. McCreight
Time complexity
in big O notation

AverageWorst case
Space

SearchO(log n)O(log n)
InsertO(log n)O(log n)
DeleteO(log n)O(log n)


A B-tree of order 2 (Bayer & McCreight 1972) or order 5 (Knuth 1997).

댓글 없음:

댓글 쓰기