1.

What is the worst case time in searching minimum value in weak -heap?(a) O(log n)(b) O(n)(c) O(n logn)(d) O(1)This intriguing question comes from Weak Heap topic in portion Heap of Data Structures & Algorithms IThe question was posed to me in examination.

Answer»

The correct CHOICE is (d) O(1)

EASY EXPLANATION - Weak HEAP is an array based FORM that supports the operation of finding a minimum in O(1).



Discussion

No Comment Found

Related InterviewSolutions