arXiv:2609.15979cs.DSSep 2026Cited by 4 papers on PaperVantage

Manuscript Offprint

arXiv:2609.15979

The kk-server conjecture is true

Christian Coester, Elias Koutsoupias, Marek Zbysiński

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The k-server conjecture states that a deterministic online algorithm can achieve competitive ratio k on every metric space. We prove the conjecture. Specifically, we show that the work function algorithm satisfies it.

Our proof uses a natural algebraic representation of the work function as a matrix, which encodes all feasible paths to reach a configuration. In this representation, the minimum and addition operations arising in the definition of optimal costs correspond to addition and multiplication of formal expressions, and each work function value corresponds to the determinant of k columns of the matrix. A request arrival updates the representation via a change of basis and row replacement. The amortized analysis is based on a potential function defined in terms of a larger matrix whose coordinates are pairs of coordinates of the original matrix representation.

1 Introduction

The k-server problem, introduced by Manasse, McGeoch and Sleator [MMS88], is a central problem in competitive analysis. It has been repeatedly referred to as the “holy grail” of the field [BN09, BBN10, DEH +^{+}17, Lee18, CKL21, CK21, FKSW25, CU25, GKN25, BBA26], and many techniques originally developed for the k-server problem have gone on to impact various other problems in online algorithms. The problem’s definition is simple: There are k servers located at points of a metric space. At each time step, a request arrives at a point of the metric space. An online algorithm must serve the request immediately by moving a server to the requested location, without knowledge of future requests. The goal is to minimize the total distance traveled by servers.

When introducing the problem, [MMS88] showed that the competitive ratio of any deterministic online algorithm is at least k on every metric space with n>kn > k points, showed that this is tight when k=2k = 2 or n=k+1n = k + 1, and conjectured that it is tight in general. This question became known as the k-server conjecture, and has been a driving force for progress in competitive analysis. The first algorithm with a finite competitive ratio on general metrics was obtained in [FRR90], achieving a competitive ratio exponential in k. This was improved to a smaller exponential using the (randomized) Harmonic algorithm in [Gro91] and [BG00], which can be derandomized using the techniques of [BBK +^{+}94]. A substantial improvement was achieved by Koutsoupias and Papadimitriou [KP95], who showed that the work function algorithm (WFA) is (2k−1)(2k - 1)-competitive on general metrics. Another proof of this result was given in [Kou99].

The WFA was introduced in [CL92], and proposed independently also by Karloff and by McGeoch and Sleator. Its definition is simple and generic, and extends far beyond the k-server problem: For a configuration X (e.g., the positions of k servers in the k-server problem) and time t, denote by wt(X)w_t(X) the minimal (offline) cost to serve the requests up to time t and then end up at configuration X. The function wtw_t is called the work function, and its values can be computed online at time t.

WFA moves at each time to the configuration that minimizes the sum of its work function value plus the cost (distance) of moving there from the previous configuration.

The conjectured bound of kk was established for WFA in many special cases, including k=2k = 2 [CL92], n=k+1n = k + 1 (folklore, cf. [Kou09]), n=k+2n = k + 2 [KP96], line metrics [BK04], weighted stars [BK04] (equivalent to the weighted paging problem), multirays [CK21], k=3k = 3 in the Manhattan plane [BCL02], k=3k = 3 on trees [CK21], and k=3k = 3 on circles [HZ24]. Additionally, the Double Coverage algorithm achieves the conjectured bound of kk on the line [CKPV91] and, more generally, trees [CL91]. We show that WFA is kk-competitive on general metric spaces, thereby confirming the kk-server conjecture.

References (55)