Question: 1. [10 marks] Consider the following rather stupid caching algorithm. Suppose a page is re- quested and it is not in the cache. If there
![1. [10 marks] Consider the following rather stupid caching algorithm. Suppose](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5407577de8_85266f54074df9e4.jpg)
1. [10 marks] Consider the following rather stupid caching algorithm. Suppose a page is re- quested and it is not in the cache. If there is no empty slot in the cache, then evict all the pages in the cache. Put the requested page into the cache. Prove that this algorithm has competitive ratio k. Here k is the size of the cache, and the cost model is to charge 1 every time a page is evicted from the cache
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
