1.

Is it true that splay trees have O(logn) amortized complexity ?(a) true(b) falseEnquiry is from Splay Tree topic in section Binary Trees of Data Structures & Algorithms II had been asked this question by my school teacher while I was bunking the class.

Answer»

The correct choice is (a) true

Best EXPLANATION: We GO with amortized time complexity when we feel that not all OPERATIONS are worst and some can be efficiently done. in splay TREES not all splay operations will lead to O(logn) worst case complexity.



Discussion

No Comment Found

Related InterviewSolutions