#
Section 26.7 The AVLTree Class
5. In a(n) , the element j to be removed is always at the root.
a. binary tree
b. binary search tree
c. AVL tree
d. binary heap
#
6. In a(n) , the element just inserted is always at the leaf.
a. binary search tree
b. AVL tree
c. binary heap
#
8. What is the preorder traversal of the elements in a AVL tree after inserting 3, 4, 45, 21, 92, 12 in this order?
a. 3 4 12 21 92 45
b. 3 4 12 21 45 92
c. 45 4 3 21 12 92
d. 45 21 12 92 3 4
e. 21 4 3 12 45 92
#
Section 26.9 AVL Tree Time Complexity Analysis
4. The time complexity for insertion, deletion, and search is O(logn) for a(n) .
a. binary tree
b. binary search tree
c. AVL tree
d. binary heap
#
7. The average time–complexity for insertion, deletion, and search in a(n) is O(logn).
a. binary search tree
b. AVL tree
c. binary heap