 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| |
To
destroy a 2-node
|
|
|
|
|
First,
attempt to steal from a
|
|
sibling
to make a 3-node
|
|
|
(must
pass item through
|
|
|
parent
to ensure order
|
|
|
remains
valid)
|
|
|
|
|
If that
doesnt work then
|
|
|
sibling
is also a 2-node;
|
|
|
combine
with sibling to steal
|
|
an
item from the parent to
|
|
|
make a
4-node
|
|
|
|
|
Note:
parent is never a 2-
|
|
|
node,
so can always steal
|
|
|
from
parent if necessary
|
|