1.

What is the time complexity for inserting 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))My doubt stems from Trees in section Trees of Data Structures & Algorithms II had been asked this question in a job interview.

Answer»

Correct answer is (a) O (log M!)

The best explanation: In order to insert 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 inserting a key or integer in Van Emde Boas data structure is O (log (log M)).



Discussion

No Comment Found

Related InterviewSolutions