The theorem (Fiat, Karp, Luby, Naor, Sleator, Young — 1991)
- Attributed with a joke that Tarjan is not on this one; also noted that the "McGeoch" here is a different person from the Bentley–McGeoch one, both at Amherst (
1:14:20,1:15:16). - Upper bound: there is a randomized paging algorithm with competitive ratio
2·H_kagainst oblivious adversaries, whereH_k = 1 + 1/2 + 1/3 + … + 1/k = ln k + Θ(1)(1:15:40). - Lower bound: any randomized scheme has competitive ratio
Ω(log k)(1:15:40). - So randomization takes paging from
Θ(k)down toΘ(log k)— the practical payoff of the oblivious-adversary assumption.
The algorithm: MARK
- Take one-bit LRU and resolve its unspecified choice uniformly at random: evict a uniformly random unmarked page (
1:16:43,1:17:17,1:17:44). - Contrast: LRU resolves the same choice by recency; MARK resolves it by a coin (
1:17:17). - Claim: MARK is
2·H_k-competitive (1:17:44).
Competitive ratio for randomized algorithms
-
Definition. A randomized algorithm
Aisr-competitive if for all sequencesS:E[cost_A(S)] ≤ r · cost_OPT(S) + constant(1:18:36,1:19:15)
Proof sketch (started, finished next lecture)
- Break the sequence into phases, as in one-bit LRU: a phase begins when everything is unmarked and the new page arrives (
1:19:57). - Classify pages at a point in time (
1:20:38,1:21:53):- clean — not accessed in the last phase and not yet in this phase
- stale — accessed last phase but not yet this phase
- Two bounds to prove: if a phase has
Lclean accesses, then OPT pays ≥L/2and MARK pays ≤2·L·H_kin expectation (1:21:53,1:23:14). - Summing over phases yields the
H_kcompetitive ratio; the lecturer flags that a correction term must be added and subtracted but telescopes across phases (1:23:14). - The lecture ends here — the full proof is deferred to the next class (
1:23:14).