Explain the purpose of a self-balancing binary search tree.
A self-balancing binary search tree automatically maintains balance during insertions and deletions, preventing degeneration into a linked list and ensuring efficient search operations.