The relationship of skew heaps to leftist heaps is analogous to that of?

Category: QuestionsThe relationship of skew heaps to leftist heaps is analogous to that of?
Editor">Editor Staff asked 5 months ago

The relationship of skew heaps to leftist heaps is analogous to that of?
 
(a) Splay tree and AVL tree
 
(b) Red black tree and AVL tree
 
(c) Binary tree and Splay tree
 
(d) Binary tree and Red black tree
 
The origin of the question is Heap topic in chapter Heap of Data Structures & Algorithms I
 
The question was asked during an internship interview.

1 Answers
Editor">Editor Staff answered 5 months ago

Right choice is (a) Splay tree and AVL tree
 
The best I can explain: Splay tree is a self -adjusting version of AVL tree. Similarly, skew heap is a self-adjusting version of leftist heap.


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: 40702