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

MCQ · 1 mark · Problem PROG-DIVC-0173

Let H be a binary min-heap consisting of n elements implemented as an array. What is the worst case time complexity of an optimal algorithm to find the maximum element in H?
  1. A
    \(\Theta (1)\)
  2. B
    \(\Theta (\log n)\)
  3. C
    \(\Theta ( n)\)
  4. D
    \(\Theta (n \log n)\)

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

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/357538/gate-cse-2021-set-2-question-2

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