GATE CS 2009 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0176

Consider a binary max-heap implemented using an array. Which one of the following array represents a binary max-heap?
  1. A
    {25,12,16,13,10,8,14}
  2. B
    {25,14,13,16,10,8,12}
  3. C
    {25,14,16,13,10,8,12}
  4. D
    {25,14,12,13,10,8,16}

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

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1341/gate2009-59

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