A generalization of the binary search tree is the B-Tree , which works for branches from 2 to above. This is not the only way to do this, but it is a common one.
Roughly how this works, if inserting or deleting results in the loss of a tree, it will steal an element or space from a neighboring node. Even if this is not enough to keep the tree in balance, its height will be changed to make room.
SingleNegationElimination
source share