1.

What is the efficiency of merge used in leftist heaps?(a) O(N)(b) O(N log N)(c) O(M log N)(d) O(log N)Origin of the question is Heap topic in division Heap of Data Structures & Algorithms IThe question was posed to me in an interview for job.

Answer»

Correct answer is (d) O(LOG N)

The best explanation: The efficiency of MERGE operations in leftist heap is mathematically found to be O( log N) which is the same in binary heaps.



Discussion

No Comment Found

Related InterviewSolutions