A balanced binary tree where the height of the two subtrees (children) of a node differs by at most one.
Clearly, the binary search tree becomes more efficient if the item insertion and removal algorithms are modified in such way that a certain amount of balancing is guaranteed. The colored nodes are those that do not obey to the AVL rule. |
AVL trees Not AVL trees |