- AVL trees are binary search trees where the balance factor of every node is between -1 and 1, ensuring the tree remains balanced during insertions and deletions.
- When a node's balance factor becomes 2 or -1 after an insertion or deletion, rotations are performed to balance the tree. Single rotations are LL or RR, double rotations are LR or RL.
- Rotations may be needed during insertion to balance the tree. Deletions may require rebalancing along the path from the deleted node to the root. At most one rotation is required per insertion, but deletions could require O(log n) rotations.