GATE CS 2016, set 2 · Question 44 · Programming and Data Structures · Numerical answer (NAT) · 2 marks · no negative marks

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 ______.

Answer

Answer 8

Answer from the official GATE CS 2016 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes