1.

What is the time complexity for searching a key or integer in Van Emde Boas data structure?(a) O (log M!)(b) O (M!)(c) O (M^2)(d) O (log (log M))Question is from Trees in division Trees of Data Structures & Algorithms II had been asked this question in an interview for internship.

Answer»

Right CHOICE is (d) O (log (log M))

For explanation: In ORDER to search a KEY or integer in the Van Emde Boas data structure, the operation can be performed on an associative array. Hence, the time COMPLEXITY for searching a key or integer in Van Emde Boas data structure is O (log (log M)).



Discussion

No Comment Found

Related InterviewSolutions