+1 vote
in Data Structures & Algorithms I by (88.2k points)
Which of the following operations does not destroy the leftist heap property?

(a) insert

(b) merge

(c) delete

(d) swap

The query is from Heap topic in portion Heap of Data Structures & Algorithms I

This question was addressed to me in class test.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
The correct answer is (c) delete

Best explanation: Performing insert and merge operations on the right path could destroy the leftist heap property. It is extremely easy to restore that property.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...