- The exact meaning of
underflow is:
- A node that violates the
subtree range condition
is in an overflow (too many subtrees)
or in an
underflow (too few subtrees)
condition
|
- You will see that delete will
also propagate up into
the tree by a
merge operation
- The merge operation
will remove:
- one entry
- one subtree
(the child node that got "merged into oblivion" will disappear)
|
- The resulting node
in a 2,4-tree will
have:
- Zero entries
- But: One subtree
|
|
- So technically, the node
is not empty, but
underflow because:
- Number of subtrees of a node
in a 2,4-tree must be
between 2 to 4
- The underflow node has
1 subtree
|
|