Vidyalelo
Data Structure · Q12

Heaps

Programming · Data Structure · question 12

Q12

In a min-heap, what happens when you decrease the value of a node?

A.
The heap property is maintained by moving the node up the tree.
Answer
B.
The node is removed and the heap is restructured.
C.
The node is placed at the end of the heap.
D.
The heap property is maintained by moving the node down the tree.

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board