Cache Replacement: Which Policy Removes the Least Recently Used Block?

Cache Replacement: Which Policy Removes the Least Recently Used Block?

Verified Sources
Nov 4, 2026

The algorithm that removes the block that was least recently used (i.e., whose most recent access time is the oldest) is LRU. In a cache, LRU evicts the cache block with the oldest “last referenced” timestamp, matching the phrase “least recently used block.”

To contrast:

  • FIFO evicts the block that entered the cache first, regardless of how recently it was accessed.
  • Random Replacement evicts a randomly selected cache block.

Footnotes

  1. LRU (Least Recently Used) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines LRU as evicting the least recently used item based on last access. ↩

  2. FIFO (First-In First-Out) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines FIFO as evicting the oldest inserted/arrived item. ↩

  3. Random replacement (cache) (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Describes random replacement as evicting a random cache block. ↩

Cache Replacement Policies (LRU vs FIFO vs Random)

Key idea for the given question

The question asks: “Which cache replacement algorithm removes the least recently used block?”
By definition, least recently used corresponds directly to LRU.

So the correct choice among (i) FIFO, (ii) LRU, (iii) Random Replacement is: (ii) LRU.

Footnotes

  1. LRU (Least Recently Used) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines LRU as evicting the least recently used item based on last access. ↩ ↩2

Decide the correct replacement policy

  1. 1
    Step 1

    “Least recently used block” refers to the block whose last access happened farthest in the past.

  2. 2
    Step 2

    Match “oldest last access time” to LRU.

  3. 3
    Step 3

    FIFO evicts by arrival order, not last access; Random chooses uniformly at random.

  4. 4
    Step 4

    Therefore, the correct algorithm is LRU (option (ii)).

Side-by-side comparison (what gets evicted?)

PolicyWhat it evictsMatches “least recently used”?
(i) FIFOOldest by insertion/arrival time No
(ii) LRUOldest by last-access time (least recently used) Yes
(iii) Random ReplacementRandomly chosen cache block No

Footnotes

  1. FIFO (First-In First-Out) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines FIFO as evicting the oldest inserted/arrived item. ↩

  2. LRU (Least Recently Used) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines LRU as evicting the least recently used item based on last access. ↩

  3. Random replacement (cache) (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Describes random replacement as evicting a random cache block. ↩

Exam shortcut

If the wording contains “least recently used” or “LRU,” the answer is almost always LRU—because that’s the definition.

Common confusion

Students often confuse FIFO with LRU. FIFO tracks insertion order; LRU tracks recent access history. The names (First-In vs Least Recently Used) are clues to the eviction criterion. 2

Footnotes

  1. FIFO (First-In First-Out) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines FIFO as evicting the oldest inserted/arrived item. ↩

  2. LRU (Least Recently Used) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines LRU as evicting the least recently used item based on last access. ↩

How eviction criterion differs

Evict by insertion time

FIFO view

Oldest inserted block is removed, independent of accesses. "

Footnotes

  1. FIFO (First-In First-Out) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines FIFO as evicting the oldest inserted/arrived item. ↩

Evict by last-access time

LRU view

Block with the oldest last reference is removed. "

Footnotes

  1. LRU (Least Recently Used) page (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Defines LRU as evicting the least recently used item based on last access. ↩

Evict randomly

Random view

Any block may be selected as the victim with equal probability. "

Footnotes

  1. Random replacement (cache) (Wikipedia) - https://en.wikipedia.org/wiki/Cache_replacement_policies - Describes random replacement as evicting a random cache block. ↩

FAQ

Knowledge Check

Question 1 of 3
Q1Single choice

Which cache replacement algorithm removes the least recently used block?