GATE CS 2008 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0190

We have a binary heap on n elements and wish to insert n more elements (not necessarily one after another) into this heap. The total time required for this is
  1. A
    \(\Theta\) (logn)
  2. B
    \(\Theta\) (n)
  3. C
    \(\Theta\) (nlogn)
  4. D
    \(\Theta (n^{2})\)

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/459/gate2008-47

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