Overview
A B-Tree keeps many keys per node and maintains all leaves at the same depth, reducing expensive storage reads.
Stores sorted keys in wide balanced nodes for efficient disk or page access.
Compact metadata for implementation and discovery.
A B-Tree keeps many keys per node and maintains all leaves at the same depth, reducing expensive storage reads.
Quick facts
Runtime and memory behavior at a glance.
Best
O(log n)
Average
O(log n)
Worst
O(log n)
Space
O(n)
Show multi-key nodes splitting while tree height stays small.
B-Tree operates in O(log n) time and O(n) space within the Balanced Search Tree family. Often compared with Red-Black Tree and Binary Search Tree.
What each reference supports for this entry.
Original B-tree paper supporting balanced multiway search trees for external storage.
Open sourceAlgorithms textbook support for B-Tree's invariant, correctness argument, and asymptotic analysis.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
B-trees optimize block-oriented ordered search, while red-black trees optimize pointer-based memory search.