GATE 2014 CS (CS1) – Question 54
A length-N cache-block access sequence contains n unique addresses. Distinct block addresses between consecutive accesses to the same block are bounded above by k. Find miss ratio for a cache of associativity A ≥ k using least-recently-used replacement.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) $n/N$
Explanation
The intended reasoning is that all accesses after a block’s first are hits, leaving n compulsory misses in N accesses, giving **n/N,A**. Strictly this needs fewer than A distinct intervening competing blocks; the printed A≥k with an inclusive k bound permits eviction at A=k. The official answer retains the intended sufficient-capacity assumption.