1.

Which of the following data structure is preferred to have lesser search time when the list size is small?(a) search tree(b) sorted list(c) self organizing list(d) linked listThis intriguing question comes from Types of Lists topic in chapter Types of Lists of Data Structures & Algorithms II had been asked this question during an interview.

Answer»

Correct answer is (c) self organizing list

The best explanation: Self-organizing list is EASY and simple to IMPLEMENT than search tree and it REQUIRES no additional space. So using self organizing list is PREFERRED when list size is small.



Discussion

No Comment Found

Related InterviewSolutions