A tiny fixed-size cache and a stream of requests. Watch LRU, LFU and FIFO each evict a different victim when the cache fills — and compare their hit ratios on the same workload to see why the policy matters.
Run the demo under each policy and compare the hit ratio — same 10 requests, different evictions, different outcomes.