1.

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 treeThe origin of the question is Heap topic in chapter Heap of Data Structures & Algorithms IThe question was asked during an internship interview.

Answer»

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.



Discussion

No Comment Found

Related InterviewSolutions