B-tree
The B-tree is a search tree with non-leaf nodes that only have keys, and the data is in the leaves. B-trees are used to reduce the number of disk accesses. The B-tree is a self-adjusting data structure that keeps data sorted. B-trees store keys in a sorted order for easy traversal. They can handle multiple insertions and deletions.
Knuth initially came up with the concept of this data structure. B-trees consist of nodes that have at most n children. Every non-leaf node in the tree has at least n/2 child nodes. Rudolf Bayer and Edward M. McCreight were the first to implement this data structure in their work. B-trees are used in HFS and Reiser4 filesystems to allow for quick access to any block in a file. On average, space usage is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access