Why it matters
AVL trees guarantee O(log n) balance. Foundation of memory-based sorted structures.
Advertisement
The architecture
Balance factor per node.
Single/double rotations.
O(log n) all ops.
Advertisement
How it works end to end
Adelson-Velsky-Landis 1962.
Rotations on insert/delete.
Strict height balance.