Consider the page caching problem where the memory cache can holdm
pages, and we are given a sequencePofnrequests taken from a pool
ofm+1 possible pages. Describe the optimal strategy for the offline
algorithm and show that it causes at mostm+n/mpage misses in total,
starting from an empty cache.
Describe an efficient external-memory algorithm that determines whether
an array ofnintegers contains a value occurring more thann/2 times.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here