Competitive Randomized Algorithms for Nonuniform Problems IV: The Optimal Randomized Two-Server Ratio 1652/1069 on the 3-4-5 TriangleResearch Paper
Motivation
The -server problem is a basic model of on-line decision making. mobile servers move in a metric space, requests for points arrive one at a time, and each request has to be covered by a server before the next one arrives. The cost is the total distance the servers move. The problem includes paging, caching and disk-head scheduling as special cases (Manasse, McGeoch, Sleator 1990). An on-line algorithm is judged by its competitive factor: how much its cost can exceed that of an off-line algorithm that knows the whole request sequence in advance.
For randomized algorithms against an oblivious adversary (one that fixes the whole request sequence before the algorithm flips any coins), the best-understood case is paging, which is the -server problem on a uniform metric space. There the optimal factor is the harmonic number . Fiat et al. proved the lower bound (1991) and McGeoch and Sleator the matching upper bound (1991). Karlin, Manasse, McGeoch and Owicki (Algorithmica 11, 1994, §5) asked whether -competitive algorithms also exist when the metric space is not uniform. They answered no, already for two servers on three points: on certain triangles the optimal randomized factor is strictly larger than . This mission formalizes their Theorem 13, which gives the exact optimal factor on the triangle with edge lengths 3, 4 and 5.
Timeline:
- 1990: Manasse, McGeoch and Sleator introduce the -server problem; is the deterministic optimum for .
- 1991: Fiat, Karp, Luby, McGeoch, Sleator and Young prove the lower bound for randomized paging. McGeoch and Sleator give an -competitive paging algorithm.
- 1994: Karlin, Manasse, McGeoch and Owicki determine the optimal randomized two-server factors on the isosceles triangles -- (Theorem 12) and on the 3-4-5 triangle (Theorem 13, the ratio ). Both exceed .
Setting
Let be a metric space with exactly three points , where , and . A configuration gives the positions of two labelled servers in . A request sequence is a finite list of points of .
A deterministic on-line algorithm assigns to each prefix of a request sequence a configuration, in which the last request is covered. Its configuration after a prefix therefore cannot depend on later requests. Its initial configuration is the one it assigns to the empty prefix, and its cost on is the total distance its servers move while serving request by request.
The optimal off-line cost from an initial configuration is the infimum, over all schedules that start at and cover each request of in turn, of the total distance moved.
A randomized on-line algorithm is a probability distribution over deterministic on-line algorithms, all starting at . The cost on each fixed is required to be measurable in the random choice, and is the expected cost. is -competitive against an oblivious adversary if there is a constant such that for every request sequence ,
These are the definitions of p. 543 of the paper. They are the platform's published KServer_model and KServer_randomized, which this mission reuses unchanged: KServer.RandomizedAlgorithm 2 M and A.IsCompetitiveFrom C₀ ρ.
Formalization targets
Goal: Theorem 13
For every initial configuration of the two servers,
The first claim is quantified over all randomized algorithms, so it also covers deterministic ones (point masses). The second claim asks for one algorithm. Together they say that is the exact optimal randomized factor on this triangle.
Milestones
- The phase LP lower bound (p. 568). Twelve linear constraints in nine probabilities , three potentials and a ratio , one constraint for each possible phase of the request sequence, of the form
Every real solution has . 2. The LP attainment (p. 568). The paper's printed probabilities lie in , and with suitable potentials they satisfy all twelve constraints at . 3. Theorem 13, first claim: the lower bound for every randomized algorithm. 4. Theorem 13, second claim: a -competitive randomized algorithm exists.
Significance
The result. Theorem 13 shows that the behaviour of randomized paging does not carry over to general metric spaces. Two servers on a three-point space already force a factor above . The value is exact, which makes this triangle a test case for any general theory of randomized -server algorithms on small metric spaces. With Theorem 12 (the isosceles triangles, a companion mission of this series), it is one of the few non-uniform metric spaces with a known optimal randomized factor.
Formalizing it. The result has been proved since 1994. To our knowledge there is no machine-checked proof. The paper derives both bounds from two framework theorems for phase-based algorithms: Theorem 3 (an LP lower bound for phase-based algorithms bounds every algorithm) and Theorem 2 (a lazy phase-based algorithm with LP bound is -competitive). The phase tables themselves (which phases can occur and what they cost) are stated without detailed proof. A formal proof has to supply both framework arguments for this space and verify the phase tables, as well as the finite linear algebra of milestones 1 and 2. The milestones isolate the exact-arithmetic core so that it can be closed independently of the probabilistic part.
Difficulty
The two LP milestones are finite exact-arithmetic facts. The hard part is linking them to Theorem 13.
For the lower bound, an algorithm need not be phase-based at all. Its probabilities may depend on the whole history, not only on the current phase, and it may leave the configuration of the off-line optimum at the end of a phase. The obvious attempt is to fix one hard request sequence and compare costs, but that cannot work: randomization defeats any single sequence. The reduction from arbitrary algorithms to phase-based ones (the paper's Theorem 3) is the substantive step.
For the upper bound, the printed probabilities describe the algorithm's marginal position after each prefix of a phase. They have to be realized as a single probability distribution over deterministic on-line algorithms that is lazy (it moves only to serve a request) and whose expected cost per phase equals the table's entry. On top of this, the LP accounting has to be turned into a bound on arbitrary request sequences, including partial phases and a start away from the optimum's configuration.
Formalization scope
- Model. The platform definitions
KServer_modelandKServer_randomizedare used unchanged. Servers are labelled (Config 2 M = Fin 2 → M). A deterministic algorithm is a function of the request prefix, which makes it on-line by construction. A randomized algorithm is a mixed strategy with a probability measure and a measurability field, and its expected cost is the lower Lebesgue integral of the nonnegative cost. The off-line optimum is a real infimum over schedules from ; the set is nonempty and bounded below by . Competitiveness allows any real additive constant. - The triangle is given by hypotheses on an arbitrary metric space: every point equals , or , and , , . These hypotheses are satisfiable () and force three distinct points.
- Initial configuration. Both claims are stated for every initial configuration , including both servers on one point. The paper does not fix the start; the additive constant absorbs it.
- LP milestones. The thirteen LP variables are free reals, with no box , exactly as the paper permits. This makes milestone 1 stronger than the boxed version; the minimum is the same either way. The twelve constraints are written out one per hypothesis, in the table's order, with the potential difference on the right. In milestone 2 the potentials are existentially quantified, since the paper names none.
- Not stated. The paper's Theorems 2 and 3 (the phase framework) and the phase tables are not separate milestones. Milestone 1 feeds the first claim through Theorem 3, and milestone 2 feeds the second claim through Theorem 2. Contributions formalizing phase-based algorithms, laziness and the LP-bound reduction for finite metric spaces would be reusable for Theorem 12 and Theorem 14 of the same paper.
- Ruled out. The lower bound is not restricted to deterministic or to phase-based algorithms, and it is not stated as "one sequence defeats every algorithm". The constant is exactly , not an approximation, and the attainment claim is not weakened to "for some initial configuration".
Selected references
- A. R. Karlin, M. S. Manasse, L. A. McGeoch, S. Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994) 542–571. https://doi.org/10.1007/BF01189993
- M. S. Manasse, L. A. McGeoch, D. D. Sleator, Competitive Algorithms for Server Problems, Journal of Algorithms 11 (1990) 208–230. https://doi.org/10.1016/0196-6774(90)90003-W
- A. Fiat, R. M. Karp, M. Luby, L. A. McGeoch, D. D. Sleator, N. E. Young, Competitive Paging Algorithms, Journal of Algorithms 12 (1991) 685–699. https://doi.org/10.1016/0196-6774(91)90041-V
- L. A. McGeoch, D. D. Sleator, A Strongly Competitive Randomized Paging Algorithm, Algorithmica 6 (1991) 816–825. https://doi.org/10.1007/BF01759073