Which of the following is TRUE?

GATE · 2008 · IT

Which of the following is TRUE?

  1. A.

    The cost of searching an AVL tree is θ (log n) but that of a binary search tree is O(n)

  2. B.

    The cost of searching an AVL tree is θ (log n) but that of a complete binary tree is θ (n log n)

  3. C.

    The cost of searching a binary search tree is O (log n ) but that of an AVL tree is θ(n)

  4. 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…