1.

What is order of resultant heap after merging two tree of order k?(a) 2*k(b) k+1(c) k*k(d) k+logkAsked question is from Binomial and Fibonacci Heap in section Heap of Data Structures & Algorithms IThis question was addressed to me in an online quiz.

Answer»

Right option is (B) k+1

Easiest EXPLANATION - This COULD be EASILY verified by looking at the structure of a binomial heap.



Discussion

No Comment Found

Related InterviewSolutions