Binary Heaps questions

Q41

GATE CS 2024 CS-1Tree Data StructuresMCQ2 marks−2/3 if wrong
An array [82, 101, 90, 11, 111, 75, 33, 131, 44, 93] is heapified. Which one of the following options represents the first three elements in the heapified array?
Show answer without attempting

Answer: D

Q43

GATE CS 2024 CS-1Tree Data StructuresMCQ2 marks−2/3 if wrong
Consider a binary min-heap containing 10510^5 distinct elements. Let kk be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values of kk is
Show answer without attempting

Answer: A

0/20 correct0 marks

Related topics in Tree Data Structures