The H_k randomized paging lower bound and (k + 1)-page tightness #
This file formalizes the randomized lower bound and sharpness results of
Fiat, Karp, Luby, McGeoch, Sleator, and Young, Competitive Paging
Algorithms (arXiv:cs/0205038v1, numbering verified against
marking.tex):
- Section 5, Theorem 4 and Corollary 5 (
H_klower bound against an oblivious adversary): Over any page universe containing a(k + 1)-element subsetS(0 < k), no randomized online paging algorithm — whether formulated as a behavioural strategy (Online.BehavioralStrategy, coveringmarkingStrategy) or as a discrete mixture of deterministic strategies (Online.RandStrategy) — is(c, b)-competitive for anyc < H_kand finite additive constantb ≠ ⊤, even from a fixed admissible initial cache such as∅(not_isCompetitiveFrom_behavioral_of_lt,not_isCompetitiveFrom_rand_of_lt). Following Section 5 of the source, an oblivious nemesis maintains a marked subset ofSand constructs subphases (exists_subphase) whose expected online cost is at least1 / uwhenupages ofSare unmarked, accumulating at leastH_kexpected faults per phase while a capacity-koffline schedule faults only once per phase (exists_phase,exists_phases). - Section 3, Theorem 2 (
markingthm2,H_k-competitiveness onk + 1pages): When all requests and the initial cache lie in a setUof at mostk + 1pages (in particular on any[Fintype α]withFintype.card α ≤ k + 1), each phase ofmarkingStrategycontains at most one clean request and#clean ≤ OPTwith zero additive slack (cleanCount_le_scheduleCost_of_subset), makingmarkingStrategy(H_k, 0)-competitive (markingStrategy_isCompetitive_of_card_le) and matching theH_klower bound onFin (k + 1)(markingStrategy_tight_on_fin_succ). - Section 3 separation for
n ≥ k + 2(markingStrategy_not_isCompetitive_harmonic_two_fin_four): Even atk = 2on four pages (Fin 4), repeating the 8-request cycle[2, 3, 0, 1, 3, 2, 1, 0]from{0, 1}forcesmarkingStrategyto incur8 mexpected faults against4 m + 1offline faults, refuting(c, b)-competitiveness for everyc < 2(in particularc = H_2 = 3 / 2) and everyb ≠ ⊤.
Main definitions #
Cslib.DataStructure.Paging.ObliviousPagingCost: prefix-additive expected-cost interface on a(k + 1)-page subset (0 ≤ Δcostand1 ≤ ∑_{x ∈ S} Δcost(σ, x)), satisfied by bothBehavioralStrategyandRandStrategy.
Main results #
not_isCompetitiveFrom_behavioral_of_lt,not_isCompetitive_behavioral_of_lt,not_isCompetitiveAnyInit_behavioral_of_lt,fin_not_isCompetitiveFrom_empty_behavioral_of_lt:H_koblivious-adversary lower bound forBehavioralStrategy.not_isCompetitiveFrom_rand_of_lt,not_isCompetitive_rand_of_lt,fin_not_isCompetitiveFrom_empty_rand_of_lt:H_koblivious-adversary lower bound forRandStrategy.cleanCount_le_scheduleCost_of_subset,markingStrategy_isCompetitive_of_card_le,markingStrategy_tight_on_fin_succ: FKLMSY Theorem 2 (H_k-competitiveness on≤ k + 1pages).markingStrategy_not_isCompetitive_lt_two_fin_four,markingStrategy_not_isCompetitive_harmonic_two_fin_four:markingStrategyis notH_2-competitive on four pages atk = 2.
References #
- A. Fiat, R. M. Karp, M. Luby, L. A. McGeoch, D. D. Sleator, and N. E. Young, Competitive Paging
Algorithms, Section 3 (Theorem 2 and
k = 2, n = 4example) and Section 5 (Theorem 4 and Corollary 5).
Oblivious nemesis sequence construction (FKLMSY Section 5) #
Abstract oblivious expected-cost functional over a (k + 1)-page set S: starting at zero on
[], appending a single request x incurs nonnegative expected step cost
cost (σ ++ [x]) - cost σ, and because any valid capacity-k cache misses at least one page of
S, the sum of expected step costs over S is at least 1 after every prefix σ.
Empty request sequence incurs zero expected cost.
Appending any single request never decreases expected cost.
Across
S, expected miss probabilities sum to at least1after every prefixσ.
Subphase lemma ([FKL+91], Section 5): for any prefix σ and
nonempty marked subset M ⊂ S (M ⊆ S, (S \ M).Nonempty), there is a finite sequence of marked
requests mid followed by an unmarked request j ∈ S \ M increasing expected cost by at least
1 / |S \ M|.
Single-phase nemesis lemma ([FKL+91], Section 5): from any
prefix σ and full offline cache M_prev ⊆ S (M_prev.card = k, 0 < k), there exist a phase
request sequence phase, a next cache M_next ⊆ S (M_next.card = k), and a valid 1-fault
offline schedule moving M_prev ↦ M_next such that the online expected cost increases by at least
H_k.
Iterating exists_phase across m phases produces a sequence on which online expected cost
increases by at least m * H_k while the offline schedule incurs exactly m faults.
ObliviousPagingCost instances for BehavioralStrategy and RandStrategy #
Every BehavioralStrategy (problem α k) satisfies ObliviousPagingCost on any (k + 1)-page
subset S from any admissible initial cache s₀.
Every RandStrategy (problem α k) satisfies ObliviousPagingCost on any (k + 1)-page subset
S from any admissible initial cache s₀.
Main H_k lower-bound theorems (FKLMSY Theorem 4 & Corollary 5) #
Exact m-phase randomized lower-bound witness (BehavioralStrategy): from any full initial
cache s₀ ⊆ S (s₀.card = k, S.card = k + 1, 0 < k), there is a request sequence on which
B.expectedCost is at least m * H_k while a valid offline schedule incurs exactly m faults.
FKLMSY Theorem 4 & Corollary 5 (BehavioralStrategy.IsCompetitiveFrom)
[FKL+91]: over any universe containing a (k + 1)-element subset S
(0 < k), no behavioural randomized paging strategy is (c, b)-competitive from any admissible
initial cache s₀ (including ∅) for c < H_k and finite b ≠ ⊤.
FKLMSY Corollary 5 (BehavioralStrategy.IsCompetitive)
[FKL+91]: over ≥ k + 1 pages (0 < k), no behavioural randomized
paging strategy is (c, b)-competitive for c < H_k and b ≠ ⊤.
Over ≥ k + 1 pages (0 < k), no behavioural randomized paging strategy is
(c, b)-competitive across arbitrary initial caches for c < H_k and b ≠ ⊤.
Canonical BehavioralStrategy lower bound on Fin n (0 < k < n): no behavioural strategy is
(c, b)-competitive from ∅ for c < H_k and b ≠ ⊤.
FKLMSY Theorem 4 & Corollary 5 (RandStrategy.IsCompetitiveFrom)
[FKL+91]: over any universe containing a (k + 1)-element subset S
(0 < k), no discrete-mixture randomized paging strategy is (c, b)-competitive from any
admissible initial cache s₀ for c < H_k and b ≠ ⊤.
FKLMSY Corollary 5 (RandStrategy.IsCompetitive) [FKL+91]:
over ≥ k + 1 pages (0 < k), no RandStrategy is (c, b)-competitive for c < H_k and
b ≠ ⊤.
Canonical RandStrategy lower bound on Fin n (0 < k < n): no RandStrategy is
(c, b)-competitive from ∅ for c < H_k and b ≠ ⊤.
FKLMSY Theorem 2: markingStrategy is (H_k, 0)-competitive on ≤ k + 1 pages #
One-window clean-request bound on ≤ k + 1 pages
([FKL+91], Section 3, proof of Theorem 2): when the initial cache s₀
and all requested pages lie in a set U of size at most k + 1, cleanCount never exceeds the
fault cost of any valid offline schedule from s₀ (factor 1 instead of 2).
Expected-cost bound of markingStrategy when s₀ and reqs lie in U with U.card ≤ k + 1:
E[MARK] ≤ H_k · OPT.
FKLMSY Theorem 2 (markingthm2) [FKL+91]: on any page
universe of size at most k + 1 (0 < k), markingStrategy is (H_k, 0)-competitive against an
oblivious adversary.
Exact H_k randomized minimax value on Fin (k + 1) (combining FKLMSY Theorem 2 and
Theorem 4): markingStrategy achieves (H_k, 0)-competitiveness on Fin (k + 1), while no
behavioural randomized strategy achieves (c, b)-competitiveness from ∅ for any c < H_k and
b ≠ ⊤.
FKLMSY Section 3 (markingStrategy is not H_2-competitive on four pages)
[FKL+91]: on Fin 4 at k = 2, markingStrategy is not
(H_2, b)-competitive (H_2 = 3 / 2) for any finite additive constant b ≠ ⊤.