Which of the heaps is implemented by the following figure?

Category: QuestionsWhich of the heaps is implemented by the following figure?
Editor">Editor Staff asked 5 months ago

Which of the heaps is implemented by the following figure?
 
(a) fibonacci heaps
 
(b) pairing heap
 
(c) skew heap
 
(d) leftist heap
 
The above asked question is from Heap in portion Heap of Data Structures & Algorithms I
 
This question was addressed to me in quiz.

1 Answers
Editor">Editor Staff answered 5 months ago

Correct answer is (b) pairing heap
 
The best I can explain: The above figure is a representation of a pairing heap because it has left children and right siblings.


Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17
Articles: 40701