A B-Tree is a self-balancing version of a standardbinary search tree. As a data structure, it is abstract and non-linear. The order of a B-tree defines the maximum number of child nodes a node can have.
%%🖋 Edit in Excalidraw, and the light exported image%%
Properties
For a B-Tree of order
-
Every node has at most children.
-
Every node, except for the root and the leaves, has at least children (i.e. rounded up)
-
The root node has at least two children (unless it is the only node)
-
All leaves appear on the same level.
-
A non-leaf node with children contains keys.
-
A B-Tree is still a type of search tree, so it has some properties enforced on child nodes: