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 741 students.
Show answer
Correct answer: A
The worked solution is available to enrolled students.
Video solution available to enrolled students.
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…