GATE CS 2003 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0244

In a heap with n elements with the smallest element at the root, the \(7^{th}\) smallest element ban be found in time
  1. A
    \(\Theta (nlogn)\)
  2. B
    \(\Theta (n)\)
  3. C
    \(\Theta (logn)\)
  4. D
    \(\Theta (1)\)

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1110/gate2003-23

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