 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
What
we do is rotate the tree to make it balanced
|
|
|
| • |
Rotations
are not necessary after every insertion
|
|
|
|
&
deletion (it is only needed when the height
|
|
|
|
differs
by more than 1)
|
|
|
|
– |
experiments
indicate that deletions in 78% of the cases
|
|
|
|
require
no rebalancing
|
|
|
|
– |
and
only 53% of the insertions do not bring the tree out
|
|
|
of
balance
|
|