
Harvard University · 1:24:56 · Watch on YouTube
Summary
A university lecture in two halves. The first half completes the analysis of MARK, the randomized paging algorithm of Fiat et al., proving it is 2·H_K competitive via a phase-based argument on "clean" and "stale" pages, then proving a matching-up-to-constants Ω(log K) lower bound for any paging algorithm using a uniformly random request sequence and coupon collector. A survey interlude covers what is known and still open: the H_K-optimal algorithms of McGeoch–Sleator and Achlioptas et al., an apparently open factor-2 gap under resource augmentation, and the k-server problem with its own decades-old factor-2 gap. The second half introduces the online primal-dual framework of Buchbinder and Naor — an LP/duality recap, the online constraint-arrival model with monotone variables, the approximate complementary slackness lemma, and a worked re-derivation of 2-competitive ski rental in that language.
Classification: educational video (university lecture, proof-driven).
flowchart TD
R["Lecture 9"] --> P["Part I — Randomized paging"]
R --> Q["Part II — Online primal-dual"]
P --> P1["MARK algorithm<br/>phases, clean/stale"]
P1 --> P2["Proof: 2·H_K competitive"]
P2 --> P3["Lower bound Ω(log K)"]
P3 --> P4["Open problems:<br/>resource augmentation, k-server"]
Q --> Q1["LP + duality recap<br/>covering ↔ packing"]
Q1 --> Q2["Ski rental LP<br/>+ online model"]
Q2 --> Q3["Approximate<br/>complementary slackness"]
Q3 --> Q4["2-competitive<br/>ski rental (α=1, β=2)"]
Topics
- Lecture roadmap — what the lecture promises to cover and what it actually reaches.
- The MARK algorithm, phases, and clean/stale pages — the algorithm, the phase decomposition, and all the notation for the proof.
- Proof that MARK is
2·H_Kcompetitive — the OPT lower bound, the MARK upper bound, and where the factor of 2 is lost. - Lower bound:
Ω(log K)for randomized paging — random sequence overK+1pages plus coupon collector. - State of the art, open problems, and generalizations —
H_K-optimal algorithms, resource augmentation,k-server, weighted paging. - Linear programming and duality recap — covering/packing LPs and the dual derived as the best provable lower bound.
- Ski rental as an LP, and what "online" means for an LP — the primal/dual pair and the monotone constraint-arrival model.
- Lemma: approximate complementary slackness — the
α·βguarantee that powers the framework. - The primal-dual 2-competitive ski rental algorithm — the algorithm and its
α = 1,β = 2analysis.
Key takeaways
- MARK is
2·H_Kcompetitive, whereH_K = 1 + 1/2 + … + 1/K = Θ(ln K); the bound comes from two per-phase facts — OPT pays at leastmax(ℓ_i − d_i, d'_i)and MARK pays at mostℓ_i · H_Kin expectation (12:13,13:00,30:25). - The factor of 2 comes from a single step: replacing
max(ℓ_i − d_i, d'_i)with the average of the two terms so thedterms telescope across phases (15:55,16:32). - The randomness only buys you the stale requests: clean requests cost
ℓ_ideterministically, while thes-th stale request misses with probability exactlyc/(K − s), summing toℓ_i·(H_K − H_{ℓ_i})(24:59,27:25,29:43). - No paging algorithm beats
Ω(log K): on a uniform random sequence overK+1pages, any algorithm paysM/(K+1)while furthest-in-the-future OPT faults only once perΘ(K log K)requests by coupon collector — alog Kgap (32:59,36:33,37:07). - MARK's factor of 2 is not necessary: McGeoch & Sleator (Algorithmica 1991) hit exactly
H_K, matching the lower bound, and Achlioptas et al. (TCS 2000) gave a simpler algorithm and analysis at the same ratio (15:23,39:14). - Two factor-2 gaps are flagged as open: under resource augmentation (your cache
K, OPT'sh) Young's2·ln(K/(K−h+1))still sits a factor of 2 above his ownln(K/(K−h+1))lower bound, and fork-server the work function algorithm's2K−1sits a factor of 2 above theKdeterministic lower bound — open for 20+ years (41:13,41:48,44:56). - The
k-server randomized frontier: Bansal, Buchbinder, Mądry & Naor (2011) achieved roughlylog²K · log³n · log log n, the first polylog bound, but the target ispolylog(K)with no dependence onn(45:58,46:34). - The dual is not an arbitrary definition — it is the LP whose optimum is the best lower bound provable by taking non-negative combinations of the primal constraints, which makes weak duality (
OPT_P ≥ OPT_D) immediate (59:06,1:00:00,1:02:21). - Approximate complementary slackness converts construction into a ratio: feasible
x, ysatisfying theα/βnear-tightness conditions implycᵀx ≤ α·β·bᵀy ≤ α·β·OPT(1:15:32,1:17:58). - Ski rental via primal-dual gives exactly
2: raisingy_iuntil a dual constraint is tight makes both primal conditions perfectly tight (α = 1), while possibly setting bothxandz_ito 1 givesβ = 2(1:23:09,1:24:01). - The online LP model is what makes the framework non-trivial: rows of
Aarrive one at a time, must be satisfied immediately, and variables start at 0 and only increase — otherwise you could just re-solve the LP each step (1:09:12,1:09:38).