1.

Which of the following method performs poorly when elements are accessed in sequential order?(a) count method(b) move to front method(c) transpose meth(d) ordering methodI'd like to ask this question from Types of Lists topic in chapter Types of Lists of Data Structures & Algorithms IThis question was addressed to me in a job interview.

Answer»

Right CHOICE is (b) move to FRONT method

Easy explanation - Move-to-front method performs POORLY when the elements are accessed in sequential order, especially if that sequential order is then repeated multiple TIMES.



Discussion

No Comment Found

Related InterviewSolutions