GATE | Gate IT 2008 | Question 12
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)
Answer: (A)
Explanation: AVL tree is a balanced tree.
AVL tree’s time complexity of searching = θ(logn)
But a binary search tree, may be skewed tree, so in worst case BST searching time = θ(n)
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 2008 | Question 29
- GATE | GATE CS 2008 | Question 23
- GATE | GATE CS 2008 | Question 85
- GATE | GATE CS 2008 | Question 21
- GATE | GATE CS 2008 | Question 20
- GATE | GATE CS 2008 | Question 85
- GATE | GATE CS 2008 | Question 85
- GATE | GATE CS 2008 | Question 17
- GATE | GATE CS 2008 | Question 16
- GATE | GATE CS 2008 | Question 15
- GATE | GATE CS 2008 | Question 24
- GATE | GATE CS 2008 | Question 25
- GATE | GATE CS 2008 | Question 28
- GATE | GATE CS 2008 | Question 27
- GATE | GATE CS 2008 | Question 26



