Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2015 Set 1
Questions

Q32

MCQ2 marks, −0.67Data structuresEasy

Consider a max heap, represented by the array: 40,30,20,10,15,16,17,8,440, 30, 20, 10, 15, 16, 17, 8, 4.

Array index123456789Value4030201015161784\begin{array}{|l|l|l|l|l|l|l|l|l|l|}\hline \text{Array index} & \text{1} & \text{2} & \text{3} & \text{4} & \text{5} & \text{6} & \text{7} & \text{8} & \text{9} \\\hline \text{Value} & \text{40} & \text{30} & \text{20} & \text{10} &\text{15} & \text{16} & \text{17} & \text{8} & \text{4} \\\hline \end{array}

Now consider that a value 3535 is inserted into this heap. After insertion, the new heap is

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.