Vidyalelo
Data Structure · Q18

Heaps

Programming · Data Structure · question 18

Q18

How do you restore the heap property after extracting the maximum element from a max-heap?

A.
By performing a heapify operation.
Answer
B.
By reordering the entire heap.
C.
By inserting a new maximum element.
D.
By balancing the tree manually.

Answer: Option A

Solution

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