GATE CS 2015 · Set-3 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0135

Consider the following array of elements. (89,19,50,17,12,15,2,5,7,11,6,9,100) The minimum number of interchanges needed to convert it into a max-heap is
  1. A
    4
  2. B
    5
  3. C
    2
  4. D
    3

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/8418/gate2015-3-20

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