+1 vote
in Data Structures & Algorithms I by (88.2k points)
In skew heaps, certain constraints are to be met in order to perform swapping.

(a) true

(b) false

This question is from Heap in section Heap of Data Structures & Algorithms I

I have been asked this question during an interview.

1 Answer

+1 vote
by (737k points)
selected by
 
Best answer
The correct choice is (b) false

Best explanation: In skew heaps, swaps are unconditional. It is done with the exception that the largest of all nodes does not have its children swapped.

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

...