Parametrized Metrical Task Systems
S\'ebastien Bubeck, Yuval Rabani

TL;DR
This paper analyzes parametrized metrical task and service systems, revealing how the number of request types affects the competitive ratio and showing surprising equivalences between deterministic and randomized algorithms in certain cases.
Contribution
It characterizes the competitive ratio for parametrized metrical systems on hierarchically separated trees, uncovering unexpected behaviors and equivalences between deterministic and randomized algorithms.
Findings
Deterministic algorithms show no asymptotic gain beyond uniform metrics.
Randomized algorithms show no gain even for one-level trees.
Deterministic and randomized algorithms are similarly powerful for small m in certain cases.
Abstract
We consider parametrized versions of metrical task systems and metrical service systems, two fundamental models of online computing, where the constrained parameter is the number of possible distinct requests . Such parametrization occurs naturally in a wide range of applications. Striking examples are certain power management problems, which are modeled as metrical task systems with . We characterize the competitive ratio in terms of the parameter for both deterministic and randomized algorithms on hierarchically separated trees. Our findings uncover a rich and unexpected picture that differs substantially from what is known or conjectured about the unparametrized versions of these problems. For metrical task systems, we show that deterministic algorithms do not exhibit any asymptotic gain beyond one-level trees (namely, uniform metric spaces), whereas randomized algorithms…
| one-level HSTs (uniform metrics) | two-level HSTs | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Parametrized Metrical Task Systems
Sébastien Bubeck Microsoft Research, Redmond, United States, [email protected]
Yuval Rabani The Rachel and Selim Benin School of Computer Science and Engineering, The Hebrew University of Jerusalem, Jerusalem 9190416, Israel, [email protected]. Research supported in part by ISF grants 956-15 and 2553-17 and by BSF grant 2012333. Part of this work was done while visiting Microsoft Research at Redmond.
Abstract
We consider parametrized versions of metrical task systems and metrical service systems, two fundamental models of online computing, where the constrained parameter is the number of possible distinct requests . Such parametrization occurs naturally in a wide range of applications. Striking examples are certain power management problems, which are modeled as metrical task systems with . We characterize the competitive ratio in terms of the parameter for both deterministic and randomized algorithms on hierarchically separated trees. Our findings uncover a rich and unexpected picture that differs substantially from what is known or conjectured about the unparametrized versions of these problems. For metrical task systems, we show that deterministic algorithms do not exhibit any asymptotic gain beyond one-level trees (namely, uniform metric spaces), whereas randomized algorithms do not exhibit any asymptotic gain even for one-level trees. In contrast, the special case of metrical service systems (subset chasing) behaves very differently. Both deterministic and randomized algorithms exhibit gain, for sufficiently small compared to , for any number of levels. Most significantly, they exhibit a large gain for uniform metric spaces and a smaller gain for two-level trees. Moreover, it turns out that in these cases (as well as in the case of metrical task systems for uniform metric spaces with being an absolute constant), deterministic algorithms are essentially as powerful as randomized algorithms. This is surprising and runs counter to the ubiquitous intuition/conjecture that, for most problems that can be modeled as metrical task systems, the randomized competitive ratio is polylogarithmic in the deterministic competitive ratio.
1 Introduction
Motivation.
Metrical task systems are a general framework proposed in the early days of online computing to model a wide range of problems. In this model, an algorithm controls its state among possible states. It is presented with a sequence of requests. Each request indicates the cost of serving it in each of the states. The algorithm must choose a state to serve the request, then pay both the transition cost and the service cost. It competes against the optimal offline solution, and is -competitive iff for any request sequence it pays at most times this yardstick (plus an allowed additive term independent of the request sequence). The transition costs are assumed to be distances in a finite metric space whose points are the states. The seminal paper [12] introduces this model and also solves completely a fundamental problem regarding the proposed model. It gives a tight upper and lower bound on the competitive ratio of any deterministic algorithm. The paper also raises the same question regarding randomized algorithms. For a uniform metric space, it gives a lower bound of and a nearly tight upper bound of , where is the -th harmonic number. In light of this result, a natural folklore conjecture asserts that in any metric space the randomized competitive ratio is . This conjecture turned out to be far more elusive than the deterministic case. Currently, the best universal bounds are a lower bound of [7, 9] and a very recent upper bound of [13].
Many online problems can be modeled as special cases of metrical task systems. For instance, paging [31] and more generally the -server problem [27] are task systems on the state space of -tuples of points in an underlying metric space. But the best bounds that are known for these problems are much lower than the general bounds that apply to any metrical task system. Clearly, there are constraints on the allowed requests. For instance, in the -server problem in an -point metric space, the state space has size , but the number of possible requests is just , and they have only [math] or values. Such constraints often characterize concrete applications of metrical task systems (e.g., various problems in networks, see [8] and the references therein). A striking example of the gain from instances with a restricted set of requests is the power management problem [25]. It allows only two possible requests, and admits an -competitive algorithm [2]. In view of these examples, it is natural to seek a meaningful measure of instance complexity that will provide at least partial prediction of the better bounds in special cases, a prediction that may be applied to new problems. An obvious choice is the cardinality of the set of possible requests. (Clearly, this question is interesting only for , otherwise the known general lower bounds kick in.) Examining request sequences drawn from a given set is proposed explicitly in [15]. They give a deterministic algorithm that in uniform metric spaces achieves a competitive ratio of times the (unknown) best possible bound.
Motivated by the -server example, the restriction of the requests to have costs in is a natural and attractive problem of chasing subsets of points in a finite metric space. Indeed, this problem setting was proposed in [17], dubbed metrical service systems. We note that this is part of a broader theme of online chasing and searching, and other seminal papers in this theme include [28, 3, 23]. The focus of the metrical service systems literature (e.g. [17, 20, 29, 14, 19, 16]) is the width of the requests, which is the maximum size of a requested set. In view of the above discussion, it is equally natural to ask about chasing sets drawn from a small-sized pool of possible requests and deriving bounds that are independent of the width.
Our results.
Our main contribution is an explicit analysis of the competitive ratio of metrical task systems and metrical service systems with possible requests, . Perhaps surprisingly, we show that unlike the general case, the answer here depends on the metric space. In particular, for metrical task systems we show that in uniform metric spaces, restricting thus the request sequence improves dramatically the deterministic competitive ratio, which we characterize tightly, up to constant factors. In contrast, there exist other metric spaces, namely two-level HSTs (uniform metrics are one-level HSTs), that exhibit no deterministic asymptotic improvement, even if . Perhaps even more surprisingly, in uniform metric spaces the randomized competitive ratio does not improve asymptotically even if , and in this case the deterministic competitive ratio is asymptotically the same as the randomized competitive ratio.
We also analyze unrestricted width metrical service systems with possible requests in uniform metric spaces versus two-level HSTs. This case, too, exhibits complex and fascinating behavior, and furthermore it is not identical to the general case. In sufficiently large uniform metric spaces the restriction to requests improves both the deterministic and the randomized competitive ratio. However the two ratios are asymptotically the same, linear in and independent of the size of the metric. The two-level HSTs case also deviates from the general case. As with uniform metric spaces, both the deterministic and the randomized competitive ratios improve and are independent of the size of the metric space. However, both the deterministic and the randomized competitive ratios are now exponential in (the base of the exponent may be different in the two cases). We discuss the surprising aspects of these results and their features that persist beyond two levels in the following sections.
We note that our results, most strikingly the bounds for metrical task systems in uniform metric spaces, refute a folklore conjecture that for most problems that can be cast as metrical task systems, the randomized competitive ratio is polylogarithmic in the deterministic competitive ratio.
Finally, we relate some of our results to the question of quantifying the amount of information an adversary needs in order to force an online algorithm to perform poorly.
2 Definitions and Results
A metrical task system instance consists of a finite metric space , an initial state , and a sequence of requests , where for every , the request is a cost function that maps to . We will denote . A solution consists of a choice of states , which incurs a total cost of
[TABLE]
A deterministic online algorithm chooses, for every , the next state based only on and , without knowing the suffix of the requests sequence or even its length . A randomized online algorithm is a probability distribution over deterministic online algorithms, and its cost is defined to be the expectation of the cost of the deterministic algorithms in the support of the distribution.
We use the following notation. For a sequence of requests , let denote the optimal cost of serving . Define to be the infimum over such that there exists a constant and a deterministic online algorithm such that for every sequence of requests , the cost of of serving is at most . Define similarly for randomized algorithms. The following theorem is well-known:
Theorem 1** (Borodin et al. [12]).**
For every finite metric space ,
[TABLE]
It is also conjectured that . The conjecture has been established in special cases. For instance tight bounds are known in uniform metric spaces. The currently best known bounds (following substantial previous work [26, 11, 15, 10, 6, 24, 30, 22, 4, 1]) that hold for every metric space are (see below for the definition of an HST):
Theorem 2** (Bartal et al. [7, 9]).**
For every finite metric space ,
[TABLE]
Theorem 3** (Bubeck et al. [13]).**
For every HST ,
[TABLE]
and therefore, for every finite metric space ,
[TABLE]
We are interested in analyzing metrical task systems with constrained requests. The primary constraint that we investigate in this paper is the following: there exists a finite set such that all the requests lie in . We will denote . Let (, respectively) denote the deterministic (randomized, respectively) competitive ratio when requests are restricted to the set . Also let (, respectively) denote the supremum of (, respectively) over . We find that unlike the general case, the competitive ratio that can be guaranteed for constrained metrical task systems depends crucially on the underlying metric space . In particular, we study a class of ultrametrics called hierarchically separated trees (HSTs), invented in [5]. HSTs play a critical role in both the best known upper bounds and the best known lower bounds for metrical task systems, as well as other problems involving metric spaces. For metrical task systems, the best known upper bounds rely on an asymptotically optimal approximation of any metric space by a convex combination of HSTs, discovered in [18]. The best known lower bounds rely on a lower bound on HSTs and the fact that any metric space contains a large approximate HST subspace [7, 9]. More concretely, an -level HST is a metric space defined on the leaves of a leveled rooted node-weighed tree with levels. The leaves are at level [math], the root is the unique node at level , each node other than the root has a parent at one level above its own, all the nodes at level have the same weight, and this weight increases rapidly with the level number. The distance between two leaves is the weight of their least common ancestor. (We note that HSTs are often defined alternatively without the uniformity constraint on levels.) This defines an ultrametric (which is in particular a metric) on the leaves.
We exhibit on the one hand that for uniform metric spaces (which are in the above terms one-level HSTs), restricting helps immensely deterministic algorithms, but not randomized algorithms:
Theorem 4**.**
If is a uniform metric space, then for every ,
[TABLE]
and
[TABLE]
On the other hand, we study what is in some sense just a slightly more sophisticated family of metric spaces. We consider the following family of two-level HSTs, which we call paired-uniform. Let be an even number of points. Partition the points into pairs . (So, according to this notation .) Let be a large constant to be determined later. Set for all pairs, and set for every two points . It turns out that here restricting helps neither the asymptotic performance of deterministic algorithms, nor that of randomized algorithms:
Theorem 5**.**
If is a paired-uniform metric space, then
[TABLE]
whereas
[TABLE]
Notice that by prior results, the upper bounds hold even for arbitrary requests in arbitrary HSTs.
The lower bound constructions in the proofs of Theorems 4 and 5 use sets of requests that assign many widely varying cost values. Thus, it makes sense to consider requests using costs from a small set of scales, and in particular to consider metrical service systems that use just two scales, [math] or (a.k.a. set chasing). Let , (, respectively) denote the best deterministic (randomized, respectively) competitive ratio that can be achieved for chasing sets drawn from a collection of subsets of points in . In this case we show that for uniform spaces, restricting helps both deterministic and randomized algorithms. Moreover, if , the deterministic and the randomized competitive ratios are asymptotically identical. More precisely we have:
Theorem 6**.**
If is a uniform metric space, then for every ,
[TABLE]
and,
[TABLE]
Unlike the more general case of Theorem 5, in the case of metrical service systems on two-level HSTs, restricting the number of possible requests helps, but not as much as in uniform metric spaces. In order to state the results, we introduce a bit more notation. Let (, respectively) denote the supremum of (, respectively) over all -level HSTs . We prove:
Theorem 7**.**
For every ,
[TABLE]
We note that we actually prove a somewhat tighter lower bound of on , see Lemma 16. We also note that it is not surprising that for sufficiently large HSTs, the competitive ratio (deterministic or randomized) depends solely on and the number of levels. This is because one can trim isomorphic nodes from the tree. (Note however that for deterministic algorithms the trivial bound obtained this way is exponentially worse than the ones proposed above.) The surprising aspects of these theorems are (a) that the deterministic competitive ratio nearly matches the randomized competitive ratio, and (b) that for two-level HSTs, a collection of set chasing requests is sufficient to generate a randomized lower bound of (while the classical lower bound requires such requests). In fact, this latter aspect extends to and is amplified in HSTs with any number of levels. So, using just set chasing requests, we can get a lower bound of for infinitely many , on HSTs with more and more levels. The argument is outlined in Section 4.
Our main results are summarized in Table 1.
3 Proofs
Lemma 8**.**
Let be an -point uniform metric space. Consider any set of requests of cardinality and any set of cardinality . Then, there exists a state such that for every ,
[TABLE]
Proof.
The proof is a simple application of the probabilistic method. Choose uniformly at random. We have that for every ,
[TABLE]
Therefore, applying the union bound,
[TABLE]
so there is a choice of that satisfies Equation (1). ∎
Lemma 9**.**
Let be an -point uniform metric space. Then, .
Proof.
Consider the following algorithm. The algorithm works in phases, and these are further partitioned into rounds. In a phase, we will denote by the set at the end of round . We define the cost that a state acrues during some interval as . In the beginning of a phase, set and move to a state that satisfies Equation (1). As soon as at least states in acrue a cost of at least in the current phase (including the new request), round ends. When this happens, remove from the states that acrued the highest cost. Set to be the remaining states in . If , repeat the above process with a new . Otherwise, this is the last round. In this last round, use an -competitive algorithm, restricted to . Execute this algorithm until the optimal cost of serving this round reaches at least . Notice that this implies that by the end of the phase, all states in acrued a cost of at least during the phase. Therefore, the adversary’s cost for the entire phase must be at least , because it either stayed at one state and paid a service cost of , or moved at least once and paid a movement cost of .
In order to analyze this algorithm, fix a phase and denote by the total cost that the algorithm acrues in round of this phase. Also denote by the average over of the minimum between and the cost acrued by in this phase by the end of round . (Set .) Notice that . This implies that the number of rounds (including the special last round) is at most . Also notice that throughout round , at each request at least states in pay at least the cost that the algorithm pays, but less than states in acrued a total cost of at least . Thus, the average over increases by at least . Each state in contributes to this average, and there are such states, so removing them reduces the average by at most . Thus,
[TABLE]
Let be the penultimate round. Notice that for all , . Then
[TABLE]
Thus, . The last phase also costs the algorithm . This is because , we use an -competitive algorithm, and an adversary with the same initial state in this round as the algorithm pays at most —one for moving to the best initial state, and one for serving the request sequence in the round. ∎
Lemma 10**.**
Let be an -point uniform metric space. Then, .
Proof.
Assume without loss of generality that is a power of (otherwise we can restrict the instance to the power of closest to ; the redundant states can be blocked by assigning to them a cost of in both elements of ). Let be an arbitrary enumeration of the points of . Let be a large constant. Set , where , and let . We use the minimax principle and generate a random request sequence that “beats” every deterministic algorithm. The request sequence is generated in phases. In each phase we choose uniformly at random one state where the adversary “hides.” Let be the binary representation of . This defines a natural sequence of nested intervals in the dyadic partition of the set of states. The interval consists of all the states whose binary representation has the prefix . For notational convenience, let . The phase consists of rounds numbered . Then, in round , we request repeatedly until the state adjacent to on the right, if , or on the left, if , acrues a cost of at least in this round. Notice that the algorithm knows the entire round once its first request is given.
The analysis is completed as follows. Define
[TABLE]
When round starts, with probability at least , the algorithm occupies a state . In this case the algorithm pays at least in this round. This is clear if it moves. Otherwise, every state not in pays at least as much as the state in this set that is adjacent to . Thus, the expected cost of the algorithm for the entire phase is at least . On the other hand, the adversary pays at most to move to . Notice that the state adjacent to that determines the stopping condition pays less than in round (in fact it pays close to ). Thus, all the states in pay at most . If the adversary stays at for the duration of the phase, it pays a service cost of at most , which can be made arbitrarily close to [math] by choosing . ∎
Lemma 11**.**
Let be an -point uniform metric space. Then, .
Proof sketch. Without loss of generality, we may assume that is an even number which is at most , that is divisible by and that is a power of . (Otherwise, eliminate some states by having their cost always and use fewer requests. A constant fraction of both states and requests remains.) So, partition the states into disjoint subsets of size each. For each subset, define two new requests as per the proof of Lemma 10, and outside the subset have both requests cost [math]. In each subset, use the adversary’s strategy from the proof of Lemma 10. The requests according to this strategy will be used in the steps when the algorithm occupies a state in the subset. Clearly, while the algorithm hasn’t paid at least in all subsets, there’s at least one state that hasn’t paid . Thus, the adversary can choose the last such surviving state and cause the algorithm to pay before no state survives. When no state survives, a phase that cost the adversary less than and the algorithm ends, and we can repeat the process in a new phase. ∎
Proof of Theorem 4. The theorem is a corollary of Lemmas 9, 10, and 11. ∎
Proof of Theorem 5. The upper bound on follows from the general upper bound on trees of Bubeck et al. [13], and the lower bound follows from Theorem 4. The lower bound on goes as follows. Denote the pairs of leaves by for . Let be the sequence defined by . We use two requests: is defined by and , for all , and is defined by and , for all . The request sequence is simple: if the algorithm occupies a state , use , otherwise the algorithm occupies a state , so use .
For analyzing the competitive ratio, partition the request sequence into rounds. A round ends whenever the algorithm either moves from one pair to another pair or pays while staying in one pair . Notice that either way, the algorithm’s cost is at least per round. Further partition the rounds into phases. Each phase contains exactly rounds. Thus, the cost of the algorithm per phase is at least . We show that the adversary can pay less than per round. Choosing completes the proof. To show that the adversary’s cost per phase is less than , notice that in a phase, the algorithm cannot visit all the pairs. Let be a pair that is not visited by the algorithm during the phase. The adversary will “hide” in such a pair. Moving to this pair in the beginning of the round costs at most . For each round in the phase, the adversary stays either at or at , so moving between and costs at most .
To complete the analysis, we have to explain how the adversary chooses between and , and we have to analyze the cost of staying at the chosen state. Notice that in a round, by definition the algorithm stays in one pair , where . If , the adversary stays at , otherwise the adversary stays at . Consider the first case (the other case is analogous). By the definition of a round, acrues a cost of at most during the round, because it is hit by a positive cost only when the algorithm occupies , and the algorithm pays at least this cost (it might decide to move to and pay ). Therefore, acrues a cost of at most . This is the service cost that the adversary pays during the round. Thus, since there are rounds in a phase, the total service cost of the adversary during a phase is less than . ∎
Lemma 12**.**
Let be an -point uniform metric space. Then, .
Proof.
The lower bound follows from restricting the number of states that can get a request with a [math] value to and then applying the deterministic -server lower bound to this subspace. Notice that this lower bound uses different requests.
The upper bound is achieved with a variant of the marking algorithm, as follows. Each request can be associated with a subset . If there exists a state that is in the intersection of all subsets , the algorithm can pay at most to move to this state, and then pay [math] for the rest of the sequence. Otherwise, the algorithm partitions the sequence into phases. In each phase, if the current location of the algorithm is hit by an value, it moves to a state in the intersection of all the sets seen so far in the phase. The phase ends, and a new phase begins, when this intersection is empty. Notice that to move, the algorithm needs to get a request not seen so far in the phase, so the algorithm moves at most times per phase. At the end of the phase, all states were hit by an value at least once, so any algorithm would have to move at least once per phase. ∎
Lemma 13**.**
Let be an -point uniform metric space. Then, .
Proof.
Theorem 3 implies in particular an upper bound of . Lemma 12 gives an upper bound of (because the randomized competitive ratio is upper bounded by the deterministic competitive ratio). ∎
Lemma 14**.**
Let be an -point uniform metric space. Then, .
Proof.
If , then we get a lower bound of from the paging problem [21], which requires possible requests. Otherwise, let . We restrict our attention to a set of size states. (If there are more, all the others have cost in all the requests.) We label the states in this set with the nodes of the binary cube . We use possible requests that are constructed as follows. There are two requests and corresponding to each coordinate of the binary cube. The request has a cost of at points with the -th coordinate of their label being , and [math] at states with the complement -th coordinate. We use the minimax principle and construct a probabilistic request sequence that beats every deterministic algorithm. The request sequence consists of phases. In each phase the adversary draws independently a point in the binary cube uniformly at random, and then requests the sequence , , in that order. Against any deterministic algorithm, the expected cost of each request in the phase is , so the total expected cost of . The adversary needs to move at most once per phase, to the point labeled with the bitwise complement of . ∎
Proof of Theorem 6. The theorem is an immediate corollary of Lemmas 12, 13, and 14. ∎
Lemma 15**.**
For every two-level HST , .
Proof.
Let denote the aspect ratio of . Let be any level- subtree of (so in particular indicates a uniform subspace of ). We say that is hit by a subset of requests iff for every state there is a request such that . The algorithm works in periods. In the beginning of a period all level- subtrees are unmarked, and a period ends when they are all marked. Each period is divided into epochs. In an epoch, the algorithm chooses an unmarked subtree and stays in it for the entire epoch. While in a subtree , the algorithm runs the uniform metric procedure from the proof of Lemma 12, ignoring the states outside . Notice that this divides the epoch into phases, where during a phase the algorithm encounters one subset of requests that hits , for which the algorithm pays and any algorithm staying in pays at least . The epoch ends as soon as the algorithm executes phases in . When the epoch ends, the algorithm marks and any other subtree that was hit at least times so far in the period. The cost of the algorithm in a period is upper bounded as follows. In each phase the algorithm encounters a hitting set . If the same set is encountered times, all the subtrees that it hits get marked. Therefore, since the empty set is not a hitting set, the total number of phases is at most . The number of epochs in a period is therefore , and thus the total cost of transition between subtrees is (because no transition is required at the end of the last epoch in the period). Since the algorithm encounters each non-empty set at most times, the total “internal” cost of the phases is at most . Therefore, the total cost of the algorithm per period is , for all . Any algorithm must pay at least per period. If it stays in one subtree, then every subtree is hit at least times. If it moves between subtrees, this incurs a cost of at least . ∎
Lemma 16**.**
For all , .
Proof.
We construct the following two-level HST with aspect ratio and request set . There are subtrees, each labeled by a different subset of the requests of cardinality . Each subtree has states labeled by the elements of the subtree’s label. A request has cost at all the states that are labeled by it, and [math] otherwise. The adversary’s strategy is simple: if the algorithm is currently at a subtree labeled , apend to the sequence all the requests in (the order doesn’t matter), then repeat after updating the location that the algorithms reaches after the apended requests. In order to analyze the competitive ratio, partition the request sequence into periods, where in each period the algorithm leaves all the subtrees. Fix a period, and let denote the number of times the algorithm changes a subtree in this period, including the departure that ends the period. Clearly, . The algorithm pays at least in this period. The adversary can hide at the last tree that is visited. At each step, no matter which subtree the algorithm occupies, there is at least one state in the last tree that won’t be hit by the apended requests. Each time the algorithm switches trees, the adversary must move to a new state in this last subtree. At the end of the period, the adversary may have to move to a new subtree. So, the total cost of the adversary per period is at most . If we choose , this gives a lower bound of . However, we can get a lower bound arbitrarily close to by choosing a larger . ∎
Lemma 17**.**
For all , .
Proof.
The argument is basically a “lifting” of the construction in the proof of Lemma 14. As in that proof, we associate the requests with the coordinates of the binary cube (we assume without loss of generality that is even, otherwise, discard one request). Each state is labeled by a node of the cube, and request has cost for all states with a label that has value in its -th coordinate, and cost [math] otherwise. The requests are paired into pairs . Notice that each request hits half of the possible state labels, and the sets of labels that two paired requests hit are complements. Now, consider a sequence of requests generated by choosing one request from each pair. We can label this sequence with a point in the binary cube, where the sequence requests for . Thus, there are possible such sequences. If such a sequence is requested, it hits all the labels, except for one—the bitwise complement of . Thus, we can pair such sequences into pairs that have complement labels, and the two sequences in a pair miss complement labels of states. There are pairs of sequences. We can create a meta-sequence of requests by choosing one sequence in each pair and concatenating all the chosen sequences. This gives possible meta-sequences. This structure is used to generate the adversary’s strategy.
But, before we state the adversary’s strategy, we construct the metric space and set the labels of the states (which imply the structure of the individual requests). The two-level HST that we use has subtrees. A subtree is labeled by a subset of the binary cube of cardinality (half the cube) that contains exactly one node of each antipodal (i.e., complementary) pair of nodes. There are possible choices, hence the number of subtrees. Such a subtree has states, each labeled with a distinct node in the label of the subtree. Aside from the aspect ratio , to be defined later, this specifies completely and .
We are now ready to define the adversary’s strategy. As usual, we rely on the minimax principle and define a randomized strategy that beats any deterministic algorithm. The adversary repeats the following process. Choose one meta-sequence uniformly at random, then loop through its list of sequences and repeat each sequence times. Notice that regardless of the state of the algorithm at the beginning of any sequence of the meta-sequence, it pays at least for this sequence with probability at least . This is because each sequence hits half the subtrees, and the two possible choices for the sequence hit complement sets of subtrees: a sequence labeled hits all subtrees that contain , a sequence labeled hits all subtrees that contain , and every subtree contains either or , regardless of . If the sequence hits the subtree where the algorithm is located, it either stays there and pays at least for each time the sequence is requested (because it hits all the states in that subtree), or it moves to a different tree and pays for the transition. On the other hand, after requesting the entire meta-sequence, there exists one subtree that was not hit even once. This is the subtree that is labeled with the set of complements of all the labels of the sequences in the meta-sequence. The adversary can hide in that subtree. It pays to move there at the start of the current meta-sequence, and at most to move to a safe state at the start of each sequence in the meta-sequence. So, the expected cost of the algorithm per meta-sequence is , and the total cost of the adversary per meta-sequence is . As grows, the ratio approaches . ∎
Proof of Theorem 7. The theorem is a corollary of Lemmas 15 and 17. ∎
4 Discussion
Open problems.
Our work initiates the study of metrical task systems (MTS) and metrical service systems (MSS) parametrized by the number of distinct requests. Roughly speaking (and somewhat surprisingly) we find that this restriction has little effect in general for MTS, in the sense that beyond uniform metric spaces, the achievable competitive ratio with is already asymptotically as bad as for (Theorem 5). In fact, as far as randomized algorithms are concerned this is already true for uniform metric spaces (Theorem 4). On the other hand, the situation for MSS is very different. A number of questions remain open regarding MSS. A particularly interesting qualitative open problem would be to characterize the class of infinite size metric spaces for which there exist online MSS algorithms with finite competitiveness for fixed , say even for . For example, is it possible to obtain a finite competitive ratio for chasing arbitrary sets on the real line? Another intriguing quantitative open problem is to determine if the deterministic competitive ratio on a weighted star metric is linear or exponential in . (A simple argument bounds the deterministic competitive ratio by and the randomized competitive ratio by . A lower bound of in both cases clearly follows from Theorem 6.)
Deeper trees.
Consider MSS on an HST. Label each leaf by a binary vector of dimension indicating which requests hit it. Clearly, if there are two identically labeled leaves that share a parent, we can eliminate one from consideration. Similarly, label each internal node by the set of labels of its children. If there are two identically labeled internal nodes with the same label and the same parent, we can eliminate one. Thus, effectively, the maximum number of distinct -level HSTs satisfies: and (the reason for the strict inequality is that we can eliminate the empty tree and also every leaf labeled by the all-ones vector). The maximum number of leaves of an -level HST therefore satisfies (in fact, this estimate is far from tight for large ). Notice that . Theorem 7 can be generalized to any number of levels . Let and for let . Then, for ,
[TABLE]
The upper bound follows from the above observations and previous work (Theorem 3). As for the lower bound, in the proof of Lemma 17 we constructed one-level subtrees, each labeled with a subset of the binary cube of cardinality , and also meta-sequences. Each meta-sequence misses one subtree. The subtrees can be paired into complement halves of the binary cube, and the meta-sequences can be paired into complement choices of the sequences that compose them. Complement meta-sequences miss complement subtrees. Thus, we can “lift” this construction just as we “lifted” the uniform metric construction to get a randomized lower bound for three-level HSTs, and this “lifting” can be iterated ad infinitum.
For three or more levels, we do not know reasonably tight upper and lower bounds on the deterministic competitive ratio. We leave this as an open problem. For two levels, the upper and lower bounds of Theorem 7 are similar but not tight asymptotically in . Thus, deriving asymptotically tight bounds, and moreover determining if the deterministic and randomized competitive ratios are asymptotically (in ) equal (as is the case for uniform metric spaces), are interesting open problems.
Leaky randomization.
Generally our results show that the characteristics of the metric spaces have a strong influence on the type of guarantees one can hope for, in stark contrast with the well-known results and conjectures for non-parametrized sequences (e.g., randomized MTS, or the -server problem). Moreover our lower bounds constructions also shed a new light on randomization, in the following sense. In online computing randomness may help because it hides the state of the algorithm. An adversary generating the worst-case sequence for a given algorithm knows the probability distribution but not the outcome of the algorithm’s coin flips. A natural question in this context is to quantify this phenomenon. In particular, consider an adversary that is given at each step a signal indicating some information on the algorithm’s state (which is a random variable). Suppose that there exists such that for all , the mutual information is . If the adversary is allowed to choose the signals subject to this constraint, what can we say about the competitive ratio? Before we proceed, two comments are in place. Firstly, by “algorithm’s state” we could mean simply the position reached by the algorithm in the state space, or we could mean more broadly also the internal state of the algorithm. The distinction is immaterial for our results. Secondly, notice that such an adversary is restricted even from having perfect recall, because past requests may reveal more than bits of information regarding the algorithm’s current state. So, we denote the best competitive ratio against the above adversary by . In every metric space , the deterministic lower bound in Theorem 1 implies that . Notice that reveals something about . In particular, in paired-uniform metric spaces, revealing a single bit is sufficient to force the algorithm to pay asymptotically as much as a deterministic algorithm.
Corollary 18**.**
If is a paired-uniform metric space, then
[TABLE]
Proof of Corollary 18. If , then in order to force an algorithm to a competitive ratio of , all that the adversary needs to know is which of the requests to use at each step. For this bits of information are sufficient, and this is clearly an upper bound on the mutual information. Thus, the corollary follows from Theorem 5. ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] J. Abernethy, P. L. Bartlett, N. Buchbinder, and I. Stanton. A regularization approach to metrical task systems. In Proc. of the 21st Int’l Conf. on Algorithmic Learning Theory , pages 270–284, 2010.
- 2[2] J. Augustine, S. Irani, and C. Swamy. Optimal power-down strategies. SIAM J. Comput. , 37(5):1499–1516, 2008.
- 3[3] R. A. Baeza-Yates, J. C. Culberson, and G. J. E. Rawlins. Searching in the plane. Inf. Comput. , 106(2):234–252, 1993.
- 4[4] N. Bansal, N. Buchbinder, and J. Naor. Metrical task systems and the k -server problem on HS Ts. In Proc. of the 37th Int’l Colloq. on Automata, Languages and Programming , pages 287–298, 2010.
- 5[5] Y. Bartal. Probabilistic approximation of metric spaces and its algorithmic applications. In Proc. of the 37th Ann. IEEE Symp. on Foundations of Computer Science , pages 184–193, 1996.
- 6[6] Y. Bartal, A. Blum, C. Burch, and A. Tomkins. Polylog( n 𝑛 n )-competitive algorithm for metrical task systems. In Proc. of the 29th Ann. ACM Symp. on Theory of Computing , pages 711–719, 1997.
- 7[7] Y. Bartal, B. Bollobas, and M. Mendel. A Ramsey-type theorem for metric spaces and its applications for metrical task systems and related problems. In Proc. of the 42nd Ann. IEEE Symp. on Foundations of Computer Science , pages 396–405, 2001.
- 8[8] Y. Bartal, M. Charikar, and P. Indyk. On page migration and other relaxed task systems. In Proc. of the 8th Ann. ACM-SIAM Symp. on Discrete Algorithms , pages 43–52, 1997.
