GATE CS 2016 · Set-2 · Arrays & Matrix Representation

NAT · 2 marks · Problem PROG-DSTR-0130

A complete binary min-heap is made by including each integer in [1,1023] exactly once. The depth of a node in the heap is the length of the path from the root of the heap to that node. Thus, the root is at depth 0. The maximum depth at which integer 9 can appear is. .

Numerical answer (NAT).

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

Show the worked solutionOfficial GATE Answer Key: [8.0, 8.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/39585/gate2016-2-34

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