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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!