Question: What is the primary advantage of using an AVL tree over a regular binary search tree?
Options:
Correct Answer: AVL trees maintain a balanced height, ensuring O(log n) time complexity for search operations.
Solution:
AVL trees maintain a balanced height, which ensures that search operations can be performed in O(log n) time, unlike regular binary search trees which can degrade to O(n) in the worst case.