Manuscript Offprint
arXiv:2610.40824Tight Lower Bounds for Distributional Paging
Abstract
Distributional paging asks for a polynomial-time eviction rule that competes with the optimal online policy OPT when requests come from a known stochastic source. Two algorithms proposed by Lund, Phillips, and Reingold [FOCS, 1994] are canonical. Their randomized dominating distribution algorithm, designed for Markov sources, draws the page to evict from any distribution over the cache obeying a family of pairwise linear inequalities; their deterministic median algorithm, designed for sources whose inter-arrival times are independent across pages, discards the cached page with the largest lower median of its conditional next-request time. The original guarantees were 4 and 5; Pabbaraju and Vakilian [ICALP 2025] recently sharpened them to 2 and 4.
We show that neither sharpened constant admits further improvement, in its respective source model. For Markov paging we give two complementary factor-2 lower-bound constructions, each with an explicit polynomial-time dominating selector. A directed-cycle family has ratio , while a recurrent four-page family with cache size three has ratio .
Our second shows that the median algorithm fails to be -competitive whenever in the independent inter-arrival model. These are separate results for distinct stochastic models. Since each lower bound matches the corresponding upper bound, the two competitive ratios are 2 and 4 in their respective settings. The strongest bounds previously were 1.5907 and 1.511.
The two lower bounds use different mechanisms. For the dominating distribution algorithm, the directed cycle exposes the half-mass mechanism in its cleanest form: half of the eviction mass is forced onto the page returning last, while a bad selector places the remaining half on the page returning first. The four-page construction turns the same extreme-point choice into a recurrent cascade across two slowly switching blocks. For the median algorithm we build independent renewal processes that repeatedly mislead the median rule: the page with the latest median is nevertheless likely to be requested early, forcing a cascade of bad evictions, while a simple online policy can be made to pay arbitrarily close to one quarter as much.
1 Introduction
A paging system keeps of pages in a fast cache. Requests arrive one at a time; a request for a cached page is free, while a request for an absent page triggers a fault, costs one unit, and obliges the system to throw out a resident page to make room for the newcomer. The design question is which page to throw out.
Classical competitive analysis, following Sleator and Tarjan [18], measures an online rule against the best offline schedule on a worst-case sequence, and the resulting verdict is bleak: deterministic rules cannot beat a ratio of [18], and randomized ones cannot beat , as Fiat, Karp, Luby, McGeoch, Sleator, and Young [9] showed. Actual workloads are of course not adversarial;
*Rutgers University. Email: a.vakilian@rutgers.edu. The author was supported in part by NSF CAREER Award CCF-2542925.
they concentrate their requests, a phenomenon Denning [6] named locality of reference, and a long line of models has tried to capture it [5, 12, 8, 14, 2].
Distributional paging proceeds differently. It supposes the requests are produced by a source whose law the algorithm knows, and it swaps the offline yardstick for OPT, the best online policy; one that knows the source but must still guess at the future. That swap is what puts constant factors within reach. Two sources are standard. Karlin, Phillips, and Raghavan [13] introduced Markov paging, in which a known Markov chain emits the requests; they observed that the optimal limiting-average policy is obtained from a linear program with state variables, while a finite-horizon optimum can be computed by a dynamic program with exponential dependence on k, which is why one asks instead for polynomial-time rules. Lund, Phillips, and Reingold [15] studied the independent inter-arrival source, where every page runs its own renewal process and distinct pages are independent.
The two source models are distinct. A superposition of independent renewal processes is generally not first-order Markov on the page labels, and a Markov request chain need not decompose into independent renewal processes. We therefore keep the models separate throughout. In particular, the latter makes no claim about the median algorithm on Markov sources.
Lund et al. [15] proposed a different eviction rule for each of the two models: the dominating distribution algorithm in their more general distributional framework, specialized here to Markov paging, and the median algorithm for independent inter-arrival sources. For the Markov model, given pages and a page requested most recently, put
adopting . Call a distribution on the cache dominating when
Equivalently, for every resident , a page is requested before with probability at most . The dominating distribution algorithm evicts at each fault; a dominating is always available from a linear program of size [4, 17].
In the independent inter-arrival model, called the IP-paging model by Lund et al. [15], the source specifies an inter-arrival distribution for every page, and successive inter-arrival times are independent across pages and renewal intervals. From this distribution and the elapsed time since a page's most recent request, the algorithm obtains the conditional distribution of its residual waiting time. The median algorithm computes a median of this residual-time distribution for every resident page and evicts a page with the largest such median. Lund et al. [15] proved approximation ratios of 4 for the dominating-distribution algorithm and 5 for the median algorithm, the latter under the additional assumption of independent inter-arrival times. The factor-4 bound stood for three decades, although a factor of 2 had subsequently been suggested as plausible [17]. Pabbaraju and Vakilian [16] tightened the charging argument underlying both analyses and reduced the guarantees to 2 and 4, respectively. Our lower bounds show that these guarantees are tight: neither can be improved.
Our contribution. Our contribution is the two matching lower bounds. The first needs a word of framing. Since (2) is a system of inequalities, the dominating distribution algorithm is not one algorithm but a class, and on a given instance that class is usually large. It can even contain excellent members: on the very instances we build, one dominating is a point mass reproducing an optimal online policy. Thus these directed-cycle instances cannot give a lower bound that holds uniformly for every dominating selector, and any lower bound extracted from them must name a member. The upper bound guarantee of Pabbaraju and Vakilian [16] is proved for every dominating at once, so to show that its constant is best possible as a uniform guarantee, it suffices to produce one dominating selector whose ratio approaches 2.
Theorem 1. There is an explicit dominating distribution algorithm, computable in polynomial time, that is not c-competitive against OPT in the Markov paging model for any .
We prove Theorem 1 twice. The first proof uses the forward-biased selector on directed cycles and obtains the exact ratio . The second uses a different explicit selector on four pages with cache size three and obtains for every . The four-page construction is stronger as a fixed-size lower bound and has a positive stationary fault rate on every fixed instance; the directed cycle remains the shorter and simpler proof.
Because the lower-median algorithm is deterministic and our construction has a unique maximizing page at every fault, neither a selector nor an eviction tie-breaking issue arises. Its lower bound applies to the independent inter-arrival model with known deterministic initial ages, rather than to Markov paging.
Theorem 2. In the independent inter-arrival model, allowing known deterministic initial ages, the median algorithm is not c-competitive against OPT for any .
The theorems live in different source models, Markov paging and independent renewals, respectively, and each meets the best known guarantee for its own.
Corollary 3. In their respective source models, the competitive ratio of the algorithm of Theorem 1 equals 2, and the competitive ratio of the median algorithm equals 4 under the initialization convention of Section 2.
Proof. The algorithm of Theorem 1 is a dominating distribution algorithm, hence 2-competitive by [16, Theorem 1], while Theorem 1 rules out anything smaller. The median algorithm is 4-competitive by [16, Theorem 2] under the initial-age extension, while Theorem 2 rules out anything smaller.
| Source | Algorithm | Reference | Upper | Lower |
|---|---|---|---|---|
| Markov | Dominating distribution (randomized) | Lund et al. [15] | 4 | — |
| Pabbaraju and Vakilian [16] | 2 | 1.5907 | ||
| This work (Theorem 1) | — | 2 | ||
| Independent inter-arrival | Median (deterministic) | Lund et al. [15] | 5 | 1.511 |
| Pabbaraju and Vakilian [16] | 4 | — | ||
| This work (Theorem 2) | — | 4 |
Table 1: Competitive ratios against the optimal online policy OPT. The two rows concern different source models and are not cross-model comparisons.
A proof of 1.4 appears in [15]; the stronger figure 1.511 is reported there without proof.
Fixing the order in which pages return. The quantities in (1) are hitting probabilities and can be difficult to express exactly. Pabbaraju and Vakilian [16] handle this difficulty by restricting their lower-bound search to pages and cache size , where the feasible region can be written explicitly and optimized numerically. We instead choose instances on which every relevant hitting probability is trivial. On a deterministic directed cycle, after a request to the other pages return in the fixed cyclic order . Working with the base cycle removes that irrelevant waiting-time layer; Proposition 18 later makes the construction aperiodic without changing the hitting orders or the ratio. Consequently every is 0 or 1, and the constraints in (2) can be solved directly.
Set , so exactly one page is missing from the cache; we call it the hole. After a fault on , let be the resident requested first and let be the resident requested last. The constraint in (2) for forces . Once this holds, the remaining constraints impose no further restriction on how the other half of the mass is distributed. Our selector maximizes , so it assigns all remaining mass to . Hence the unique selected distribution is ; see Lemma 9. The factor of 2 comes from this split: at least half of the probability must be assigned to the best available page, but the other half may be assigned to the worst available page. The selector is one fixed algorithm maximizing from the page labels alone, and the cycle is numbered so that this label names the worst resident.
The fault rates follow immediately from the hole picture. Discarding leaves the hole one request ahead, whereas discarding leaves it requests ahead. Thus the selector's inter-fault spacings are independent and equal to 1 or , each with probability . The reference policy always discards . This is a farthest-in-future choice on every realized trajectory, so the policy is optimal both offline and online (Lemma 10), and its inter-fault spacing is always . The ratio of the two fault rates is therefore , which tends to 2.
The four-page construction keeps the same bad-vertex-versus-late-page comparison but removes the growing-cache limit. Two two-page blocks alternate internally and switch only with probability . At an entry-page miss, the bad vertex again splits mass equally between the next and late pages. At an exit-page miss, the next page loses the hitting-order race with probability , so the same tight domination constraint permits the selector to put the slightly larger mass on it. The resulting miss can recreate another state of the same type. Lumping the request/cache process into six states gives stationary fault rates for the bad selector and for the policy that always evicts the late page, hence ratio .
Repeated faults under independent renewals. Directed cycles do not hurt the median algorithm: the page farthest ahead in the cycle also has the latest median next-request epoch, so the median rule makes the optimal eviction. Our second construction instead uses the independent renewal model defined in Section 2. It consists of pages and a cache of size , so exactly one page is absent from the cache at any time. It creates a deliberate mismatch between the ordering of the conditional medians and the realized request order: a page can have the latest median and still be requested early with substantial probability. The programming lemma (Lemma 19) lets us prescribe the first request of each renewal process. Block contains five ordered windows . A live anchor page requests in with probability and in with probability . Its lower median is in , after every competing median, so the median policy repeatedly evicts anchors until the selected anchor takes its late branch. The number of anchor faults in a block is geometric with success parameter and hence has mean .
The comparison policy evicts one token page instead. Conditional on still being active in block , that token requests at the checkpoint with probability exactly ; this is the comparison policy's only possible fault in the block. A one-pair cache invariant (Lemma 25) gives expected block costs and . Their ratio approaches , which can be made arbitrarily close to 4. Finally, Lemma 27 replaces the idealized infinite pools by finite ones and converts the construction to a horizon measured by the number of requests.
1.2 Related Work
Much work has sought to escape the randomized barrier [9]. Access graphs [5, 12, 8] constrain which page may follow which; diffuse adversaries [14, 21] and adversarially biased inputs [22] confine the adversary to distributions near a nominal one; working-set and locality parameterizations [6, 19, 2, 7, 1] grade instances by how concentrated they are. Markov paging [13] belongs to this tradition and reads naturally as a randomized access graph. What sets it and the independent inter-arrival model apart is the yardstick: both compete with the best online policy, which is what admits constant factors in the first place. Irani [11] and Borodin and El-Yaniv [4] survey the area.
Algorithms for distributional paging. Karlin, Phillips, and Raghavan [13] found that intuitive heuristics “evicting on largest expected return time, for one” can be off by , and gave the first constant-factor rule, though with an unwieldy constant. Lund, Phillips, and Reingold [15] then contributed the dominating distribution and median algorithms, with ratios 4 and 5. A single charging argument underlies both, and it concedes a factor of 2 for pages charged twice over, on top of whatever the rule itself costs. Pabbaraju and Vakilian [16] eliminated the first factor to obtain 2 and 4; their analysis tolerates approximate values of (1), which matters when the chain must be learned from data [10, 20]. Our results complement theirs by showing that neither constant can be lowered in the corresponding source model.
Lower bounds. Progress here has lagged far behind. For the median algorithm the previously proved record was 1.4, proved by Lund et al. [15], who report 1.511 without proof. For the dominating distribution algorithm the record was the 1.5907 that Pabbaraju and Vakilian [16] extracted by searching a three-page instance. Theorems 1 and 2 raise these to the optimal 2 and 4. What the constructions add beyond the numbers is a reason: the mass split at the trailing page in one case, the compelled anchor cascade in the other, rather than a constant certified by search.
2 Preliminaries
Paging and the yardstick. Write for the page set, , and let requests issue from a known source. A policy holds pages; it pays a unit at step when is absent, and must then discard a resident to install . For a request horizon , meaning the first requests of the sequence, define
averaging over the source together with any coins the policy tosses. For each fixed horizon , let OPT (or OPT when the dependence matters) minimize (3); it is an online policy, informed about the source and ignorant of the future. Say is -competitive when on every instance and horizon, and let its competitive ratio be the least such . Both of our proofs rest on the same elementary move, worth isolating once.
Observation 4. Let be any online policy. Then for every , since OPT minimizes (3) over online policies. So to certify that some is not -competitive it is enough to exhibit an instance, a horizon, and an online with .
Markov sources and dominating distributions. A Markov paging instance [13] fixes a transition matrix , known to the algorithm, whose entry gives the chance that follows . Under the standard rational-input convention, the hitting probabilities needed in (1) are computable in polynomial time by finite-chain hitting-probability linear systems, and is dominating when (2) holds. We start the chain uniformly and give the algorithm and OPT a common initial cache.
Theorem 5 (Lund, Phillips, and Reingold [15, Theorem 3.4]). On every instance and at every fault a dominating distribution exists, and one may be found by a linear program with variables and constraints.
Independent inter-arrival sources and the median rule. For the median result we use the following explicit independent-inter-arrival convention. Each page has a known positive gap distribution , and its successive inter-arrival times are independent copies of . The renewal processes of distinct pages are mutually independent. At the beginning of the instance, page may have a deterministic age , known to the policy; equivalently, its first residual waiting time has distribution . After a request to , a fresh independent copy of determines its next request. Merging the renewal epochs of all pages gives the request sequence. Policies observe both request identities and their global request times. Hence the current vector of page ages is part of the observed history, so the policy can update every conditional residual-time distribution.
No tie-breaking between simultaneous requests is needed in our construction. In Section 4.2, we assign every page a distinct residue modulo an integer and choose every possible inter-arrival time to be a multiple of . All requests to a page therefore remain in its assigned residue class, and two distinct pages can never request at the same time.
This source model is not Markov paging: after independent renewal processes are merged, the law of the next requested page generally depends on the entire vector of current ages, not only on the most recently requested page. Moreover, our lower bound uses the deterministic initial ages above. It therefore does not, as written, imply the same lower bound for fresh age-zero initialization, stationary initialization, or Markov paging.
At a fault at global time , let be the conditional residual waiting time of a resident page . Because these distributions may be discrete, the word “median” need not specify a unique number. We make the algorithm deterministic by using the lower 1/2-quantile, referred to as the lower median,
The median algorithm evicts a resident maximizing . Equivalently, it maximizes the median next-request epoch ; the latter notation is more convenient in Section 4, where medians are located in named time windows. The lower-median convention selects the earliest median when a discrete distribution has several medians. In our finite-support instances it is computed directly from the listed atoms. We additionally arrange that the maximizing page is unique at every fault, so no eviction tie-breaking is used.
3 A Tight Lower Bound for the Dominating Distribution Algorithm
This section establishes Theorem 1 in two ways. Sections 3.1–3.4 retain the directed-cycle proof: they define the forward-biased selector, compute its fault rate and the optimal rate, and obtain . Section 3.5 then gives a fixed-size four-page refinement with ratio . The common aperiodicity argument is provided at the end in Proposition 18.
3.1 The Forward-Biased Selector
An algorithm must choose which dominating it picks. Ours uses the chain only through the domination constraints; its bias among feasible distributions is determined by the fixed page labels.
Definition 6 (Forward-biased selector). Number the pages once and for all. Let a request to fault, with the cache just beforehand, and put . The rule evicts a draw from an optimal solution of
where is the simplex on , and we extend for every . Among all optimal solutions, choose the lexicographically largest vector .
Proposition 7. On every Markov paging instance is a dominating distribution algorithm, and each of its evictions is computable in time polynomial in , , and the input encoding length.
Proof. By Theorem 5, the feasible region of (5) is nonempty. It is also a closed subset of the simplex and is therefore compact. Consequently, the objective attains its maximum.
The lexicographically largest maximizer is well defined. It can be obtained by a sequence of linear programs. First solve (5) and let be the optimal value of . Add the equality . Then process the pages in their fixed numerical order. For each coordinate not already fixed, maximize that coordinate subject to the original constraints and all equalities introduced in the preceding steps, and fix it at its optimal value. After at most additional linear programs, every coordinate in has been fixed, yielding the unique lexicographically largest optimum .
Every feasible solution of (5) satisfies (2). In particular, is a dominating distribution, so is a dominating-distribution algorithm.
Each of the linear programs has variables and constraints, including the nonnegativity, normalization, domination, and previously fixed-coordinate constraints. Assuming that the transition probabilities and the values are rational and have polynomial encoding length, standard linear-programming algorithms solve every one of these programs in time polynomial in , , and the total input encoding length. Since only programs are solved, is computable in polynomial time. Its coordinates are rational numbers of polynomial encoding length, so a page can be sampled exactly from in expected polynomial time.
Definition 6 describes one algorithm, run unchanged on every input. Where the numbering bears no relation to the dynamics its objective is meaningless and may do perfectly well. The instances below are numbered to make it do as badly as possible.
3.2 Directed Cycles
Given , put and name the pages by . We work directly with the deterministic directed cycle as follows,

Figure 1: The directed cycle with .
The chain is irreducible, has period , and has the uniform stationary law. We use the periodic base chain because it makes the proof entirely deterministic. If an aperiodic source is desired, Proposition 18 adds uniform self-loops without changing any hitting-order probability or the competitive-ratio calculation. Let the cache begin as .
With the cache always lacks exactly one page, which we call the hole. Faults happen exactly when the hole is requested, and servicing one relocates the hole to whichever page is discarded.
Observation 8. Suppose was requested most recently. The next requests are , then , and so on. Hence the members of reappear in the predetermined cyclic sequence
so that for distinct ,
In particular for every , while for every .
Under the numbering in directed cycles, the successor selected in Definition 6 is the resident page requested next, and hence the most costly one to evict.
Lemma 9. On directed cycles, at every fault on a page , program (5) is solved uniquely by
So discards or , each with probability .
Proof. A fault on means the hole is , so ; as we have with . Thus, (8) is dominating: fix and read off (7). For both and vanish, the first by convention and the second because is last in (6), so the left side of (2) is 0. For we get , as leads (6), and , by convention if and because trails otherwise; the left side is . Either way (2) holds, at objective value .
Next, let be dominating and test (2) at . Every other than precedes in (6), so , whereas ; the constraint therefore reads
Thus and . Equality forces and exhausts all mass, so (8) is the unique optimum.
Lemma 9 contains the factor of 2 in its simplest form. The constraint (9), indexed by the trailing page , forces at least half of the mass onto the best available choice. The constraints leave the remaining half unrestricted, and our selector assigns it to the leading page .
3.3 Fault Rates and the Optimal Policy
Figure 2 shows the two possible inter-fault spacings.

request

requests
Figure 2: What one eviction buys, after a fault on (blue). The hole is the dashed red circle, and the red arcs show the requests before the next fault. Leaving the hole at the leading page causes a fault one request later; leaving it at the trailing page causes a fault requests later.
Let discard at every fault on .
Lemma 10. On directed cycles, for every .
Proof. Fix a realized request stream and a fault on . By Observation 8, is the last resident to return, so discarding is a farthest-in-future eviction. Belady's rule [3] is offline optimal, hence matches the offline optimum on every trajectory. Since is also online, Observation 4 gives equality with OPT in expectation at every horizon.
The following elementary bounded-renewal lemma converts the inter-fault spacing distributions of the two policies into their asymptotic expected fault rates.
Lemma 11 (Bounded renewal rate). Fix and consider a possibly randomized policy on the directed-cycle instance. Let be the index of its first fault, and suppose that . After the first fault, let be the numbers of requests between consecutive faults. Suppose that they are i.i.d. copies of a random variable satisfying , and that is independent of . Then, uniformly over ,
Proof. Write , and define
Thus counts the complete inter-fault spacings contained in requests after a fault. Put . Since , and . Moreover, depends only on and is independent of . Since , we may write . Taking expectations and using linearity gives
Since for each , the event is independent of , , where . Substituting this identity into (11), and using the tail-sum formula for the positive integer-valued random variable , yields . Combining with gives . Finally, since ,
Because , the difference between and is bounded by a constant depending only on , uniformly over . Hence . Conditional on , the number of faults among the first requests is 0 when , and is when . Since , implies, uniformly over and , . Averaging over proves the claim.
Proposition 12. On the directed cycle instance, .
Proof. After a fault, Lemma 9 leaves the hole at or , independently with probability . Thus the next fault is respectively 1 or requests later. The inter-fault spacings are therefore i.i.d. with
Applying Lemma 11 with gives bound on the expected cost of .
Proposition 13. On the directed cycle instance, .
Proof. By Lemma 10 it suffices to analyze . After every fault it leaves the hole at , which is requested exactly requests later. Hence every inter-fault spacing equals . Applying Lemma 11 with deterministically proves the cost analysis.
3.4 Proof of Theorem 1
Theorem 1. There is an explicit dominating distribution algorithm, computable in polynomial time, that is not c-competitive against OPT in the Markov paging model for any .
Proof. Proposition 7 makes a dominating, polynomial-time rule. Fix and run it on (3.2). Dividing Proposition 12 by Proposition 13, the bounded additive terms are swamped by the linear growth:
Given , pick an integer . Then (13) exceeds , so is not c-competitive. If aperiodicity is imposed as part of the Markov-source convention, apply the uniform lazification of Proposition 18; it preserves both the selector's domination feasibility and the ratio in (13).
3.5 A Fixed-Size Four-Page Construction
The directed-cycle proof approaches 2 by increasing the cache size to infinity. We now give a second proof that keeps and fixed. The constant is again approached through a family of instances, now by sending a transition probability to zero. The two proofs share the same local geometry: a tight domination constraint leaves a bad extreme point supported on a soon-to-be-requested page and a safe late page. The difference is how the bad choice reproduces itself. The cycle does so after every fault by rotation; the four-page chain does so recurrently through rare switches between two blocks.
Theorem 14 (Four-page refinement). There is a globally defined dominating distribution algorithm , computable in polynomial time, with competitive ratio exactly 2. More precisely, for every there is an irreducible Markov paging instance on four pages with cache size three such that
Both the witness selector and a comparison policy have positive linear fault rates on every fixed .
The instance. Fix a rational , let , and split into the two blocks and . Pages 0 and 2 are entry pages and pages 1 and 3 are exit pages. The nonzero transition probabilities are
see Figure 3. Thus requests alternate inside the current block until an exit page switches to the other block's entry page, an event of probability . The positive directed cycle makes the chain irreducible. Proposition 18 makes it aperiodic without changing the ratio.

Figure 3: The two-block chain (15).
Since , exactly one page is missing after every request. At a miss on , the candidates are . Define
Here is the other page in r's block, while and are respectively the entry and exit pages of the other block.
Lemma 15 (Hitting-order table). For every ,
Proof. The involution is an automorphism, so it is enough to consider and . From , the next request is , so it precedes pages 2 and 3 surely. Moreover, page 3 can first be entered only from page 2, and hence precedes surely.
From , the next request is with probability , in which case it precedes both pages in the other block. With probability , the next request is and is followed deterministically by ; both then precede page 0. Again 2 precedes 3 surely. These cases give the table.
At a miss on , abbreviate the masses on , , by .
Lemma 16. For every miss state r, the domination constraints are equivalent to
The vertices are , and where .
Proof. Substituting Lemma 15 into the constraints indexed by , , gives, respectively,
The first inequality is automatic because , and the third follows from the second. This proves (17). Since , intersecting the probability triangle with leaves exactly the displayed three vertices.
We compare two online paging policies here. The block selector is the dominating selector whose fault rate we lower-bound, while the late policy is a comparison policy with a smaller fault rate. Whenever a request to page causes a miss, the block selector evicts a resident page according to the distinguished extreme point from Lemma 16. Here denotes the page requested at the current miss, so it varies over time. There is one distribution for each of the four possible current pages. The name “block selector” refers to the two-block structure of the Markov chain. By Proposition 7 and lemma 16, is a polynomial-time dominating selector. More explicitly, evicts the page requested immediately next with probability
when the miss occurs on an entry page,
(18)
when the miss occurs on an exit page,
(19)
and otherwise evicts .
The late policy always evicts , the resident page whose next request occurs latest given that the current request is to . Thus avoids the immediately-next page whenever possible. The name “late policy” refers to this latest-next-request eviction rule.


Figure 4: The local extreme-point choices in the circular hole notation of Figure 2. The blue node is the current request and the dashed red nodes are the two possible new holes.
Proposition 17. On , under the common initialization convention,
The proof groups the joint request/cache chain into six symmetry states and solves its stationary balance equations. The full transition verification and calculation are given in Section A.
Proof of Theorem 14. Since is an online policy using the same initial cache, Observation 4 gives for every . Therefore Proposition 17 implies
Given , choose . Then the ratio exceeds , so some finite horizon violates -competitiveness. Conversely, is a dominating distribution algorithm and is therefore 2-competitive by [16, Theorem 1]. Its competitive ratio is exactly 2.
The two Markov constructions now admit a precise comparison. They have the same limiting lower-bound constant. The four-page construction is stronger with respect to instance size, since it works with fixed and and derives the gap from recurrent stationary behavior. The directed cycle is stronger with respect to simplicity and selector naturalness: its hitting orders are deterministic, its reference policy is exactly optimal, and the bad selector is the uniform forward-biased LP rule of Definition 6, rather than a rule that recognizes a special family.
3.6 Aperiodicity by Uniform Lazification
Proposition 18 (Uniform lazification). Let be either base chain used in the two Markov lower bounds, and let for . Then every hitting-order probability and every corresponding domination polytope is unchanged. For the witness and comparison policies used above, every limiting fault rate is multiplied by , so their ratio is unchanged. If is irreducible, then is irreducible and aperiodic.
Proof. Couple by independently declaring each transition a self-loop with probability and otherwise taking one transition of . Removing the self-loops leaves exactly an -trajectory. A self-loop repeats the current request, causes a cache hit, and leaves the cache state unchanged. It also cannot change which of two distinct pages is visited first. Thus the -values, the feasible dominating distributions, and the embedded request/cache process at non-self-loop transitions are the same.
Because the self-loop probability is uniform across pages, the number of genuine -transitions among the first requests is in expectation. Hence each long-run fault rate is multiplied by , while any ratio of such rates is preserved. Positive self-loops make every state have period one, and the positive off-diagonal edges of preserve irreducibility. Applying the operation to the directed cycle and to the four-page chain gives aperiodic versions of both lower-bound families.
4 A Tight Lower Bound for the Median Algorithm in Independent Renewal Model
We now prove Theorem 2. We first explain why the directed cycle used in Section 3.2 cannot also yield a median lower bound. After a fault at page , the resident page is requested exactly requests later for . Its next-request time is deterministic and hence equals its median. Therefore the median rule evicts , exactly the optimal choice from Lemma 10. The cycle is unsuitable for a second reason: its page-request processes are coupled and do not form independent renewals.
4.1 Programming the First Request
The model gives each page an i.i.d. gap law and an initial age, whereas the construction needs a prescribed distribution for the page's first request. The following lemma supplies it and makes the page harmless after that first request. Throughout, a gap is the time between two consecutive requests of a single page.
Lemma 19 (Programming a first request). Let be a finitely supported distribution on positive times, fix and , and define a positive gap variable by
Equivalently, is supported on , each value being a distance from the page's previous request: the short atom , or a long atom placed at offset beyond the current time. Then,
-
A renewal process with gap law and known initial age has first residual waiting time distributed as and
-
After its first request, whenever the current post-first gap has age , its residual lower median is at most .
Proof. First note that the formula indeed defines a probability distribution without any further restriction on the support values: since every and , each long atom lies strictly above and is therefore distinct from the short atom , while the long-atom masses sum to . Because and every support value is positive, the event consists exactly of the long atoms and has probability (Figure 5 visualizes these two operations). Hence, for every ,
which proves the first claim. After the first request, suppose the current gap has age . Every support point of exceeds , so conditioning on leaves probability on the short gap . The residual waiting time therefore has an atom of mass greater than at , and its lower median is at most .

Figure 5: Conditioning on the known initial age removes the short atom at and renormalizes the long atoms; subtracting leaves exactly the prescribed first-request law . For the first request, the gap is measured from the page's previous (fictitious) request at age 0; the dashed line marks age , the current time ("time 0"), so a page enters already into its gap.
We call a page immediately after its programmed first request. In the finite construction on the "good" event, which we describe in Lemma 27, every post-first gap equals . Thus a spent page always has residual lower median at most before the horizon, so at global time its median next-request epoch is at most . We place all construction windows later than this bound, which prevents spent pages from becoming eviction candidates.
Here initial age means the process's previous request occurred at time , so at time 0 it has already waited for duration without a request.
4.2 Pages, Residue Classes, and Windows
This subsection fixes everything about when requests may occur; the probability laws that use these times follow in Section 4.3.
The pages. Fix a block count and an integer . The instance uses a single deterministic starter page , anchor pools , and token pools , of sizes
Pools with drive block , while and only supply boundary pages at the very end of the construction; the roles of all these pages are defined in Section 4.3, and the sizes (22) matter only for the finite analysis in Section 4.6. In total there are anchors and tokens, hence pages including the starter.
Residue classes. Set ; there are exactly nonzero residues modulo , one per page. Assign the pages distinct nonzero residues . Every page other than is programmed by Lemma 19: choose its first-request law on times , choose with , and use . Then its first request has residue (by the first part in Lemma 19 it occurs at a residual atom ), and every later gap is divisible by . Indeed, the short gap equals , and every long gap with satisfies . Give deterministic gap and initial age , so it first requests at and thereafter every time units. Thus every page remains in its own residue class and distinct pages never request simultaneously. The deterministic starter also supplies the periodic requests used later to convert the time construction to a request-count horizon.
From now on, the construction uses as the short post-first gap; that is, the parameter from Lemma 19 is fixed to . Figure 6 depicts this invariant.

Figure 6: Residue-class separation. The first-request law of each page is supported on one residue class, and every later gap is divisible by . Thus page always requests at times congruent to , page always requests at times congruent to , and distinct residues prevent ties.
Remark 20. It is tempting to read the residual identity as “ becomes 0 after the first request.” It does not. The law is the first-request law only, and it is never redrawn; later gaps are drawn from the gap law of Lemma 19, and keeps its fixed value throughout, entering only as the offset inside the long atoms. What does reset to 0 at every request, including the first, is the renewal age (the time since the most recent request); this is the in the bound of Lemma 19. In particular the initial age is used exactly once to delete the short atom from the first gap, so that the first request follows ; from then on no conditioning is applied.
Blocks and windows. Time is organized into consecutive blocks, and each block contains five disjoint windows, in the order
and whenever . There is no window ; after come only the post-horizon atoms. The five windows will contain, respectively, early anchor requests, token filters, a token checkpoint, anchor filters, and late anchor requests; the laws that place atoms there are defined in Section 4.3, and Figure 7 gives a block-level view. For concreteness, every window is an integer interval of length , consecutive windows are separated by an empty interval of length , and the first window is chosen so that (recall from the residue-class paragraph that is the deterministic first-request time of the starter ), where denotes the first integer time in . The exact endpoints are otherwise irrelevant.

terminates in block ; a token first reaches a checkpoint in block and may survive later.
each box has length ; each arrow represents an empty gap of length
Figure 7: Global layout and one-block scale (schematic, not to scale). There are blocks and no block ; are boundary pools. Every window has length , and consecutive windows are separated by an empty interval of length .
Placing atoms inside a window. Cut the window into consecutive slots of length ; since , there is room for of them. A slot is a run of consecutive integers (representing time units) and therefore a complete residue system modulo : it contains exactly one time congruent to any prescribed residue. So whenever a window must contain atoms of pages in a prescribed order, where , place the th atom at the unique time of slot congruent to . Every page keeps its residue class, and the prescribed order is realized because the slots are consecutive. Figure 8 depicts one window. No window is ever asked to hold more than atoms, since exceeds the total number of pages other than the starter.

Figure 8: A window is cut into consecutive slots of length . Each slot is a run of consecutive integers, hence a complete residue system modulo , so it contains exactly one time congruent to : put the th atom there. This realizes any prescribed order with and keeps every page in its own residue class.
4.3 The Anchor and Token Laws
With the timetable of Section 4.2 in place, we now define the first-request laws. An anchor is a page in a pool whose terminal first request is either early, in , or late, in ; these are the pages the median rule is forced to evict. A token is a page in a pool whose first request progresses through token-filter and checkpoint times. Its role in the comparison policy is defined in Section 4.5. An atom is only a support point of the random first-request time : each page draws one atom, and that atom is when its first request occurs. A page is live until that first request and spent afterward. Thus “anchor” and “token” name page roles, while “atom” names a possible request time.
Fix a slack , and write
All probabilities below describe independent first-request times produced by Lemma 19, with atoms placed inside their windows, each in its page's residue class, by the scheme of Section 4.2.
Anchors. For , an anchor is programmed with the first-request law below. These probabilities are exactly the prescribed first-request law that is fed into Lemma 19. A simpler equivalent description is sequential: conditional on having survived the previous filters (i.e., ), the anchor requests at the current filter with probability and otherwise continues; after surviving the first filters, it chooses the early atom in with probability and the late atom in with probability . Multiplying these conditional probabilities gives the following unconditional masses.
where , , and . Indeed, the filter masses sum to , and the terminal pair has total mass , so the law has total mass one. The filters are what keep the construction local in time: in every block , a live anchor of has its next unresolved atom in , so its median stays inside the current block, below the late window of the block's own anchors (Lemma 22). Without them, an anchor of a later pool would carry the largest median already in block and the cascade would leave . Index the anchors in as in the order in which the median rule should expose them, and place their terminal atoms so that
Both orders are realized by the placement scheme of Section 4.2: list the early atoms inside in increasing index order, and the late atoms inside in decreasing index order. Concretely, is considered before : its early atom satisfies , but its late atom satisfies . Hence, if requests early, the median rule next exposes ; if instead returns late, then has already requested, either in or earlier in . The same statement holds for every consecutive pair .
Boundary anchors. A final pool places mass at a filter atom in for every , and places its remaining mass beyond the horizon. Index this pool as as well, and give smaller-index boundary anchors later post-horizon atoms. This pool supplies the anchor evicted at the final late fault.
Tokens. For , a token uses the same half-survival mechanism: conditional on not having requested earlier, it requests at the current filter (for ) or checkpoint
(for ) with probability , and otherwise continues. Equivalently, it has
where and ; the remaining mass is placed beyond the horizon. These probabilities also sum to one. The token filters play the same role as the anchor filters: they pin the next unresolved atom of every live token inside the current block, in or , so token medians never rise above anchor medians (Lemma 22). For technical reasons explained where the comparison policy is defined (Section 4.5), the token filters must strictly precede the checkpoint within each block. Call a live token checkpoint-ready in block when its next unresolved atom lies in . Conditional on the history that made it checkpoint-ready, it requests at with probability ; if it does not, its next unresolved atom lies in , or at its post-horizon tail when .
Ordering the post-horizon atoms. Place the post-horizon atoms of strictly after the post-horizon atoms of every token pool, that is, after the tails of every pool . The ordinary anchor pools have no post-horizon atoms: all their mass is on filters and their early/late terminal pair. A post-horizon atom is an ordinary support point and does carry probability mass per page), but its location is ours to choose, exactly as for atoms inside windows. In Section 4.6 we cut the run off at a finite request-count horizon and place every post-horizon atom so late that the horizon is provably reached first. The ordering of these atoms therefore influences only median comparisons, through Lemma 21, and never the realized request sequence.
4.4 Ordering the Medians
The next two lemmas locate the median next-request epoch of every page and then compare the locations using (23).
Lemma 21. Fix any global time strictly before the programmed first request of a page ; equivalently, the page is live at time . Call the smallest atom of 's law exceeding its next unresolved atom.
(a) If it is an anchor of that has declined all filters , its lower-median next-request epoch is its late atom .
(b) In every other case, its lower-median next-request epoch is its next unresolved atom; concretely, this is its atom in the earliest of its designated windows not yet past , as it has at most one atom per window.
Proof. Let be the page's next unresolved atom. At a filter or checkpoint, the conditional mass at is exactly ; if is the sole post-horizon tail, its conditional mass is 1. In either case the conditional CDF first reaches at , so the lower median is . For an ordinary anchor page that has passed all filters, if time is before its early atom, the remaining conditional masses are at and at , so the lower median is . If has already passed without a request, the late atom is the only remaining atom, and the same conclusion holds.
Throughout the rest of this section we use the following fact about spent pages: at every time considered, each spent page's current post-first gap has age , so by the second part of Lemma 19 its residual lower median is at most , and its median next-request epoch at global time is at most . This holds because every realized post-first gap equals the short gap
D: in the finite instance this is exactly the exclusion of the bad event in Lemma 27, valid before the horizon on its good event, and the idealized experiment adopts it by convention (spent pages request every time units; the idealized experiment's conventions are collected in Definition 24). The deterministic starter satisfies the same bound, since its gap is exactly .
Lemma 22. The deterministic starter requests at and is chosen so that ; every other page's first-request atoms lie in or later. Let be either (for the initial eviction) or a request time in (for the cascade in block ). The resident pages' median next-request epochs are ordered as follows:
| resident page | median next-request epoch |
|---|---|
| spent page or deterministic starter | at most |
| token whose next atom is a filter | in |
| token whose next atom is a checkpoint | in |
| anchor in with , including | in |
| live anchor in | in |
The first row covers the starter and every spent page; the remaining rows classify the live pages by their next unresolved atom and, together, cover all of them. These locations are strictly increasing.
Proof. For in , the table follows from Lemmas 19 and 21. A spent page has residual lower median at most , by the spent-page convention stated before the lemma, hence median epoch at most ; the deterministic starter has the same bound. Every other page has the median epoch specified by its next atom, except a live anchor, whose median is its late atom. The empty gap after has length , so for every . Equation (23) then gives the strict ordering. The same argument applies at , because .
Corollary 23. Assume the anchor pool named below has a live survivor, then
(a) At the starter fault at and at every fault of during , the median policy evicts the smallest-index live anchor of (with at the starter fault).
(b) If the selected anchor, say , takes its late branch, then at its request time every anchor of is spent, and the median policy evicts the smallest-index surviving anchor of , or of when .
Proof. (a) At any such , Lemma 22 places the live anchors of strictly above every other resident; among them, (27) gives the smallest-index live anchor the largest late atom, so it is the unique maximum-median page and is evicted.
(b) We compare the medians at the late fault in directly, via the following two steps. First, the pool is exhausted at . Any anchor that failed one of was already spent before block . Among the anchors that passed those filters, each smaller-index anchor than was selected earlier and requested early in . Each larger-index survivor either requests early in or has a late atom . Thus every page of is spent by time .
Second, the eviction at . Assume first that . At this time, each surviving token has its next atom either at a filter in or at a checkpoint in . Each anchor in a pool later than has its next filter in , while a surviving anchor has declined its last filter and has median in . Because the empty gap from to has length , every spent page and the deterministic starter have median epoch before , hence before all four displayed candidate
This is automatic in the idealized experiment and holds in the finite instance on the good event of Lemma 27.
groups. The next-block ordering is therefore , and the smallest-index surviving anchor of is the unique maximum, hence is evicted. For : every surviving token has passed all its checkpoints by , so its median is its post-horizon tail, and every surviving anchor has declined all its filters, so its median is its post-horizon atom. Our construction places every atom after every token tail and gives smaller-index boundary anchors later atoms, while spent pages and the starter again have median epoch at most , which precedes all tails. Hence the smallest-index surviving boundary anchor is the unique maximum and is evicted.
4.5 The Median and Comparison Policies
The “inexhaustible pools” used below are an abstract idealized experiment, defined precisely in Definition 24, not a paging instance with infinitely many simultaneously running renewal processes. For each pool, reveal an ordered sequence of independent candidates only as the dynamics needs them; a revealed anchor has the conditional early/late law after surviving its filters, and a revealed token candidate has conditional checkpoint probability . The finite construction is the actual paging instance. On the good event in Lemma 27, its first sufficiently many surviving candidates have exactly the same revealed outcomes as this reservoir experiment. This interpretation avoids any local-finiteness issue from literally merging infinitely many renewal processes.
Definition 24 (Idealized experiment). For definiteness, the idealized experiment makes the following assumptions; the finite instance matches each of them on the good event of Lemma 27, which is the content of the coupling in its proof.
(i) It runs on the timetable of Section 4.2: the same windows, residue classes, atom placements, and deterministic starter.
(ii) Every post-first gap equals , so a spent page requests deterministically every time units. This is the convention invoked for spent pages before Lemma 22; in the finite instance it is enforced, before the horizon, by excluding long post-first gaps; this is precisely the bad event in the proof of Lemma 27.
(iii) Pools are inexhaustible: whenever the dynamics needs the next live anchor of , a filter-surviving replacement token of , or a surviving boundary anchor of , one exists. This is exactly the survivor hypothesis of Corollary 23.
(iv) The experiment ends at the final late fault of block ; every post-horizon atom lies strictly after all times considered and is never requested.
(v) All revealed candidate outcomes are independent, with the conditional laws stated above.
We compare the median policy with an online comparison policy , whose evictions are defined here. In the finite construction, every anchor and token starts in the cache, while the deterministic starter page starts outside, so the cache contains all but one page. There are pages in total, and the cache size is . By construction, requests first at and then every time units. The first request is therefore to , and these two policies fault. By Corollary 23(a), evicts the smallest-index live anchor . The comparison policy instead evicts a fixed token . If is the common part of the two caches after this fault, then
We call the missing anchor of the median policy and the active token of the comparison policy. Figure 9 previews the resulting one-pair cache invariant and separates the two possible outcomes at the checkpoint (whether the active token requests there or it does not) before the formal proof.
The comparison policy . The policy is fully specified by three clauses: at the starter fault it evicts a fixed token of (which is checkpoint-ready in block 1, since tokens have no filters); at each of its checkpoint faults (that is, whenever its active token requests at a checkpoint ), it installs the requested token and evicts the first token of that has survived all filters through (survival is determined by the observed request history, so the rule is online, and the evicted token is checkpoint-ready in block ); and if no such token exists (which happens only on the bad event excluded in Lemma 27) it follows a fixed fallback rule, say, evict the smallest-index token currently in its cache, or the smallest-index page if no token remains; the choice is immaterial, since Lemma 27 bounds costs on the bad event crudely. It never evicts any other page, and we will see in Lemma 25 that it never faults except at and at checkpoints.
This definition is also where the separation inside each block, promised in Section 4.3, earns its keep, in two ways. First, at its checkpoint fault in the policy must name a token of that has survived all filters through ; because every atom precedes every atom, that survival is fully resolved by the observed history before the fault, keeping the rule online. Second, the replacement token it evicts has no atom before , so it cannot request and force an unintended second comparison fault later in the same block. If the token filters shared the checkpoint window, both properties could fail.

Notation: left of | is the anchor present only in ; right of | is the token present only in .
Figure 9: The one-pair invariant as a state machine. Early anchor requests change only the missing anchor. A token checkpoint changes only the active token. The selected anchor's late return advances the anchor discrepancy to the next block. Hence the caches always differ by one anchor/token pair, while pays once per selected anchor and pays at most once per block.
Lemma 25 (One-pair invariant). Suppose block begins with caches of the form (30), where is the smallest-index live anchor of and the next possible request of is the checkpoint (i.e., is checkpoint-ready in block ). Throughout the block, the two caches differ by exactly one missing-anchor/active-token pair. The median policy faults once for each anchor it selects, whereas the comparison policy faults in the block if and only if its active token requests at , in which case it faults once.
Moreover, if , then block again begins with caches of the form (30): the missing anchor is the smallest-index live anchor of , and the active token is checkpoint-ready in block .
Proof. First suppose the missing anchor requests early in . It is present only in 's cache, so only faults. By Corollary 23(a), evicts the next smallest-index live anchor of . The caches again have the form (30), with discrepancy versus the same token . This argument repeats for every selected anchor taking the early branch.
Eventually the selected anchor takes its late branch. Consider the checkpoint first: if requests at , only faults; it installs and evicts a surviving token , so the active token becomes while the missing anchor is still . Whether or not this happened, exactly one median fault follows: at the request to in , only faults, and by Corollary 23(b) it evicts an anchor of (or in the last block). The discrepancy is then versus the current active token, or . Every other request is to a page held by both policies and changes neither cache discrepancy nor cost. Figure 9 depicts these transitions.
Finally, the closing configuration restores the hypothesis for block when : the missing anchor is the smallest-index live anchor of by Corollary 23(b), and the active token is checkpoint-ready in block —it is either , which declined and therefore has its next unresolved atom in , or the replacement , which survived all filters through and has its first checkpoint atom in .
Proposition 26. In the abstract idealized experiment, the expected costs through the end of block are
Proof. Here an anchor counts as selected in block if it is the missing anchor at some moment of block ; the anchor evicted at the previous block's late fault (or at the starter fault when ) is the first selection of block , and each selected anchor's single first request faults the median policy during the block, by Lemma 25. Conditioned on reaching its terminal pair, every selected anchor independently takes the early branch with probability and the late branch with probability . Therefore the number of anchors selected in block satisfies
Conditional on being active at the beginning of block , the token places exactly half of its remaining probability at . Thus its checkpoint-fault indicator has conditional expectation , and hence . Independence among the is not needed. By Lemma 25, the two costs are the common starter fault plus and , respectively. Linearity of expectation proves (31).
4.6 Finite Instances and a Request-Count Horizon
Recall from Section 4.2 the integer , the pool sizes (22), namely and , and the page total . A member of survives its first filters with probability , so the expected number of terminal-pair survivors is exactly . A member of survives to its first checkpoint , or to its post-horizon tail when , with probability , so the expected number of such survivors is exactly . For fixed , the number of pages is polynomial in .
Throughout, a request horizon T is a number of requests: the run is truncated after the Tth request, and counts faults among those requests, as in (3).
Lemma 27. For fixed and , the atoms, programming parameters, and a finite request horizon can be chosen so that
Proof. Step 1: the bad events. Let be the following bad events.
: Some anchor pool has fewer than survivors after its filters, or some token pool has no survivor reaching its first checkpoint (or, for , its post-horizon tail).
: In the idealized experiment, for some block ; that is, the block would require more than selected anchors.
: Before the chosen request horizon, some programmed page draws a post-first gap different from the short gap .
Step 2: bounding and . The relevant survivor counts in are binomial with means 2L for anchors and L for tokens. Explicitly, the number of terminal-pair survivors of is with ; the multiplicative Chernoff lower tail with gives . The probability that no token of reaches its first checkpoint (or, for , its tail) is , by . A union bound over the pools gives . In each block, selecting more than L anchors requires the first L selected anchors all to take the early branch, so .
Step 3: the request-count horizon. We next choose a horizon measured by requests. All intended first-request atoms through can be placed at polynomially bounded times; let be the integer time just after . Every programmed page has at most one first request and every later gap is at least ; the starter requests exactly every time units. Hence is an upper bound on the total number of requests by time . Place every post-horizon atom after and set . Because at most requests occur by , the th request occurs after all intended atoms through . Conversely, the deterministic starter alone makes at least requests during any interval of length , so the th request occurs no later than , strictly before every post-horizon atom.
Step 4: bounding . Use the same programming probability for every programmed page. The deterministic starter contributes no bad gap, and at most post-first gaps of programmed pages are sampled before the horizon, so a union bound gives .
Step 5: coupling to the idealized experiment. Couple the finite instance to it by ordering each finite pool by rank and matching its successive filter survivors to the successive candidates revealed from the corresponding idealized pool. Match the early/late terminal branch of each anchor and the complete first-checkpoint-or-tail outcome of each token. On the event , every anchor and replacement token selected by either policy belongs to the finite pools, and every post-first gap seen before the horizon is the short gap . Hence the finite-instance and idealized costs agree on . In detail: on the matched outcomes and uniformly short gaps make the two request sequences identical through the final late fault, so, by induction over requests, both policies evict and fault identically in the two experiments. After that fault neither experiment faults again before the horizon: with cache size , each cache misses exactly one page ( 's cache misses the boundary anchor, 's misses the active token) and neither of these two pages has a remaining atom before the horizon, while every other page is in both caches. Finally, the late fault precedes , hence the th request (Step 3), so every idealized-experiment fault is counted within the horizon.
Step 6: from the coupling to the cost estimates. Let and denote the finite-instance and idealized costs for . We always have , since the run contains requests and each contributes at most one fault. Moreover, for fixed and , , while (the block selection counts of Proposition 26) has second moment:
Therefore, writing , Cauchy-Schwarz gives
To elaborate the final step, the two summands vanish for different reasons: the first races the polynomial against small probabilities, while in the second the square root of the second moment is a constant not depending on , so plain convergence suffices. For the first summand,
where the last step holds since for fixed (Step 3), and . For the second summand,
where bounds for both policies and is a constant for fixed H and . Combining this coupling estimate with Proposition 26 proves both equalities in the lemma.
4.7 Proof of Theorem 2
Theorem 2. In the independent inter-arrival model, allowing known deterministic initial ages, the median algorithm is not c-competitive against OPT for any c < 4.
Proof. Since OPT minimizes (3) over online policies and is online, on every instance and horizon, so the competitive ratio of is at least 1. Fix any ; by Observation 4 it suffices to exhibit an instance, a horizon, and an online policy with . Our witness is , which is online.
Choice of . Since , the number is positive; fix , so that ; equivalently, , using .
Choice of . With fixed, the ratio is increasing in and
so there is a fixed with .
Choice of . With and held fixed, write the conclusion of Lemma 27 as
where and are real sequences tending to as ; this is the meaning of in that lemma. Set . The choice of gives , and , so . Since both error sequences vanish, we may fix large enough that and . Then
For this instance and horizon, Observation 4 applied with the online witness shows that is not -competitive. As was arbitrary, the competitive ratio of the median algorithm is at least 4.
The programming lemma realizes every prescribed first-request law by using an i.i.d. finite-support gap distribution together with a known deterministic initial age. These initial ages are essential to the present construction.
This initialization convention is also covered by the matching upper bounds. Lund et al. [15] state their 5-competitive theorem for every initial configuration, explicitly including each page's elapsed time since its last request. Pabbaraju and Vakilian's improved charging lemma [16] uses only the same per-fault precedence guarantee; conditional on the full observed history (equivalently, the current age vector) independent renewal processes have independent residual times, so the median rule satisfies that guarantee with . Hence their 4-competitive upper bound also holds for arbitrary known deterministic initial ages.
AI Disclosure
The results were obtained through iterative and interactive engagement between the author and AI models, including GPT-5.5 Thinking, GPT-5.6 Sol, Opus 4.8 and 5, and Fable 5. AI models were also used throughout the writing process, after which the manuscript was substantially revised and rewritten by the author. All figures were generated using Opus 4.8 and Opus 5 and were subsequently modified and refined by the author.
The author takes full responsibility for the correctness of the results and has extensively verified, modified, and improved the proofs and exposition throughout the process, building on AI-generated proof ideas, analyses, and drafts.
References
[1] Spyros Angelopoulos and Pascal Schweitzer. Paging and list update under bijective analysis. In Proceedings of the twentieth annual ACM-SIAM symposium on Discrete algorithms, pages 1136–1145. SIAM, 2009.
[2] Luca Becchetti. Modeling locality: A probabilistic analysis of lru and fwf. In Algorithms–ESA 2004: 12th Annual European Symposium, Bergen, Norway, September 14-17, 2004. Proceedings 12, pages 98–109. Springer, 2004.
[3] Laszlo A. Belady. A study of replacement algorithms for a virtual-storage computer. IBM Systems journal, 5(2):78–101, 1966.
[4] Allan Borodin and Ran El-Yaniv. Online computation and competitive analysis. cambridge university press, 2005.
[5] Allan Borodin, Prabhakar Raghavan, Sandy Irani, and Baruch Schieber. Competitive paging with locality of reference. In Proceedings of the twenty-third annual ACM symposium on Theory of computing, pages 249–259, 1991.
[6] Peter J Denning. The working set model for program behavior. Communications of the ACM, 11(5):323–333, 1968.
[7] Reza Dorrigiv and Alejandro López-Ortiz. A survey of performance measures for on-line algorithms. SIGACT News, 36(3):67–81, 2005.
[8] Amos Fiat and Anna R Karlin. Randomized and multipointer paging with locality of reference. In Proceedings of the twenty-seventh annual ACM symposium on Theory of computing, pages 626–634, 1995.
[9] Amos Fiat, Richard M Karp, Michael Luby, Lyle A McGeoch, Daniel D Sleator, and Neal E Young. Competitive paging algorithms. Journal of Algorithms, 12(4):685–699, 1991.
[10] Yi Hao, Alon Orlitsky, and Venkatadheeraj Pichapati. On learning markov chains. Advances in Neural Information Processing Systems, 31, 2018.
[11] Sandy Irani. Competitive analysis of paging. Online Algorithms: The State of the Art, pages 52–73, 2005.
[12] Sandy Irani, Anna R Karlin, and Steven Phillips. Strongly competitive algorithms for paging with locality of reference. In Proceedings of the third annual ACM-SIAM symposium on Discrete algorithms, pages 228–236, 1992.
[13] AR Karlin, SJ Phillips, and P Raghavan. Markov paging. In Proceedings of the 33rd Annual Symposium on Foundations of Computer Science, pages 208–217, 1992.
[14] Elias Koutsoupias and Christos H Papadimitriou. Beyond competitive analysis. SIAM Journal on Computing, 30(1):300–317, 2000.
[15] Carsten Lund, Steven Phillips, and Nick Reingold. Paging against a distribution and IP networking. Journal of Computer and System Sciences, 58(1):222–231, 1999.
[16] Chirag Pabbaraju and Ali Vakilian. New and improved bounds for markov paging. arXiv preprint arXiv:2502.05511, 2025.
[17] Tim Roughgarden. CS 369N Beyond Worst-Case Analysis, Lecture Notes 2: Models of Data in Online Paging. https://timroughgarden.org/f11/12.pdf, 2010.
[18] Daniel D Sleator and Robert E Tarjan. Amortized efficiency of list update and paging rules. Communications of the ACM, 28(2):202–208, 1985.
[19] Eric Torng. A unified analysis of paging and caching. Algorithmica, 20:175–200, 1998.
[20] Geoffrey Wolfer and Aryeh Kontorovich. Statistical estimation of ergodic markov chain kernel over discrete state space. Bernoulli, 27(1):532–553, 2021.
[21] Neal E Young. Bounding the diffuse adversary. In Proceedings of the ninth annual ACM-SIAM symposium on Discrete algorithms, pages 420–425, 1998.
[22] Neal E Young. On-line paging against adversarially biased random inputs. Journal of Algorithms, 37(1):218–235, 2000.
A Stationary Calculation for the Four-Page Construction
We prove Proposition 17. After serving a request, let be the current page (i.e.; the current state of the Markov chain which is the page just requested) and let be the unique missing page. Classify the state by whether is an entry page () or an exit page (), and by whether equals , , or . This gives six symmetry classes: .
Consider the two-parameter family of policies that evict with probability at an entry-page miss and with probability at an exit-page miss, and otherwise evict . The witness has , while has . The six-state transition table is
with a fault,
without a fault,
with fault probability ,
(34)
without a fault,
with fault probability .
For completeness, the lines follow directly from the definitions. In , the next request is the missing page , an exit-page miss, and the eviction produces or . In and , the next request is a hit and the missing page retains type or . In , staying in the block, which has probability , requests the missing page and causes an entry-page miss; switching blocks, which has probability , hits the other block's entry page and leaves a type- hole. In , both possible requests are hits, yielding or . Finally, in , staying is a hit of type , whereas switching requests the missing page and causes an entry-page miss.
Lemma 28. Set . When and , the six-state chain is irreducible. Its stationary law, in the order , satisfies, with ,
Its stationary fault rate is
For , the chain has a unique closed recurrent class and fault rate .
Proof. When and , inspection of (34) shows that all six states communicate: reaches both and ; reaches ; and connect back through a block switch. Thus the chain is irreducible.
Write for the stationary masses of , respectively. Thus, in particular, . Reading the inflows from (34) gives
Since , the last balance equation becomes . Since , this implies . Together with , we obtain . We now substitute these identities and into the balance equation for :
Rearranging gives
It remains to determine by normalization. Using and ,
By (36), , and hence . Since , this is precisely the value denoted by in the lemma statement. The remaining displayed stationary masses follow from
A fault occurs on the next transition with probability one from , with probability from , and with probability from . No other state contributes to the one-step fault probability. Consequently,
Substituting the value of proves (35).
Finally, suppose that . In this case every state reaches the closed recurrent class . Solving the balance equations on this class gives . Since only contributes a fault, the stationary fault rate is .
For , substitute and into (35). This gives
The six-state chain induced by is irreducible. The chain induced by has the unique recurrent class identified in Lemma 28, and all its other states are transient. Hence the finite-state Cesàro theorem applies from the uniform initial page and common initial cache fixed in Section 2, regardless of the period of the base request chain, and yields
This proves Proposition 17.