AVL tree
Level 3 of 3
Also called Self-balancing binary search tree and Adelson-Velsky and Landis tree.
A search tree that keeps itself short. A number goes in as in any search tree; then, climbing back to the top, each place's two sides are compared, and where one side is two levels higher the tree turns there to lift it, so a number is never far from the top.
- numbers compared
- 0
- turns
- 0
step 1 of 1
Examples