Manuscript Offprint
arXiv:2611.05669The Harmonic Online -Server Algorithm Is Poly(k)-Competitive
Abstract
The online -server problem is one of the most fundamental problems in online algorithms. In this problem, servers are located in a metric space and serve a sequence of requests at points in the metric space by moving a server there. The HARMONIC algorithm is a very natural algorithm: it chooses a server with probability inversely proportional to its distance from the request. It is also highly efficient, being memoryless and answering each request in time. However, its competitive ratio has remained unsettled between the upper bound (Bartal and Grove, JACM 2000) and the lower bound (Raghavan and Snir, 1994, IBM J. Res. Dev.). We prove that HARMONIC is -competitive on every metric space against adaptive online adversaries. Our analysis uses a potential combining corrected electrical energy with the distances of online servers to their assigned adversary locations.
*Supported in part by NSF grant CNS-2107078. Email: yichenhuang@g.harvard.edu.
1 Introduction
The -server problem is one of the central problems in online algorithms [BCL+18; BCR23; CKZ26; KP95; MMS90]. In this problem, servers occupy points in a metric space . At each time , a request appears at a point , and the algorithm must move a server to . The cost is the total distance traveled by the servers. An online algorithm must select a server without knowledge of future requests. The goal is to minimize the competitive ratio, which compares the algorithm's cost with that of an optimal schedule that knows the requests in advance.
The work function algorithm (WFA) was recently shown to achieve competitive ratio [CKZ26], which is optimal both for deterministic algorithms and for randomized algorithms against adaptive online adversaries [MMS90; RS94]. Against oblivious adversaries, a recent preprint establishes an upper bound [Ope26a], matching the lower bound in [BCR23].
Although information-theoretically optimal, these competitive ratios come with heavy computational costs. Known implementations of WFA answer each request in time that either depends exponentially on or grows with the number of previous requests [CC26], and they require comparable memory to store the work-function values or prior request locations [RS22]. The implementation of the -competitive algorithm also has time and memory usage that grow with the request count [Ope26b]. When time and space are limited, we would like a fast algorithm with small memory usage.
A particularly attractive candidate in this regard is the HARMONIC algorithm, introduced in [RS89; RS94]. On an uncovered request, it selects a server for the request with probability inversely proportional to its distance from the request. This rule is simple and intuitive: nearby servers are more likely to move, while randomization allows every server to be selected. It is also memoryless, and each decision takes distance evaluations and arithmetic operations, independently of the number of points in the metric and the length of the request history.
Unfortunately, the competitive ratio of the HARMONIC algorithm has remained poorly understood. [RS94] proves a lower bound of , even against an oblivious adversary. [Gro91] establishes that HARMONIC is competitive, and [BG00] gives the best previously known general upper bound, , against adaptive online adversaries. The gap between these bounds leaves open whether HARMONIC's simplicity incurs a polynomial or an exponential loss.
We prove the first polynomial upper bound on HARMONIC's competitive ratio. Thus HARMONIC has a competitive ratio and per-request response time that are both polynomial in and independent of the metric size and the request history. To the best of our knowledge, this is the first such joint guarantee.
Theorem 1.1. HARMONIC is -competitive for the online -server problem on every metric space against adaptive online adversaries.
We prove Theorem 1.1 via a novel potential function based on electrical networks. Electrical networks have been used to analyze how HARMONIC repairs a single mismatch while the adversary stays fixed [BCNR02]. However, this analysis does not directly extend to general adaptive interactions: several discrepancies may coexist, and the adversary may move again before they are repaired.
To account for these mismatches together, we assign each online server to an adversary location. The assignment need not be injective: several servers may share an assigned location. An assignment is charged both the total assignment distance and the resulting imbalance relative to
A randomized server algorithm is memoryless if the distribution of its next move depends only on its current server configuration and the current request (cf. Section 2).
one assigned server per adversary location. The potential is the minimum of a weighted sum of these two charges over all assignments.
To measure the imbalance, we build an electrical network on the adversary locations, joining every pair by a resistor whose resistance is their distance. Each location with extra assigned servers supplies one unit of current per extra server, while each location with no assigned server receives one unit. Among flows meeting these supplies and demands, the electrical flow minimizes the energy: the sum of resistance times squared current.
Energy alone, however, need not decrease in expectation when HARMONIC moves. Because it is symmetric, the energy loses information about direction: swapping an extra server and a missing one preserves their energy, although serving distinguishes the source from the requested destination. To capture this distinction, we add a linear correction consisting of a location-dependent charge per assigned server.
We choose this correction so that the decrease in corrected energy from each move between assigned locations is proportional to a voltage difference in one common electrical field. Dividing by the assigned movement distance then gives a quantity proportional to current, matching HARMONIC's reciprocal-distance probabilities. Kirchhoff's law and the triangle inequality control the resulting weighted currents, while the assignment-distance charge accounts for the difference between assigned and actual movements. Together, these bounds show that the expected potential decrease pays for HARMONIC's expected movement. Finally, bounding current magnitudes by the total supply also controls sensitivity to adversary movement, limiting the potential increase to times the distance moved.
Organization. Section 2 sets up the potential framework, and Section 3 reviews the single-mismatch case. Section 4 defines and motivates the potential and establishes its properties. Section 5 combines these properties to prove the competitive ratio. Omitted proof details and examples can be found in the appendices.
Electrical serving rules also appear in related memoryless algorithms. When distances can be realized as effective resistances, the RWALK algorithm in [CDRS93] computes the corresponding conductances on the current server locations and request, and uses them to select the serving server. In the hard k-taxi problem, requests specify pickup and drop-off points, and only empty travel is charged. On hierarchically separated trees, the FLOW algorithm in [CK19] chooses a taxi according to the fraction of electrical current reaching it.
The weighted k-server problem assigns each server its own movement cost per unit distance. On uniform metrics, [CV13] develops a linear-system potential analysis of randomized memoryless algorithms, including an analogue of HARMONIC that samples servers inversely proportionally to their weights.
2 Preliminaries
Let be a metric space and . We assume , since the case is trivial. A configuration is a multiset of points of , allowing several servers at the same point. For bookkeeping, we label the servers and represent the online and adversary configurations by tuples and . A request at is covered by a configuration if it contains a server at . The total cost is the sum of all server movement distances.
On a covered request, HARMONIC leaves its configuration unchanged. On an uncovered request at , it samples a label with probability
and moves server i to r.
We compare HARMONIC with an adaptive online adversary, which generates the requests and also serves them. The adversary may choose each request and its serving moves based on the algorithm's past actions, but must serve the request before the algorithm makes its fresh random choice. An algorithm is -competitive if, for every adaptive online adversary and every finite number of rounds, its expected total cost is at most times the expected adversary cost, plus an additive constant depending only on the metric and initial configurations.
Distinct Adversary Locations. We may assume that the adversary is lazy: it moves exactly one server directly to a request when that point is uncovered by its own configuration, and otherwise does not move. The standard lazification reduction is causal and does not increase cost [MMS90, Lemma 1], so it also applies to an adaptive online adversary. We may also take its initial locations to be distinct. Every lazy move then goes to a previously unoccupied point, preserving distinctness. Henceforth, the adversary is lazy and its locations are always pairwise distinct.
Potential Function Framework. For a randomized server algorithm ALG, we use a finite, nonnegative potential as credit for future online movement. Written in terms of labeled tuples, is invariant under permutations of either tuple, so its value depends only on the two configurations.
Analyze each round in two stages: the adversary first covers the request, then ALG serves it with the adversary configuration held fixed. For a parameter , we seek the following two properties for the potential.
Property 2.1 (Adversary Movement). For every online configuration , if one adversary server moves a distance from configuration to , then
Property 2.2 (Online Movement). Condition on any complete past, request r, and adversary serving moves. Let X,Y be the current configurations, with Y covering r. If is the random configuration after ALG serves r and c is its total movement cost, then
If initial adversary servers coincide, attach a private edge of length at each server's original location and start that server at the new endpoint. Keep all requests and initial online positions in the original metric, so HARMONIC's probabilities and costs are unchanged. Any original adversary schedule lifts with at most extra cost and can then be lazified. This fixed extra cost affects only the additive constant.
These two properties suffice to prove competitiveness, as the following lemma shows.
Lemma 2.3 (Potential Criterion). Under the adversary conventions above, a randomized server algorithm admitting a finite, nonnegative potential satisfying Properties 2.1 and 2.2 for some is -competitive, with additive constant for initial configurations .
Proof. Let be the online and adversary costs in round , and let be their configurations at its end. The adversary first changes to while the online configuration remains . Applying Property 2.1 to this stage and Property 2.2 to the subsequent online stage gives
Summing over rounds telescopes the potential changes. Nonnegativity of the final potential yields
The finite initial potential is independent of the requests, giving the required competitive bound.
We apply this criterion to HARMONIC with . Covered requests require no movement and satisfy Property 2.2 immediately. For an uncovered request at , the expected movement cost is . Write for the configuration after server moves to . Substituting the sampling probabilities shows that Property 2.2 is equivalent to
whenever covers and does not. Dividing by gives an expected decrease of at least , as required. We construct the potential in Section 4 and verify the two properties in Section 5.
3 Warmup: A Single Hole and Its Electrical Interpretation
We recall the classical moving-hole argument [BCNR02, Section 3]. It gives an exact potential for repairing one mismatch with a fixed adversary and explains the electrical interpretation of a random walk. Our potential will be a substantial generalization of this electrical interpretation. Readers familiar with this correspondence may skip to Section 4.
A Walk That Repairs One Mismatch. Suppose each configuration occupies distinct points and they agree at of them. Label their union , with occupied only online and only by the adversary. The unique point without an online server is the hole, initially . Hold the adversary fixed and repeatedly request the hole. Each serving move fills it and creates a new hole at the server's old position. The process stops when the hole reaches , since the configurations then agree. Until then, every request is already covered by the adversary.
Write . At a hole , every other point has one online server, so the hole jumps to with probability , where . Each jump has the same length as its serving move. Let be the expected remaining walking distance until reaching , with . These expectations are finite because the finite walk has a uniformly positive chance of reaching at every step and bounded step lengths. Conditioning on the next jump and clearing the normalizing factor gives
The right side counts possible jumps, each contributing to the movement cost. Dividing by shows that the expected decrease of equals the expected serving cost .
Reading the Identity as an Electrical Balance. Join every pair of points by an edge with resistance . A voltage is a real value at a vertex; the signed current on an edge is the voltage difference divided by its resistance. Set
The first-step identity says that every vertex other than supplies one unit of current. Since , these supplies must all reach :
The currents are signed quantities derived from the expected cost, while the walk chooses destinations by reciprocal distance. The connection is that dividing a potential difference by a serving distance gives times the corresponding current. This is the classical random-walk interpretation [DS84, Section 1.3].
The warmup’s cost-to-go relies on one hole and one fixed absorbing point. Several holes cannot be described by the same one-hole walk, and adversary movement can change the network and the repair target.
To retain the electrical structure, reverse the warmup field and divide its currents by . Label then supplies and every other label receives in net. Starting with a unit at , this leaves there and gives the same share to every other label. In the general case we first assign online servers to the current adversary locations, apply the analogous construction on their common -label network, and superpose one redistribution flow per assigned server.
4 The Potential and Its Motivation
Fix an adversary configuration and write . Our potential assigns each online server to an adversary label, evaluates a corrected electrical potential for the assigned counts, and adds credit for the assignment distances. Its value is the minimum of this combined quantity over all assignments. We give the complete definition first, then explain why its components are needed and establish their properties.
An assignment is a function sending server at to label . Its occupancy vector has coordinates . More generally, an occupancy vector gives counts of total mass . Write and let be the th coordinate vector.
The zero-sum vector describes the imbalance of these counts: positive entries specify net supply and negative entries net demand. For any zero-sum vector , define its electrical energy by minimizing over signed flows with :
Let be the energy of redistributing one unit at label uniformly among all labels, and define the corrected occupancy potential
The full potential is
The energy measures the joint imbalance from one server per adversary label. The linear correction expresses the decrease in the occupancy term caused by each movement as a voltage difference, linking it to HARMONIC's sampling probabilities. The distance term then transfers this calculation to actual server positions. We next motivate these three components gradually.
Section 4.1 explains why energy is useful and why it alone can fail. Section 4.2 derives the corrected serving identity. Section 4.3 bounds sensitivity and justifies the assignment-distance credit. Section 5 combines these ingredients to prove the competitive guarantee.
4.1 The Electrical Energy
For this subsection and the next, temporarily place each online server at its assigned adversary location and hold Y fixed. We study the occupancy term on these assigned counts. Several actual servers at distinct points may share an assigned label, so some labels can have extra units while others have none.
The difference describes the excesses and shortages. For example, gives : one extra server at each of the first two labels and one missing at each of the last two.
For a general zero-sum vector , a label with supplies units, while a label with receives units. The signed current is the amount sent from to ; a negative value means flow in the reverse direction. A flow is feasible for when at every label, routing the supplies to the receiving labels. The network has one edge of resistance between each pair of labels, and minimizing the quadratic cost gives its electrical flow. When is fixed, we omit the subscript on .
The following standard fact explains the benefit of the quadratic cost. A minimizing flow can be described by one real value at each label. These values are called voltages; their differences determine the flow on every positive-length edge.
Lemma 4.1 (Electrical Characterization and Expansion). For every zero-sum vector , the minimum defining is attained. A feasible flow is minimizing if and only if there are real values satisfying
For such a flow and every zero-sum vector b,
This is a standard minimum-energy characterization [DS84, Section 1.3.5]; Appendix A gives a proof. Since the adversary locations are distinct, for every .
The superposition promised in the warmup takes place on these labels. For a server assigned to label , the analogous reversed, normalized field has excess : label supplies , while every other label receives in net. Adding one such flow per assigned server gives total excess
Voltages and currents add on the same network, so Lemma 4.1 identifies the sum as the minimizing flow for this joint imbalance. Its quadratic energy includes the interactions among all these flows.
Energy is nonnegative, , and reversing all flows shows that . Thus measures how much imbalance remains. The example on a uniform metric explains its attraction as (part of) a potential.
Energy Pays on a Uniform Metric. Suppose the adversary locations are distinct and all distances between them are 1. Taking in Lemma 4.1 gives
Request an empty label . If a server moves from an occupied label to , only these two coordinates change, so the energy decrease is
Serving from a label with one server leaves energy unchanged. Serving from a label with at least two servers removes one extra server and one hole, decreasing the imbalance.
Every server is at distance 1 from the request, so HARMONIC selects each with probability , and selects label with probability . An empty label forces some other label to have at least two servers, giving
Each serving move costs 1. Thus pays the online cost in expectation with the adversary fixed, even when several holes coexist.
Limitations of the Energy. Energy alone can fail on a nonuniform metric. For example, with , take the star metric in Fig. 1, with seven unit-length leaves, an empty center, and leaf counts . Requesting the center changes the energy from to 0 with probability and to with probability . Its expected decrease is therefore , although every move costs 1; Appendix B gives the full calculation.
The main problem is that the energy, due to its symmetry, disregards the direction of the movement. In particular, energy treats an extra server at and a hole at the same as the reversed roles:
Serving has a direction, however: the server moves into the requested hole. Swapping the extra server and the hole can change the serving probabilities and costs, even though the energy is unchanged. This issue was absent on the uniform metric because every label has the same geometry. The linear term in supplies this missing dependence on the roles of the locations. We next explain why these particular coefficients give the serving identity we need.

Figure 1: One adversary server occupies each vertex; numbers give online occupancies. The star specifies the metric, while the electrical network has an edge between every pair of vertices. The last panel represents any of the six leaves other than a.
4.2 Deriving the Corrected Potential
The expected potential decrease averages the decreases from individual server movements, with weights inversely proportional to their distances. We therefore want the decrease from each movement to be a voltage difference: dividing by distance gives current, so the flow equations and metric inequalities can control all choices together. The linear correction produces this form for one common flow, as we now show.
Return to a general occupancy and request label . A serving move from label changes the counts to . We temporarily add a server at before choosing which old server to remove.
The temporary configuration has servers. Dividing this mass equally among the labels gives the target count , so its excess relative to this target is
Let be a minimizing flow for , with voltages . Removing one server also lowers the uniform target by at every label. Consequently, the old and new excess vectors are
Both excess vectors are obtained from the same by removing a unit-spreading vector. The quadratic expansion therefore expresses both energies using the voltages of this common flow. The linear correction cancels the remaining spreading-energy terms, giving the following identity.
Claim 4.2 (Serving Move Identity). Fix an occupancy of mass and a request label . Let be a minimizing flow with excess vector and voltages . For each with ,
Proof. The vector defining represents spreading one unit from label equally among all labels. Apply Lemma 4.1 with . Reversing a flow preserves energy, so
Taking gives the old occupancy's energy, while gives the serving outcome's energy. Subtracting cancels the common terms:
The linear term decreases by , canceling the extra . Multiplying the remaining by proves the identity.
Remark (Charge Interpretation). Let be the pseudoinverse of the network Laplacian with conductances , so . By Lemma 4.1, and , giving
This is the interaction energy of assigned unit charges, counting each unordered pair and each self-interaction once; in this form, Claim 4.2 expresses “work equals charge times potential difference” in the common field , with overall scale .
For , division by assigned serving distance gives . Thus the reciprocal-distance weights turn the corrected potential decrease into current. Section 5 will use this relation to bound the expected decrease; first we must account for the difference between assigned and actual serving distances.
4.3 Sensitivity and Assignment Credit
We now return to the actual online positions. The preceding calculation treats servers at their assigned locations; the distance credit must bridge the gap between those positions and X. A server at x assigned to serves a request r = y_{s} at distance , whereas its assigned move has distance . The triangle inequality bounds the difference by . To compensate for this discrepancy, we need an upper bound on the magnitude of an occupancy change per unit distance; individual decreases can have either sign.
The serving identity reduces this task to bounding voltage differences. We first prove this voltage bound together with an energy sensitivity bound. The latter will also be used in Section 5 to charge the potential increase caused by adversary movement.
Lemma 4.3 (Voltage and Energy Stability). Fix Y and a zero-sum vector , and put . Then, the voltages of any minimizing flow of satisfy
If is obtained from Y by moving one adversary label a distance , then
Proof. Choose a minimizing flow with voltages , and orient every nonzero edge in the direction of its positive flow. Since the adversary locations are distinct, voltage strictly decreases along every such edge. Hence there are no directed cycles.
Order the labels so that every positive edge goes from an earlier label to a later one. Such an order exists by repeatedly removing a label with no incoming edge. At any cut in this order, all crossing flow goes forward. Its total is the sum of the excesses before the cut, which is at most T. The cut just before a label bounds its total incoming flow by T; the cut just after it bounds its total outgoing flow by T. It follows that
The first inequality and give the voltage bound. Moving label changes only its incident edge lengths, each by at most . The same flow is feasible after the move, and its energy increases by at most . The new minimum is no larger than this candidate energy.
We can now apply the voltage bound to the common flow from the serving identity. Its total positive excess is at most k, so multiplying voltage differences by the identity's factor gives the following bound.
Lemma 4.4 (Individual Move Bound). For any adversary configuration , occupancy of mass , and labels with ,
Proof. Use the common flow from Claim 4.2, whose excess vector is . Every coordinate satisfies , so the total positive excess is at most . The voltage bound in Lemma 4.3 and the serving identity in Claim 4.2 give
This bound explains the coefficient in . When a server serves and is assigned to label afterward, its old assignment distance disappears. The resulting credit is large enough to absorb the discrepancy between actual and assigned serving distances. Section 5 makes this comparison precise and proves that the total expected decrease pays for the online cost.
5 Competitive Analysis
We verify Properties 2.1 and 2.2 for , taking . We follow the order of a round: adversary movement first, then online movement with the resulting adversary configuration held fixed.
For each comparison, we start with an assignment attaining the old minimum and choose a candidate assignment afterward. The new minimum is no larger than this candidate value. Consequently, the candidate's increase bounds the actual increase from above, and its decrease bounds the actual decrease from below.
Proof of Property 2.1 for . Suppose one adversary label moves a distance , from configuration to . Keep an assignment attaining and use the same labels after the move. We bound separately the change in electrical energy and in assignment distances.
For the fixed assigned counts , the vector has total positive excess at most : at most servers contribute, and at least one occupied label keeps its target unit. Each vector has total positive excess at most 1. Applying the energy bound in Lemma 4.3 to the definition of , with , gives
At most servers are assigned to the moved label. Each assignment distance increases by at most , so the distance term increases by at most another . The new minimum is no larger than this candidate value, giving
Online Movement. The adversary has now covered ; hold its resulting configuration fixed and choose with . For assigned counts and the common flow from Claim 4.2, the serving analysis leads to : currents are counted once per assigned server, and the term comes from distance credit for servers assigned to . Note that even when the request is uncovered, may be positive since it counts servers assigned to the requested location, whose actual positions may lie elsewhere. A lower bound of will suffice for Property 2.2.
Lemma 5.1 (Weighted Current Bound). Fix , an occupancy of mass , and a label . Let be a minimizing flow with excess vector . Then
Proof. Let . Conservation at s gives . We first bound the weighted sum in terms of this total incoming current.
For , the flow equation gives . Substituting for and pairing the two directions of each edge between labels other than gives
The squares are nonnegative. To control the remaining interactions, we bound each pair separately.
Claim 5.2. Every pair of distinct labels satisfies
Proof. Ohm's law gives . The triangle inequalities imply
and hence
Expanding the left side and dividing by proves the pairwise bound.
By Claim 5.2 and the identity , we obtain
Adding and substituting gives
The last inequality follows from and .
We can now make the distance-credit comparison precise and sum the contributions of all serving choices.
Proof of Property 2.2. If covers , HARMONIC does not move and the property holds. Otherwise the normalized inequality from the preliminaries is sufficient. Choose with and an assignment attaining . Let be its counts, and let and be the common flow and voltages from Claim 4.2. For every occupied label , write .
If a server at , assigned to label , serves , assign it to afterward and retain the other assignments. This candidate value decreases by , so the actual potential decrease is at least this amount.
- For , the assigned distance is positive. By Lemma 4.4 and the triangle inequality ,
Indeed, multiplying by the positive denominators reduces the inequality to . The two-sided bound proves this even when .
- For , Lemma 4.4 gives . The assignment distance is , so the decrease divided by actual movement distance is at least .
There are servers assigned to each label. Summing their contributions and applying Lemma 5.1 gives
Dividing by gives an expected potential decrease of at least , equal to the expected serving cost. Thus Property 2.2 holds.
Proof of Theorem 1.1. The potential is finite and nonnegative because it minimizes finitely many finite, nonnegative assignment values. Relabeling either configuration gives a bijection of assignments with identical values, so is invariant under relabeling. The two proofs above establish Properties 2.1 and 2.2 with . Applying Lemma 2.3 and the adversary reductions from Section 2 proves the theorem.
6 Conclusion and Discussion
In this work, we prove the first polynomial in upper bound on the competitive ratio of HARMONIC. Our bound leaves a gap between and the conjectured ratio . The scaling of the corrected energy, together with the voltage bound, leads to credit per unit of assignment distance. Under adversary movement, the corrected energy and assignment-distance terms each contribute at most per unit distance, yielding the bound . It is natural to ask whether these estimates can be sharpened and whether the approach extends to other variants, such as weighted -server.
AI Methodology. The results were achieved with the assistance of GPT-6 Astra. The author suggested considering a potential function involving non-injective matching between the online and offline configurations. The AI subsequently combined this idea with the electric field viewpoint and developed an initial proof of -competitiveness on ultrametrics. The author then worked iteratively with the AI to simplify the argument and generalize it to arbitrary metrics. GPT-6.1 Sol was also used to revise the exposition, organize proofs, and check intermediate calculations. The author takes full responsibility for the originality and correctness of all AI-assisted content.
Acknowledgements. I thank Christian Coester for introducing the problem to me and for many insightful discussions on the problem.
References
[BCL+18] Sébastien Bubeck, Michael B. Cohen, Yin Tat Lee, James R. Lee, and Aleksander Madry. "k-Server via Multiscale Entropic Regularization". In: Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing (STOC). ACM, 2018, pp. 3–16.
[BCNR02] Yair Bartal, Marek Chrobak, John Noga, and Prabhakar Raghavan. "More on Random Walks, Electrical Networks, and the Harmonic k-Server Algorithm". In: Information Processing Letters 84.5 (2002), pp. 271–276.
[BCR23] Sébastien Bubeck, Christian Coester, and Yuval Rabani. "The Randomized k-Server Conjecture Is False!" In: Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC). ACM, 2023, pp. 581–594.
[BG00] Yair Bartal and Eddie Grove. "The Harmonic k-Server Algorithm Is Competitive". In: Journal of the ACM 47.1 (2000), pp. 1–15.
[CC26] Christian Coester and Romain Cosson. "Randomized k-Server in Polynomial Time". In: 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026). Vol. 374. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026, 65:1–65:20.
[CDRS93] Don Coppersmith, Peter Doyle, Prabhakar Raghavan, and Marc Snir. "Random Walks on Weighted Graphs and Applications to On-Line Algorithms". In: Journal of the ACM 40.3 (1993), pp. 421–453.
[CK19] Christian Coester and Elias Koutsoupias. "The Online k-Taxi Problem". In: Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (STOC). ACM, 2019, pp. 1136–1147.
[CKZ26] Christian Coester, Elias Koutsoupias, and Marek Zbysiński. The k-server conjecture is true. 2026. arXiv: 2609.15979 [cs.DS].
[CL92] Marek Chrobak and Lawrence L. Larmore. "HARMONIC Is 3-Competitive for Two Servers". In: Theoretical Computer Science 98.2 (1992), pp. 339–346.
[CS00] Marek Chrobak and Jiří Sgall. "A Simple Analysis of the Harmonic Algorithm for Two Servers". In: Information Processing Letters 75.1–2 (2000), pp. 75–77.
[CV13] Ashish Chiplunkar and Sundar Vishwanathan. "On Randomized Memoryless Algorithms for the Weighted k-Server Problem". In: Proceedings of the 54th Annual IEEE Symposium on Foundations of Computer Science (FOCS). IEEE Computer Society, 2013, pp. 11–19.
[DS84] Peter G. Doyle and J. Laurie Snell. Random Walks and Electric Networks. Vol. 22. Carus Mathematical Monographs. Mathematical Association of America, 1984.
[Gro91] Edward F. Grove. "The Harmonic Online k-Server Algorithm Is Competitive". In: Proceedings of the Twenty-Third Annual ACM Symposium on Theory of Computing (STOC). Association for Computing Machinery, 1991, pp. 260–266.
[KP95] Elias Koutsoupias and Christos H. Papadimitriou. "On the k-Server Conjecture". In: Journal of the ACM 42.5 (1995), pp. 971–983.
[MMS90] Mark S. Manasse, Lyle A. McGeoch, and Daniel D. Sleator. "Competitive Algorithms for Server Problems". In: Journal of Algorithms 11.2 (1990), pp. 208–230.
[Ope26a] OpenAI. Squared-logarithmic randomized k-server on arbitrary metrics. OpenAI Math Release preprint OAI:Squared-logarithmic-randomized-k-server-on-arbitrary-metrics-September-24-2026. 2026.
[Ope26b] OpenAI. Uniform computation of the squared-logarithmic k-server bound. OpenAI Math Release preprint OAI:Uniform-computation-of-the-squared-logarithmic-k-server-bound-September-24-2026. 2026.
[RS22] Sharath Raghvendra and Rachita Sowle. "A Scalable Work Function Algorithm for the k-Server Problem". In: 18th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT 2022). Vol. 227. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022, 30:1–30:20.
[RS89] Prabhakar Raghavan and Marc Snir. "Memory versus Randomization in On-Line Algorithms: Extended Abstract". In: Automata, Languages and Programming (ICALP 1989). Vol. 372. Lecture Notes in Computer Science. Springer, 1989, pp. 687–703.
[RS94] Prabhakar Raghavan and Marc Snir. "Memory versus Randomization in On-Line Algorithms". In: IBM Journal of Research and Development 38.6 (1994), pp. 683–707.
A Proof of Lemma 4.1
Proof. A feasible flow exists by sending positive excesses to negative ones. As varies over feasible flows, the vectors form an affine subspace of a finite-dimensional Euclidean space. Such a subspace is closed and has a point of minimum norm. This proves attainment, even when some .
At a minimum, sending a small additional amount around a directed triangle preserves the net amount at each label. The derivative of the cost in this direction must vanish, giving
Fix a reference label , put , and set . The triangle identity gives for every pair; pairs containing satisfy this by definition.
Conversely, suppose a feasible with excess vector has these voltages. For any flow with excess vector , grouping terms by labels gives
Expanding the square of therefore yields
If , this shows that changing a feasible flow without changing its net amounts cannot lower the energy, so is minimizing. For general , adding is a bijection from flows with excess to flows with excess . Taking minima proves the quadratic expansion in Lemma 4.1.
B The Star Example
Take , with the adversary locations at the center and seven leaves of the star in Fig. 1. The center-to-leaf distances are 1 and the distances between distinct leaves are 2. The center is empty, one leaf has two online servers, and each other leaf has one.
The initial energy is 1/3. Serving from a balances the counts and leaves energy 0; serving from any other leaf leaves energy 4/9. All eight servers are at distance 1 from the center, so the expected decrease is
while every move costs 1. Hence no positive scaling of energy alone pays for this request.
Voltage Calculations. For the initial excess in Fig. 1, take voltages 1/3 at leaf , 1/9 at every other leaf, and 0 at the center . For excess , with another leaf, take voltages 2/9 at , -2/9 at , and 0 elsewhere. The voltage equations and net flows verify that these are minimizing flows, with energies 1/3 and 4/9 respectively.
For the center's spreading excess , use voltage 1/8 at the center and 0 at the leaves. For a leaf's spreading excess, use voltage 2/9 at that leaf, 1/72 at the center, and 0 elsewhere. Their energies are