Control the tree
Insert values into a B-tree and inspect how the structure rebalances itself.
B-tree rule
A B-tree keeps each node between t - 1 and 2t - 1 keys.
- Each node stores keys in sorted order.
- Every internal node has at most 2t children.
- A node with k keys has k + 1 children when it is internal.
- All leaves stay at the same depth.
- Splits happen when a node exceeds its maximum key count.
Live tree
Each box represents one B-tree node.
Set a degree and insert a value to build the tree.
Operation log
The latest insert, search, or delete sequence is shown here.
The split and navigation steps will appear here.