Minimum degree
This simulator uses the standard minimum-degree definition t. A non-root node contains between t − 1 and 2t − 1 keys.
A B-Tree is a balanced multiway search tree designed to keep its height small. Each node stores several sorted keys and can have several children. B-Trees are widely used in databases and file systems because one node can correspond to one storage page.
Example B-Tree loaded. Choose an operation.
non-root node:
minimum keys = t - 1
maximum keys = 2t - 1
maximum children = 2t
before descending into a full child:
split the child
move its median key to the parentThis simulator uses the standard minimum-degree definition t. A non-root node contains between t − 1 and 2t − 1 keys.
Insertion never descends into a full child. The child is split first, and its median key moves into the parent.
Before deletion descends into a minimally filled child, it borrows from a sibling or merges with one so deletion remains valid.
This is a B-Tree: records may be represented by keys in internal or leaf nodes. A B+ Tree stores records in leaves and usually links its leaves.
| Invariant | Meaning |
|---|---|
| Sorted keys | Keys inside every node remain in increasing order. |
| Child ranges | Each child contains only keys in the range defined by adjacent parent keys. |
| Occupancy | Except for the root, every node has at least t − 1 keys. |
| Balance | Every leaf appears at the same depth. |