1.

If there are c children of the root, how many calls to the merge procedure is required to reassemble the heap?(a) c(b) c+1(c) c-1(d) 1Asked question is from Heap in division Heap of Data Structures & Algorithms IThis question was addressed to me in class test.

Answer»

Correct ANSWER is (C) c-1

Best explanation: If there are c children of the root, then c-1 MERGES are required to reassemble the pairing heap.



Discussion

No Comment Found

Related InterviewSolutions