Which of the following is TRUE?
GATE · 2008 · IT
Which of the following is TRUE?
- A.
The cost of searching an AVL tree is θ (log n) but that of a binary search tree is O(n)
- B.
The cost of searching an AVL tree is θ (log n) but that of a complete binary tree is θ (n log n)
- C.
The cost of searching a binary search tree is O (log n ) but that of an AVL tree is θ(n)
- D.
The cost of searching an AVL tree is θ (n log n) but that of a binary search tree is O(n)
Attempted by 788 students.
Sign up free to check your answer
Sign up freeLoading lesson…