GATE CS 2015, set 2 · Question 22 · Programming and Data Structures · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider a complete binary tree where the left and the right subtrees of the root are max-heaps. The lower bound for the number of operations to convert the tree to a heap is

  1. (A) Ω(log n)
  2. (B) Ω(n)
  3. (C) Ω(n log n)
  4. (D) Ω(n²)
Answer

Answer (A)

Answer from the official GATE CS 2015 answer key.

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