arXiv:2611.06684cs.DSNov 2026

Manuscript Offprint

arXiv:2611.06684

The Online kk-Taxi Problem Is Competitive on All Metrics

Christian Coester, Yichen Huang, Tze-Yang Poon

Abstract

The online kk-taxi problem is a natural generalization of the kk-server problem: kk taxis must serve a sequence of requests in a metric space. Each request is a pair of points (r,s)(r, s), and the algorithm serves the request by first moving a taxi to rr (to pick up a passenger) and then to ss (to drop off the passenger). The cost is the total distance traveled by the taxis without a passenger.

Previous bounds for general kk all depended on the number of points nn or the aspect ratio Δ\Delta of the metric space, both of which can be infinite on general metrics, and competitive algorithms were previously known on general metrics only for k≤3k \leq 3. In this work, we give a 9k−19^{k-1}-competitive randomized algorithm against adaptive online adversaries and, as a corollary, an 81k−181^{k-1}-competitive deterministic algorithm for the online kk-taxi problem.

*Funded by the European Union (ERC, CCOO, 101165139). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them. Email: christian.coester@cs.ox.ac.uk.

†Supported in part by NSF grant CNS-2107078. Email: yichenhuang@g.harvard.edu.

‡Email: tpoon@andrew.cmu.edu.

1 Introduction

In the online kk-taxi problem [FRR90], kk taxis are located in a metric space (V,d)(V,d). Each request is a pair (r,s)∈V×V(r,s) \in V \times V. The algorithm serves the request by first moving a taxi to rr to pick up a passenger and then driving the passenger to ss. An online algorithm must select a taxi to serve the current request without knowledge of future requests. The classical kk-server problem [MMS90] is the special case of kk-taxi in which r=sr=s for every request.

There are two versions of the problem, depending on which travel distances are included in the cost. In the “easy” version, the cost is simply the total distance traveled by the taxis, and the problem has exactly the same competitive ratio as the kk-server problem [CK19]. In the “hard” version of the problem, the cost is the total distance traveled to rr, and the distance from rr to ss is excluded. The motivation is that the distance from rr to ss is traveled by all algorithms regardless of their decisions, so the hard version charges only the overhead cost. Note that while the (offline) optimal strategy is unchanged, the smaller costs lead to a larger competitive ratio. Hereafter, we mean the hard version when we refer to the kk-taxi problem.

Despite the interest in the problem, a competitive ratio depending only on kk was previously known on general metrics only for k≤3k \leq 3 [Kos96; CK19; CP26]. Other results give bounds that depend on parameters of the metric space. On an nn-point metric with aspect ratio at most Δ\Delta, the randomized algorithm of [CK19] uses HST embedding techniques and is O(2klog⁡n)O(2^k \log n)-competitive against oblivious adversaries. [BBCS21] obtains an O(n2log⁡2klog⁡n)O(n^2 \log^2 k \log n)-competitive randomized algorithm through the framework of metrical service systems with transformations. The algorithm of [BCN23] achieves a competitive ratio of 2O(log⁡klog⁡Δ)log⁡Δn2^{O(\sqrt{\log k \log \Delta})} \log_\Delta n. [GKP24] gives a randomized O(log⁡3Δlog⁡2(nkΔ))O(\log^3 \Delta \log^2(nk\Delta))-competitive algorithm, using a covering relaxation on HSTs and a primal-dual algorithm. [CH26] uses online embedding techniques to achieve a competitive ratio of O(2klog⁡2m)O(2^k \log^2 m), where m≤nm \leq n is the number of distinct points appearing in the initial configuration or the request sequence. Note that all competitive ratios involving nn or Δ\Delta are vacuous even on simple metrics like the line or interval [0,1][0,1], where nn and Δ\Delta are infinite.

References (39)