Time-Optimal k-Server
Abstract
The time-optimal -server problem minimizes the time spent instead of the distance traveled when serving requests, appearing one after the other, with servers in a metric space. The classical distance model was motivated by a hard disk with heads. Instead of minimal head movements, the time model aims for optimal reading speeds.
This paper provides a lower bound of on the competitive ratio of any deterministic online algorithm for the time-optimal -server problem on a specifically designed metric space. This lower bound coincides with the best known upper bound on the competitive ratio for the classical -server problem, achieved by the famous work function algorithm. We provide further lower bounds of for all Euclidean spaces and for uniform metric spaces.
Our most technical result, proven by applying Yao’s principle to a suitable instance distribution, is a lower bound of that holds even for randomized algorithms, which contrasts with the best known lower bound for the classical problem, which is polylogarithmic in .
We hope to initiate further intensive study of this natural problem.
Keywords and phrases:
-server problem, optimizing time instead of distance, deterministic and randomized algorithms, Yao’s principleFunding:
Fabian Frei: This research was funded in part by grant number 218001 awarded to Fabian Frei by the Swiss National Science Foundation. Work done in part while at CISPA Helmholtz Center for Information Security and ETH Zurich.Copyright and License:
2012 ACM Subject Classification:
Theory of computation K-server algorithmsAcknowledgements:
We thank Peter Rossmanith for his suggestion to study the -server problem in the time model and Richard Královič for pointing out how the algorithm Robin could be extended to graphs of bounded aspect ratio.Editors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung TsaiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The -server problem, introduced by Manasse et al. in 1988 [23], has been repeatedly referred to as “the holy grail” of online computation [8, 2, 12]. In particular the -server conjectures about the best competitive ratios achievable by deterministic and randomized algorithms have inspired intensive research for many decades.
The -server problem can be considered for any natural and any given nonempty metric space together with an initial configuration . An instance is a sequence of point requests, revealed one by one. An online algorithm answers each request , knowing only the already revealed requests, with a configuration such that for some , which we describe as server serving request . Hence, any solution is a sequence of configurations describing the movements of servers such that each requested point is served by moving a server there. The next request is revealed only once the current request has been served. The cost of a solution is traditionally defined as the total of all distances traveled by all servers, yielding the classical, well-researched -server problem.
Another – no less natural – possibility is to count towards the cost not all but only the maximum distance traveled by any server between any two configurations. In this paper, we explore this variant and refer to the different definitions of cost as the distance model and the time model:
- The distance model.
-
This is the well-known classical variant. The cost incurred by the algorithm to serve request is the sum of all distances traveled by the servers when changing from configuration to configuration . The cost of a solution is thus , the total of all distances moved by all servers. We can imagine paying a fuel cost for all server movements.111We remark that moving more than one server per time step cannot save cost in this model as the algorithm incurs the same cost for any given movement, regardless of when it occurs. However, it is easy in the distance model to convert an algorithm that moves some servers simultaneously into a lazy algorithm, which does not do this, but incurs at most the same cost [17].
- The time model.
-
The cost for serving a request is the maximum distance traveled by the servers; i.e., the total cost is . Hence, an optimal solution minimizes the total waiting time incurred by the requests until they are served. We thus refer to the problem in this model as the time-optimal -server problem.
In many situations where requests need to be served, it is more important to react as fast as possible rather than moving less. We might consider ambulances or police cars being called to the scene of an emergency, but a good example was already given by the famous seminal paper [23] that used it to introduce the classical -server problem instead: planning the motions of a hard disk with heads. It could be argued that rather than caring about minimizing hidden head movements, the typical user wants optimized reading and writing speeds. Despite this, past research has focused almost exclusively on the distance model; see Subsection 1.1.
We hope to initiate a new line of research that focuses on the time model. As usual, the main goal is to determine the best competitive ratios achievable by deterministic and randomized algorithms. We prove several lower bounds in this new model, and design a deterministic algorithm matching these bounds on uniform metric spaces.
1.1 Related Work
In this section, we review known results and open questions for the -server problem in both models. For the classical distance model, we restrict ourselves to the most important milestones; and at the same time introduce some basic notions and concepts that we make use of later. For the time model, however, we can give a full account.
The Distance Model
We note that on metric spaces with at most points the algorithm keeping one server on each point is trivially 1-competitive. On a clique with or more vertices, there is a very simple lower bound of : for any algorithm, there is an instance that always asks for an unoccupied vertex, causing a cost of with each request, whereas the offline strategy of serving an unoccupied vertex with a server currently at a point that is not among the next requests spends at most a cost of for every requests. (The -server problem on cliques of size is also equivalent to the paging problem with pages and a cache of size [6, 17].) The lower bound of can be generalized to all nontrivial metric spaces, that is, to any metric space with at least points [6, Thm. 10.1],[17, Thm. 4.4].
Manasse et al. already conjectured that there is a matching upper bound when they introduced the problem in 1988 [23, Conjecture 4].
Conjecture 1 (k-Server Conjecture).
For any metric space and any , there is a -competitive algorithm for the -server problem in the distance model.
They also proved the conjecture in the two special cases of only servers and of servers on metric spaces with only points [23, Thms. 5, 6]. Note that the journal version of this seminal paper appeared two years later under a different title [24]. This is also how long it took for anyone to establish any upper bound on the competitive ratio that did not grow with the input length but only with , albeit with an exponential dependence [13, 14, Thm. 2]. Another four years later, Koutsoupias and Papadimitriou provided the first subexponential bounds by analyzing the so-called work function algorithm (wfa, independently proposed as a candidate by multiple researchers [11, Sect. 2.3]), which lowered the upper bound to [20, Thm. 4.3].
To date, wfa remains the algorithm with the best known competitive ratio for general metric spaces. We are thus left with a constant factor of essentially between the upper and lower bound, despite the decades-long efforts by the research community trying to improve the upper bound or disprove the -server conjecture. It is conjectured that wfa even attains the best possible competitive ratio of [20].
But at least for some special metric spaces the -server conjecture could be proven. A prominent example is the real line. Here, Chrobak et al. [9] were able to give the matching upper bound of on the competitive ratio by introducing and analyzing the so-called double coverage algorithm (dc) with the following, somewhat unintuitive behavior. When a point is requested, dc moves not only one, but two servers towards : a closest server to the right of and a closest server to the left of . They move at the same speed and both stop once one of them has reached . This strategy was generalized to trees by Chrobak and Larmore [10]. Lastly, wfa is also known to be -competitive on metric spaces with at most points, multiray spaces, and for on trees and circles [21, 12, 16].
For randomized algorithms, the proof of a lower bound of from the deterministic case does not work anymore. Instead, a lower bound of has been known for a long time. Let denote the -th harmonic number. On a clique of vertices, no deterministic algorithm is better than -competitive in expectation on the instance distribution that requests any vertex except the one just requested with the same probability of . Yao’s principle [25] now transforms this lower bound for deterministic algorithms on an input distribution into a lower bound for randomized algorithms on fixed instances [6],[17, Thm. 2.11]. This has remained the best lower bound for multiple decades. (A series of results [5, 4, 3] showed a lower bound that is only instead of but in exchange works on any metric space of at least points.) This led to the following folklore conjecture [19, Conj. 2].
Conjecture 2 (Randomized k-Server Conjecture).
For any , there is an -competitive randomized algorithm for the -server problem in the distance model.
This conjecture was refuted in 2023 by Bubeck et al. [7], who were able to slightly lift the lower bound to for one specific metric space. Note, however, the remaining exponential gap between this improved lower bound and the best known upper bound for randomized algorithms, which is still and attained by the deterministic wfa.
A remarkable positive result by Bansal et al. [1] is a randomized algorithm that is, on metric spaces with points, -competitive in expectation, and thus even with high probability by a general result by Komm et al. [18]. Their algorithm thus obtains a competitive ratio that is polylogarithmic in whenever is polynomial in . A more detailed discussion of the results up until 2009 is found in a survey by Koutsoupias [19].
The most relevant results for the -server problem in the distance model on general metric spaces can thus be summarized as follows (see also Table 1): The best known upper bound on the competitive ratio is (for both deterministic and randomized algorithms) and attained by the work function algorithm wfa [20]. The best known lower bound on the competitive ratio is for randomized algorithms [7], and for deterministic algorithms [23]. A matching deterministic upper bound of is attained on the line by the double coverage algorithm dc [9], and on trees by the generalized variant dc-tree [10].
| Distance model | Time model | ||||
| Deterministic | Randomized | Deterministic | Randomized | ||
| Line | General | General | Line | General | General |
| [9] | [20] | [20] | [22] | [20, 22] | [20, 22] |
| [23] | [23] | [7] | [Th. 6] | [Th. 12] | [Th. 16] |
The Time Model
Almost no research has been published on the time model, which allows us to describe all existing results in what follows.
Clearly, changing from the distance model to the time model helps the algorithm, because it can now move servers synchronously at no additional cost. However, this does not imply an improved competitive ratio. Since the advantages of the time model can be utilized by both the online algorithm and the offline solution it competes with, the ratio could, a priori, improve, stay the same, or get worse, and in different ways for different metric spaces.
A first result distinguishing the two variants was given by Koutsoupias and Taylor [22]. As they remark [22, Sect. 5], any upper bound for the distance model implies a times larger upper bound for the time model: On the one hand, any algorithm for the distance model also works for the time model with the same or even lower cost. On the other hand, the optimal algorithm against which the online algorithm competes saves at most a factor of in the time model compared to its cost in the distance model. Overall, the competitive ratio increases by at most a factor of when an algorithm for the distance model is used in the time model. The -competitive wfa thus implies an upper bound of . For trees it immediately follows that dc-tree, which is -competitive in the distance model, is -competitive in the time model. Koutsoupias and Taylor [22, Thm. 3] lowered this bound to with a straightforward adjustment of the potential function used in the analysis of dc-tree; note that both bounds are in . They concluded with a lower bound of for servers on the real line [22, Thm. 4], but provided no results for .
1.2 Contribution
The goal of this paper is to popularize the time-optimal -server problem and establish it as a research object that is well worth the community’s attention. We believe the -server problem in the time model to be natural and well motivated. We also hope that the insights gained by analyzing the time model might shed further light on the long-standing open questions about the classical problem.
Our main contribution are lower bounds for the time-optimal -server problem that are at least as large as and often larger than the best known lower bounds for the classical variant. For deterministic algorithms, we achieve the lower bound of on all unweighted graphs with at least vertices (which excludes only cases where the competitive ratio is trivially ) in Lemma 5. We then go above this, albeit just barely, with a lower bound of for a large class of metric spaces that includes all Euclidean spaces, infinite grids, and large cycles (Theorem 6). We then construct a specific metric space (superexponentially large in , but finite and of diameter only ) for which we can prove a lower bound of , which is exactly the best known upper bound for the classical -server problem (Theorem 12).
Our main result for randomized algorithms is a lower bound on the expected competitive ratio for the time-optimal -server problem (Theorem 16). The bound is , and thus exponentially larger than the recently proven polylogarithmic lower bound in the distance model [7].
Despite the significantly raised lower bounds, a gap still remains with a linear factor between the upper and lower bounds.
2 Preliminaries
For any nonnegative integer , we use the notation . We denote by the -th harmonic number.
Online Algorithms and Competitive Analysis
An online algorithm receives an instance consisting of requests, , which are presented to alg in consecutive time steps; is by default not known to alg a priori. Whenever a request is presented, alg has to provide an answer to , where depends only on the prefix of already presented requests. The full answer sequence is the solution computed by alg on . Any solution to is assigned a cost denoted by . An optimal solution for , denoted by , is a solution with minimal cost across all solutions to . Note that and can generally be computed only once is known.
The performance of an online algorithm alg is measured in terms of its competitive ratio. alg is called -competitive if there is a constant so that, for every instance , it holds that . Similarly, a randomized online algorithm rand is said to be -competitive in expectation or have an expected competitive ratio of if there is a constant so that, for every instance , it holds that .
The -Server Problem
The intuition behind the -server problem is best described by a scenario where we are given a metric space and servers, each occupying one point in the space. A request is any point of the space, and an answer must specify at least one server that is moved to in response. However, it is possible to move other servers as well. A request is revealed once the previous one has been served. The goal is to minimize either the total distance traveled after answering all requests (the distance model) or the overall time spent (the time model).
Formally, let be any metric space. (In particular, the distance function is zero on the pairs for , otherwise positive, symmetric, and satisfies the triangle inequality, i.e., .) Any finite metric space can be described as the complete undirected graph whose vertices are with an edge weight function . Conversely, we can interpret any finite, connected, weighted, and undirected graph as the metric space whose point set is the vertex set and whose distance function maps two points to the length of a shortest path between them.
In particular, any finite, connected, unweighted, and undirected graph also describes a metric space in the same way. From now on we always assume graphs in this paper to be finite, connected, undirected, and unweighted. Other important metric spaces include the real line, the Euclidean plane, and generally the Euclidean space of any given dimension.
For any positive integer and metric space , we call a map a -configuration. In the context of the -server problem we may describe a -configuration by saying that server is at point for any . We say that a -configuration covers or occupies a point with server if for some . For a sequence of -configurations , we say, for any and , that server moves from to in step . Whenever the value of is clear from the context, which is the case for the remainder of this paper, we omit the and simply say configuration instead of -configuration. An instance of the -server problem on of length is a sequence of points in and an initial configuration . A solution is a sequence of configurations such that covers for all . The cost of such a solution is in the distance model and in the time model.
Intricacies of the Time Model
In the distance model, any algorithm can without loss of generality be transformed into one that is lazy, i.e., moves only one server at a time. Hence it is common and convenient to argue only about lazy algorithms. In the time model, this simplification is no longer justified; we also need to consider movements of the servers other than the one serving a request. This leads to intricacies peculiar to the time model, which we briefly discuss here.
Consider a graph with integer weights. Suppose that a server incident to an edge of unit length moves across this edge to serve a request at the other end. Suppose that another server is positioned at a vertex incident to a longer edge of length . Depending on the situation to be modeled, one might want to allow or disallow a synchronous movement by the second server to the midpoint of the longer edge. In the default formulation, servers can only traverse edges completely; partial movements are impossible. This implies the following perhaps unintuitive behavior: Even if a server that traversed a unit edge to serve a request subsequently moves back to serve the next request, traveling a length of in two steps, it is impossible for another server to traverse an edge of length at the same time without extra cost. Even if the servers move synchronously as far as possible, the cost is at least . This problem does not occur in unweighted graphs, however. Indeed, if it is desired to enable the servers to traverse a long edge over multiple steps, this is easily achieved by transforming a given finite graph with rational weights into an unweighted one by subdividing the edges into segments of a length that divides all occurring weights.
All of our results apply to both variants since Robin (see Definition 3) works also on weighted graphs, and the graphs constructed for our lower bounds are all unweighted.
3 Results
We now present our results for the time-optimal -server problem: an observation yielding an upper bound in Subsection 3.1, the lower bounds for deterministic algorithms in Subsection 3.2, and a lower bound for randomized algorithms in Subsection 3.3. Some proofs are summarized for our main theorems and removed for more straightforward results and corollaries. They can be found (in more detail) in the full version of the paper [15].
3.1 Upper Bounds
We start with some observations on a simple algorithm.
Definition 3 (Algorithm Robin).
Label the servers in arbitrary order. If a requested point is already covered by a server, then Robin does not change its configuration. The -th request that requires Robin to move a server is served by with , while all other servers stay idle. In other words, Robin moves a server only when it is necessary, only one server at a time, the first movements are by in this order, and then it repeats cyclically.
Note that Robin never moves servers synchronously, thus the cost is the same in the time model and the distance model. Essentially, Robin is a marking algorithm [6, 17]. Koutsoupias and Taylor [22] already remarked that Robin is -competitive on uniform metrics. It is also not hard to see that this observation can be extended to metrics of bounded aspect ratio, where the aspect ratio of a metric space is its diameter divided by the minimal distance between distinct points.
Observation 4.
On metric spaces with aspect ratio , Robin is -competitive.
3.2 Lower Bounds for Deterministic Algorithms
In this section, we provide lower bounds for deterministic algorithms on various metric spaces.
Universal Lower Bound of on Unweighted Graphs
We begin with a bound of for all unweighted graphs on which the problem is nontrivial.
Lemma 5.
Let be a positive integer. No algorithm for the time-optimal -server problem can be better than -competitive on graphs with more than vertices.
Proof sketch.
We choose any connected set of vertices of and consider the metric subspace described by the induced subgraph . The algorithm is given an instance that always requests a point not occupied by any of its servers. We note that any configuration where all servers occupy distinct locations can be reached from any other such configuration at cost at most , by moving servers along a path connecting two unoccupied points. This allows an optimal offline algorithm to serve any consecutive requests at cost .
Note that, in contrast to the corresponding result for the distance model, it is unclear whether this result can be extended to arbitrary metric spaces with more than points.
Lower Bound of on the Line
We now consider a special type of metric space that has received a lot of attention (see Subsection 1.1) for the classical -server problem: the line. As mentioned above, there are -competitive algorithms for -server in the distance model on the real line, the rational line, and the integer line. The following theorem shows that the time-optimal -server problem is strictly harder in all of these cases.
Theorem 6.
For any integer , no algorithm for the time-optimal -server problem has a competitive ratio better than on the line (real, rational, or integer), on any finite unweighted cycle with an even number of at least vertices, or on the continuous one-dimensional sphere .
Proof.
Let alg be any online algorithm for the given metric space. For a finite unweighted cycle with an even number of vertices, label the vertices counterclockwise by . For the sphere , choose points evenly spaced along this metric space, label them counterclockwise, and re-scale the space such that the distance between consecutive points is . For simplicity, we refer to the labeled points as integers and say that an integer neighbors another one if they are at distance from each other. In all cases, every even integer neighbors two odd ones and each odd one two even ones. We will construct an instance phase by phase such that there is an optimal algorithm opt satisfying the following invariant.
Invariant 7.
At the beginning of each phase, the servers of opt occupy distinct even integers or distinct odd integers. Moreover, at least two of these integers are consecutive (in the sense of being separated by a distance of exactly ).
Without loss of generality, we assume for the following description that the integers occupied by opt at the start of the phase are all even by choosing an appropriate initial configuration and shifting the labels of the integers by one after each phase. Any phase will consist of potentially repeated requests for distinct odd integers, among which at least two are consecutive. Moreover, the requests will be chosen such that opt can cover all of them by moving all of its servers simultaneously, each by a distance and thus at total cost , at the beginning of the phase and with no movements afterwards. Any phase constructed with these properties preserves the invariant for the next phase, allowing us to iterate the process to construct an arbitrarily long instance of arbitrarily high optimal cost.
Since opt does not move its servers anymore after its phase-initial synchronous movements, we can request any point covered by opt as many times as we would like without increasing the cost of opt or changing opt’s configuration at the end of the phase. We can thus enforce the following invariant for alg without loss of generality.
Claim 8.
Once alg has served a request at some point during some phase, it will always have a server at this point during all further requests of this phase.
Proof of claim.
Assume that alg makes a move such that some integer previously requested in the current phase is no longer covered. Then the constructed instance could be extended by immediately requesting this integer again after this move, at no additional cost to opt. This can be continued until all the integers previously requested in the current phase are covered again by alg.
Using this invariant of alg, we can now also assume the following without loss of generality.
Claim 9.
In each phase, distinct odd integers are requested, each exactly once.
In summary, we can assume the following properties for each phase.
-
1.
At the beginning of the phase, the servers of alg occupy the same positions as the servers of opt, namely distinct even integers, at least two of which are consecutive (in the sense of being separated by a distance of ).
-
2.
During the phase, distinct odd integers are requested one by one. Each such integer must, once requested, be covered by alg during all subsequent requests of the phase.
-
3.
Moreover, there is a bipartite matching between the odd requested points and the phase-initially covered even integers where each edge of the matching has weight exactly .
-
4.
Finally, opt moves its servers along this matching at cost when the first request of the phase appears and does not move its servers anymore for the rest of the phase.
We now describe how the requests for any given phase are chosen depending on alg’s behavior in a way that guarantees Invariant 7 to hold for the following phase.
Consider any phase. Partition the phase-initial server positions (which are the same for opt and alg) into maximal, pairwise disjoint, nonempty sets of consecutive even integers. We define and note that . Given a metric space , a point , and radius , we call the open ball and the closed ball. For any , we call the range of ; Figure 1 shows an example for .
Note that the range contains exactly odd integers. Exactly of them are requested during a phase in the instance family described below. This guarantees that opt can indeed move all its servers from their phase-initial positions to the points request during this phase at cost , and then keep them there for the remainder of the phase, which proves the first part of Invariant 7. We call the range saturated if the instance has already requested out of the odd integers of during the current phase, and unsaturated otherwise. Recall that once an integer is requested, a server occupies it during all remaining requests of the phase; thus any saturated contains at least servers. A phase ends when all ranges are saturated.
Since there are two consecutive even integers in the phase-initial configuration of opt, by renaming we can assume without loss of generality that and that . Since contains exactly consecutive odd integers and of them are requested during the phase, at least two consecutive odd integers are requested. This proves the second part of Invariant 7.
We now describe what the requests in the considered phase depend on. For this, we will call a point distant if and only if it has distance at least from all current servers, i.e., if it lies outside of all open unit balls around the current server locations. The first request is , which is indeed a distant point since all servers are phase-initially at even integers. From then on, a further request is chosen according to the following selection procedure until odd integers have been requested during the phase or the procedure becomes impossible: Request an arbitrary distant odd integer not previously requested during the phase from any unsaturated range except for the integer . The sequence of such requests ends only when requests have been made in each range with and requests have been made in , or if no such request is possible anymore. We will show that once this process ends, there must be a point in that no server can reach with cost less than using the following simple claim.
Claim 10.
If a range for any contains at most servers, it also contains a distant odd integer. If the truncated range contains at most servers, it contains a distant odd integer.
Proof of claim.
A unit ball can contain at most one odd integer. Moreover, unit balls around points outside of a range cannot contain odd integers inside this range, and analogously for the truncated range . Hence, the range for any containing at most servers means that at most out of the odd integers in it are not distant and thus that there is a distant odd integer in . Analogously, the truncated range containing at most servers means that at most out of the odd integers in it are not distant, and thus that there is a distant odd integer in .
By this claim, if the selection procedure ends, any range with must contain at least servers, whether or not it is saturated, and must contain at least servers. We consider two different cases.
-
Case 1: contains at least servers. In this case, contains at least servers (including the server positioned on ). This means that all ranges with must contain exactly servers and must therefore be saturated. Thus, these servers all occupy odd integers and have a distance of at least to the odd integer . The same holds for any servers in .
-
Case 2: contains exactly servers. In this case, contains a distant point. Since the selection procedure ended, a total of requests must have already been made to and served. Thus, the servers in occupy distinct odd integers and cannot reach any other odd integer in with cost less than . Of the other ranges with , all but possibly one must be saturated, since they contain exactly servers. Therefore, these servers occupy odd integers and cannot reach odd integers in with cost less than . Finally, one range with may contain servers, or a single server may occupy a point outside a range. Such a server can only reach either the odd integer or the odd integer in with cost less than . This is clear if the metric space is a line.
If it is a cycle or the continuous sphere, the two ranges would have to meet at both ends. However, this would mean that they contain all odd integers in the metric space, of which there are at least , while they contain a maximum of odd integers. Thus, since there are two odd integers in that have not been requested yet, one of them cannot be reached by any server with cost less than .
We thus have, in both cases, an odd integer in that is at distance at least from all servers. Such an integer is requested next, forcing alg to incur a cost of at least when serving it. From then on, additional distant points in unsaturated ranges with (including ) are requested. Such points exist by Claim 10. Once distinct odd integers have been requested, all ranges are saturated and the phase ends.
Recall that the first request was to the odd integer . Since contains odd integers, of which have been requested, at least one of the odd integers or must have been requested, and thus indeed at least two consecutive odd integers. This means that the final configuration of the phase is such that Invariant 7 is satisfied for an immediately following phase.
We can thus iterate the process and construct arbitrarily many new phases such that for each phase alg incurs a cost of at least while opt has a cost of exactly .
Note that Theorem 6 generalizes the lower bound of given by Koutsoupias and Taylor for the special case of servers on the real line [22, Thm. 4]. In contrast to the distance model, lower bounds in the time model do not trivially extend to arbitrary metric superspaces. However, this particular result can be extended to other metric spaces, e.g., the Euclidean plane.
Corollary 11.
No algorithm can solve the time-optimal -server problem with a competitive ratio better than in the Euclidean space of any positive dimension.
Existential Lower Bound of on General Graphs
The most celebrated result for the -server problem is Koutsoupias and Papadimitriou’s proof [20] showing wfa to be -competitive in the distance model. Intriguingly, is also our best lower bound for the time model.
Theorem 12.
For any , there is a finite metric space on which no online algorithm for the time-optimal -server problem has a competitive ratio better than .
Proof.
We first give the general idea of the proof. Consider a star with rays of length , and assume that there is a server at each midpoint of a ray. The center of the star is requested first. Any algorithm must move one server there at cost . With one of the servers at the center, one ray no longer contains a server. Its outer point is requested next, causing a cost of at least . This process is then repeated times, always requesting the outer point of an unoccupied ray, for a total cost of .
The main challenge lies in simulating this instance while making the process repeatable. To this end, we construct a metric space given by a finite, unweighted graph.
Description of the metric space.
The metric space is a tripartite graph , i.e., its vertices can be partitioned into three disjoint layers such that the edges can be partitioned as with , , and .
On the instances we describe later, the three layers will be used cyclically by any optimal solution: its servers will all move synchronously first from to , then to , then back to , and so on. Moreover, the three subgraphs , , and are all isomorphic. In particular, the layers all have the same size. Each layer is partitioned into uniformly sized blocks. Each block in turn consists of one special vertex called its hub and vertices that we call its fringe points, grouped into groups each of size . We identify the blocks with the integers , and similarly denote the groups of each block by and the points of a group by . We denote the hub of block in layer by and the fringe point in group of the same block by . Thus, the vertex set is given by
For notational convenience we define and . To describe the edges of , we first highlight some uniform aspects of the construction. For each , the edges between and are constructed identically.
Moreover, the edges from any layer to the next are block-uniform in the following sense: for any , , and , the neighborhood in is the same for every fringe point and for any hub independent of .
Now consider any block of . To each possible choice of fringe points from distinct groups, we assign one block from by an arbitrary but fixed bijection. Such a bijection exists, because there are possibilities to choose fringe groups and ways to choose one fringe point from each of these groups, which means that the total number of possible choices is exactly , the number of blocks in .
Fix such a choice and the corresponding block in . Each of the chosen fringe points, as well as the hub of , is assigned injectively to one of the groups of fringe points of and then made adjacent to all points of the assigned group. For concreteness, let the chosen fringe point of group in be assigned to group in block , while the hub is assigned to the remaining group of block that is not represented in the chosen ones. Finally, all chosen fringe points and the hub of are made adjacent to the hub of in .
More formally, identify the possible choices of fringe points in a block of with . For each choice , denote by the unique index of the group without a chosen point. For any with , denote by the index of the unique point chosen from group . This means that the fringe points in choice are exactly for and . Then we have the following edges between block , which is in , and :
The full edge set is then
A visual representation of the graph for is shown in Figure 3. For , an example of one block in and two blocks in is given in Figure 2, while the full graph is shown in Figure 3. The following claim summarizes some important properties of . It follows directly from the construction of the edges.
Claim 13.
Fix any block in . We have the following properties:
-
(i)
Any vertex in is adjacent to vertices of at most one fringe group of block .
-
(ii)
Any fringe point in is adjacent to at most one fringe point of block .
-
(iii)
Any hub point in is adjacent to exactly one vertex for each of exactly of the fringe groups of block .
Description of the instances.
We now show that no online algorithm can be better than -competitive on the metric space described by .
Let alg be any deterministic online algorithm. We describe an instance consisting of distinct phases. In each phase, exactly distinct points, all from the same layer, are requested, potentially with many repetitions. The instances are designed such that opt can move all its servers by a distance of at the beginning of each phase and then serve all requests within this phase at no additional cost, while alg has cost at least .
At the start of each phase, the servers of opt are located in a single block of and more specifically at one of its hub points and points chosen from distinct fringe groups in it.
The phase consists of vertices from the block in corresponding to the choice of fringe points in block that form the configuration of opt at the start of the phase. Specifically, it consists of the hub of block and fringe points chosen from distinct groups. This means that the process can be repeated since the final configuration is equivalent to the starting position. It also means that opt can reach the configuration at cost : it can move of its servers in block to fringe points in block in the unique group they are adjacent to, and move the final server to the hub of block .
We can assume that within each phase, alg keeps a server on each previously requested point. Otherwise, the instance will simply request that point again, at no additional cost to opt.
The instance starts the phase with a request to the hub of block . alg must now move a server to that vertex and thus incurs cost . Assume that fringe points in block have already been requested by the instance in this phase. We claim that there is at least one fringe point in block such that
-
(a)
no vertex from the group in block containing was requested in this phase before, and
-
(b)
no server of alg can reach with cost less than .
By assumption, servers of alg already occupy requested points in block . These points are not adjacent to any other point in , and thus in particular not to any point in block . There are groups in block that are not yet represented by a request in this phase. Since there are only remaining servers, by Claim 13˜i and ii, there is at least one group in block such that no fringe point in this group is adjacent to a server that is in or on a fringe point in . Within this group, there are points. Any server of alg that can reach such a point with cost at most is either on that point (in which case it cannot reach any other point in block with cost at most ) or on a hub in (in which case, by Claim 13˜iii, the same holds).
Since there are remaining servers, this means that such a point exists, unless , i.e., if the only point requested in this phase has been the hub, and all servers of alg occupy hubs in or fringe points in . In this case, by Claim 13˜iii, a server on a hub in can reach at most fringe points with cost . A server on a fringe point in block can only reach one such point. Therefore, the total number of fringe points in block that can be reached in distance by servers on such vertices is at most . This is strictly smaller than the total number of fringe points in block ; so again, a point with the required properties must exist.
The instance now requests this point, which alg must serve with cost at least . After such requests, the phase ends. alg and opt are in the promised final configuration, and the total cost of alg in this phase is .
Observation 14.
The diameter of the metric space used in the proof of Theorem 12 is .
It follows by Observation 4 that there is a -competitive algorithm on this graph.
3.3 Lower Bound for Randomized Algorithms
In this section, we provide a lower bound for randomized algorithms. We first state Yao’s principle for infinite minimization problems [17, Thm. 2.5]. A comprehensive explanation is found in the textbooks by Borodin and El-Yaniv [6], and Komm [17].
Fact 15 (Yao’s Principle).
Let be an infinite sequence of sets of instances of a given (online) minimization problem. Let be a list of all deterministic online algorithms for this problem. Let denote an adversarial probability distribution on the instances in , and let denote the corresponding expected value function. If there is some constant such that
-
(i)
for every positive integer , and
-
(ii)
,
then there is, for any given constant , no randomized online algorithm for the given problem that is -competitive in expectation.
Existential Lower Bound of on General Graphs
We now provide a lower bound of on the expected competitive ratio of randomized online algorithms. This is achieved on a significant extension of the metric space used in the proof of Theorem 12.
Note that it is easy to find a metric space on which no randomized algorithm can have a competitive ratio better than . In fact, on uniform metric spaces with , there is a lower bound of , which can be shown by requesting points uniformly at random and using Yao’s principle. The value of Theorem 16 lies in showing a bound that is strictly larger than , the best known lower bound and conjectured competitive ratio for deterministic algorithms in the classical distance model.
Theorem 16.
Let any positive integer be given. For any , there is a finite metric space on which no randomized online algorithm for the time-optimal -server problem has a better constant competitive ratio than .
Proof sketch.
The metric space is described by a graph that extends the construction used in the proof of Theorem 12. Instead of a single hub point , each block contains a hub group of hub points for some large number . Each of the fringe groups also contains fringe points. Correspondingly, the number of blocks is .
We describe a distribution over hard instances on which no deterministic algorithm alg can be better than -competitive, and then apply Yao’s principle. The instances are again partitioned into phases, and in each phase, points are requested from the block corresponding to the positions of the servers of opt, so that opt has cost per phase.
The instances start with a hub point chosen uniformly at random from this block. The expected cost alg incurs serving this request is approximately since there are possible choices. From then on, one of the groups (either the hub group or a fringe group) is chosen uniformly at random. If no point from that group has been requested yet in that phase, a point from the group is chosen uniformly at random and requested; otherwise, the previous point is requested again.
We then show that, if distinct points with have been requested, the expected cost of alg is at least , by using the equivalent of Claim 13. The expected number of requests until the next distinct point is requested is , so the expected cost of alg in that timeframe is at least . Summing up over all and adding the expected cost of for the first request to a hub point, the expected cost of alg is therefore
Note that it can be shown that the graph used in the proof of Theorem 16 has diameter , analogously to Observation 14. Thus there is also a deterministic algorithm with competitive ratio on that metric space.
4 Conclusion
We hope to initiate a line of research that focuses on the time-optimal -server problem. We started by proving a series of lower bounds, showing the time model to be harder than the distance model on various metric spaces, including simple cycles and all Euclidean spaces, which implies that the direct analogue of the -server conjecture in the time model cannot be true. Our strongest deterministic lower bound matches – intriguingly – the best upper bound known for the classical distance-optimal -server problem, which is attained by the deterministic work function algorithm wfa. A priori, it could thus be true that this algorithm is in fact exactly -competitive on general metric spaces in both models.
A natural next step is to find good performance guarantees for wfa in the time-optimal setting. Unfortunately, the analysis of Koutsoupias and Papadimitriou [20] that proved successful for the distance model resists any straightforward adaptation; multiple key concepts, such as the duality between the so-called minimizers and maximizers, do not translate well to the time model. Better upper bounds in the time model will thus probably provide us with several novel techniques.
Our preliminary attempts and experimentally gathered evidence indeed point to a subquadratic upper bound. We believe the lower bound of Theorem 12 to be tight, i.e., we conjecture that a competitive ratio of is indeed attainable.
Conjecture 17.
There is a deterministic algorithm for the time-optimal -server problem with a competitive ratio of on general metric spaces.
For randomized algorithms, we analogously suspect the existence of an expected competitive ratio of in the distance model to correspond to one of in the time model.
References
- [1] Nikhil Bansal, Niv Buchbinder, Aleksander Mądry, and Joseph (Seffi) Naor. A polylogarithmic-competitive algorithm for the -server problem (extended abstract). In Proceedings of the 52th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2011), pages 267–276, 2011. doi:10.1109/FOCS.2011.63.
- [2] Nikhil Bansal, Niv Buchbinder, and Joseph (Seffi) Naor. Metrical task systems and the -server problem on HSTs. In Proceedings of the 37th International Colloquium on Automata, Languages and Programming (ICALP 2010), volume 6198 of LNCS, pages 287–298, 2010. doi:10.1007/978-3-642-14165-2_25.
- [3] Yair Bartal, Béla Bollobás, and Manor Mendel. Ramsey-type theorems for metric spaces with applications to online problems. Journal of Computer and System Sciences (JCSS), 72(5):890–921, 2006. doi:10.1016/J.JCSS.2005.05.008.
- [4] Yair Bartal, Nathan Linial, Manor Mendel, and Assaf Naor. On metric Ramsey-type phenomena. In Proceedings of the 35th Annual ACM Symposium on Theory of Computing (STOC 2003), pages 463–472, 2003. doi:10.1145/780542.780610.
- [5] Avrim Blum, Howard J. Karloff, Yuval Rabani, and Michael E. Saks. A decomposition theorem and bounds for randomized server problems. In 33rd Annual Symposium on Foundations of Computer Science (FOCS 1992), pages 197–207, 1992. doi:10.1109/SFCS.1992.267772.
- [6] Allan Borodin and Ran El-Yaniv. Online Computation and Competitive Analysis. Cambridge University Press, Cambridge, 1998. doi:10.5555/290169.
- [7] Sébastien Bubeck, Christian Coester, and Yuval Rabani. The randomized -server conjecture is false! In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC 2023), pages 581–594, 2023. doi:10.1145/3564246.3585132.
- [8] Niv Buchbinder and Joseph (Seffi) Naor. The design of competitive online algorithms via a primal-dual approach. Foundations and Trends in Theoretical Computer Science, 3(2–3), 2009. doi:10.1561/0400000024.
- [9] Marek Chrobak, Howard J. Karloff, Thomas H. Payne, and Sundar Vishwanathan. New results on server problems. SIAM Journal on Discrete Mathematics, 4(2):172–181, 1991. doi:10.1137/0404017.
- [10] Marek Chrobak and Lawrence L. Larmore. An optimal on-line algorithm for -servers on trees. SIAM Journal on Computing, 20(1):144–148, 1991. doi:10.1137/0220008.
- [11] Marek Chrobak and Lawrence L. Larmore. The server problem and on-line games. In On-Line Algorithms, Proceedings of a DIMACS Workshop, volume 7, pages 11–64, 1991. doi:10.1090/DIMACS/007/02.
- [12] Christian Coester and Elias Koutsoupias. Towards the -server conjecture: A unifying potential, pushing the frontier to the circle. In 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021), volume 198 of LIPIcs, pages 57:1–57:20, 2021. doi:10.4230/LIPICS.ICALP.2021.57.
- [13] Amos Fiat, Yuval Rabani, and Yiftach Ravid. Competitive k-server algorithms (extended abstract). In 31st Annual Symposium on Foundations of Computer Science (FOCS 1990), LIPIcs, pages 454–463, 1990. doi:10.1109/FSCS.1990.89566.
- [14] Amos Fiat, Yuval Rabani, and Yiftach Ravid. Competitive k-server algorithms. Journal of Computer and System Sciences (JCSS), 48(3):410–428, 1994. doi:10.1016/S0022-0000(05)80060-1.
- [15] Fabian Frei, Dennis Komm, Moritz Stocker, and Philip Whittington. Time-optimal -server, 2025. doi:10.48550/arXiv.2503.05589.
- [16] Zhiyi Huang and Hanwen Zhang. Deterministic 3-server on a circle and the limitation of canonical potentials. Theoretical Computer Science, 1020:114844, 2024. doi:10.1016/j.tcs.2024.114844.
- [17] Dennis Komm. An Introduction to Online Computation – Determinism, Randomization, Advice. Springer, 2016. doi:10.1007/978-3-319-42749-2.
- [18] Dennis Komm, Rastislav Královič, Richard Královič, and Tobias Mömke. Randomized online algorithms with high probability guarantees. Algorithmica, 84(5):1357–1384, 2022. doi:10.1007/s00453-022-00925-z.
- [19] Elias Koutsoupias. The -server problem. Computer Science Review, 3(2):105–118, 2009. doi:10.1016/j.cosrev.2009.04.002.
- [20] Elias Koutsoupias and Christos H. Papadimitriou. On the -server conjecture. Journal of the ACM, 42(5):971–983, 1995. doi:10.1145/210118.210128.
- [21] Elias Koutsoupias and Christos H. Papadimitriou. The -evader problem. Information Processing Letters, 57(5):473–482, 1996. doi:10.1016/0020-0190(96)00010-5.
- [22] Elias Koutsoupias and David Scot Taylor. The CNN problem and other -server variants. Theoretical Computer Science (TCS), 324(2-3):347–359, 2004. doi:10.1016/J.TCS.2004.06.002.
- [23] Mark S. Manasse, Lyle A. McGeoch, and Daniel D. Sleator. Competitive algorithms for on-line problems. In Proceedings of the 20th Annual ACM Symposium on Theory of Computing (STOC 1988), pages 322–333, 1988. doi:10.1145/62212.62243.
- [24] Mark S. Manasse, Lyle A. McGeoch, and Daniel Dominic Sleator. Competitive algorithms for server problems. Journal of Algorithms, 11(2):208–230, 1990. doi:10.1016/0196-6774(90)90003-W.
- [25] Andrew C.-C. Yao. Probabilistic computations: Toward a unified measure of complexity (extended abstract). In Proceedings of the 18th Annual Symposium on Foundations of Computer Science (FOCS 1977), pages 222–227, 1977. doi:10.1109/SFCS.1977.24.
