An AVL tree is a self-balancing binary search tree. It is named after inventors Adelson-Velsky and Landis. The tree automatically keeps itself balanced to ensure fast operations.
AVL trees have many important properties:
AVL trees use rotations to stay balanced. There are four types:
An AVL tree showing balance factors at each node.