GATE CS 2013 · Question 30 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

The number of elements that can be sorted in Θ(log n) time using heap sort is

  1. (A) Θ(1)
  2. (B) Θ(√(log n))
  3. (C) Θ((log n)/(log log n))
  4. (D) Θ(log n)
Answer

Answer (C)

Answer from the official GATE CS 2013 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes