What is a binary search tree (BST)?
Left subtree < root < right subtree.
What is the difference between a BST and a heap?
BST supports ordered access, Heap is optimized for min/max extraction.
What is an AVL tree?
Self-balancing BST.
What is the purpose of tree rotations in AVL trees?
Used in AVL trees to maintain balance.