1.

What is the amortized cost per operation of a skew heap?(a) O(N)(b) O(N log N)(c) O(N^2)(d) O(log N)My question is from Heap in division Heap of Data Structures & Algorithms IThe question was asked in quiz.

Answer»

The correct choice is (d) O(log N)

For explanation: The AMORTIZED cost PER operation of a SKEW heap is O(log N) since the WORST case ANALYSIS of skew heap is O(N) and splay tree is O(M log N).



Discussion

No Comment Found

Related InterviewSolutions