1.

Why is this heap named leftist heap?(a) only left subtrees exist(b) the tree is biased to get deep down the left(c) it is balanced(d) right trees are unbalancedThe origin of the question is Heap topic in chapter Heap of Data Structures & Algorithms II got this question in my homework.

Answer»

Right option is (B) the tree is biased to GET DEEP down the left

The best explanation: The heap is named as leftist heap because it tends to have deep left paths. It FOLLOWS that the right path ought to be SHORT.



Discussion

No Comment Found

Related InterviewSolutions