What is the primary advantage of using an AVL tree over a regular binary search tree?
-
AVL trees are easier to implement.
-
AVL trees maintain a balanced height, ensuring O(log n) time complexity for search operations.
-
AVL trees allow duplicate values.
-
AVL trees require less memory.