Skip to content

AVL tree

storing

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

Each number from 1 to 99 is put in, in the order given. Up to 7 of them, separated by commas or spaces, for example 10, 20, 30, 40.