GATE CS 2015 · Set-2 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0185

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
    \(\Omega (log n)\)
  2. B
    \((n)\)
  3. C
    \(\Omega (n \; log n)\)
  4. D
    \(\Omega (n^{2})\)

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/8091/gate2015-2-12

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com