1.

What is the time complexity of for achieving competitive ratio by tango tree?(a) O (log n)(b) O (n^2)(c) O (n!)(d) O (log (log n))My question is based upon Binary Trees topic in section Binary Trees of Data Structures & Algorithms II had been asked this question in an internship interview.

Answer»

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

The explanation is: TANGO tree is an online binary SEARCH tree whose time COMPLEXITY is O (log (log n)) when compared to the time complexity of offline binary search tree model. Online algorithm processes input or data PROVIDED piece by piece.



Discussion

No Comment Found

Related InterviewSolutions