Show a data structure for LRU cache.
Anonymous
How about using a decrementing counter per cycle per block? In every cycle, increment the counter (to its saturation) if the same is being looked for. Else, decrement it. Evict the block if counter =0.
Check out your Company Bowl for anonymous work chats.