AVL Tree

Self-balancing BST — rotations keep height difference <= 1
AVL Tree: self-balancing BST. Balance factor shown inside each node. Rotations keep tree height O(log n).
Balanced Active Unbalanced Rotating