A plain BST can degenerate into a linked list (O(n) operations) if keys arrive in sorted order. Self-balancing BSTs — like AVL and red-black trees — automatically rotate nodes after insertions/deletions to keep the height ~log n, guaranteeing O(log n) operations.
