1.

In _____________ method, whenever a node is accessed, it might move to the head of the list if its number of accesses becomes greater than the records preceding it.(a) least recently used(b) count(c) traspose(d) exchangeMy doubt stems from Types of Lists topic in section Types of Lists of Data Structures & Algorithms IThe question was posed to me in examination.

Answer»

The correct answer is (b) count

Easy explanation - In the count method, the NUMBER of times a node was ACCESSED is counted and is stored in a counter variable associated with each node. Then the NODES are arranged in DESCENDING order based on their ACCESS counts. And the node with highest access count is head of the list.



Discussion

No Comment Found

Related InterviewSolutions