1.

What is the time complexity for storing the maximum number of elements in Van Emde Boas tree if M is the maximum number of elements?(a) O (log M)(b) O (M!)(c) O (M)(d) O (1)This interesting question is from Trees topic in division Trees of Data Structures & Algorithms IThe question was posed to me during an internship interview.

Answer»

Correct option is (c) O (M)

The BEST I can explain: In ORDER to store the MAXIMUM number of elements in Van Emde Boas data structure where M is the maximum number of elements, the tree has great EFFICIENCY for storing them. So the time complexity for WORST case is found to be O (M).



Discussion

No Comment Found

Related InterviewSolutions