A Hitting Set Relaxation for k-Server and an Extension to Time-Windows

Anupam Gupta, Amit Kumar, Debmalya Panigrahi

TL;DR

This paper introduces the first online algorithm for the $k$-server problem with time-windows that achieves a poly-logarithmic competitive ratio, completely removing the linear dependence on the number of servers ($k$) found in prior work. The authors achieve this breakthrough by designing a novel covering linear program (LP) relaxation on hierarchical trees and managing server movements via localized, "truncated" local LPs.

What Problem Does This Paper Address?

The classic $k$-server problem is a foundational challenge in online algorithms: given $k$ servers moving within a metric space, an algorithm must satisfy a sequence of location requests one by one while minimizing the total distance traveled. In many real-world applications—such as ride-sharing, logistics, or data caching—requests do not require immediate fulfillment but instead specify a valid time-window $[b_i, e_i]$ between an arrival time and a hard deadline. This variation is known as the $k$-server with time-windows ($k$-ServerTW) problem.

Standard $k$-server techniques rely heavily on immediate service and history-dependent potential functions, both of which break down when servers are permitted to delay their movements. Prior to this work, the best known competitive ratio for $k$-ServerTW was $O(k \cdot \rm{polylog}(n))$, which scales poorly as the number of available servers ($k$) grows large. The authors tackle the open challenge of designing an algorithm whose performance depends only poly-logarithmically on the space's size and geometry, independent of $k$.

Methods

The authors solve the problem by breaking it down into three main structural phases:

  1. Tree Embedding: Using standard probabilistic techniques, general metric spaces are embedded into Hierarchically Well-Separated Trees (HSTs).
  2. A New Covering LP Relaxation: Instead of traditional formulations, the authors introduce a clean hitting-set/covering LP relaxation derived from a min-cost flow formulation of the problem. This LP uses variables that capture when a server leaves a specific subtree at a given timestep.
Figure 1: Example of a tuple (A,τ ): the set A is given by the leaves in bold, the tree T A by the bold edges, and τ is shown against each vertex in T A. Bold circles on the timeline denote request arrival times, the dots denote timesteps. Each shown timestep has the corresponding request arriving at the shown leaf at the arrival time (bold dot) preceding it.

To handle time-windows, this formulation is generalized to allow independent sets of nodes and flexible timesteps.

Figure 2: Example of a tuple (A, f,τ ) for k-ServerTW: the set A is given by the bold nodes, the tree T A by the bold edges, and τ is shown against each internal vertex in T A. Arrows indicate the mapping f to a leaf request interval.
  1. Truncated Local LPs: Because solving an exponential number of global constraints online is intractable, the core technical innovation is defining "truncated" local LPs for each internal node of the tree. These local LPs restrict the constraints to their respective subtrees based on prior algorithmic choices.
  2. Primal-Dual Online Solver with Piggybacking: The online algorithm fractionally increments primal and dual variables locally. When a request becomes critical (nearing its deadline), the algorithm routes server mass to it and "piggybacks" nearby active requests using a modified Earliest Deadline First (EDF) rule. The cost of these movements is carefully accounted for using a dual-fitting analysis framework.

Datasets

Not discussed in the paper. This is a purely theoretical paper containing mathematical proofs; no empirical evaluations or datasets were utilized.

Key Insights and Ideas

  • Flow to Hitting Set Conversion: Translating the traditional min-cost flow formulation of $k$-server into a covering/hitting-set LP without box constraints provides the mathematical flexibility needed to naturally incorporate time-windows.
  • Localization via Truncation: Instead of globally coordinating servers across the entire metric space, the "truncated" LP approach allows the algorithm to make localized routing decisions within subtrees. Crucially, the authors prove that these local primal/dual solutions can be composed back together to form a globally valid dual solution for cost accounting.
  • The Strategic Value of Piggybacking: In the time-window setting, waiting until a request becomes critical and then greedily serving nearby active requests along the way prevents the algorithm from making costly, isolated trips, bounding the overall movement cost.

Key Results

  • Main Result: The authors provide a randomized online algorithm for $k$-ServerTW on any $n$-point metric space with an aspect ratio $\Delta$ that achieves a competitive ratio of $O(\rm{poly\ log}(n, \Delta))$.
  • Fractional Performance: On a $\lambda$-HST with height $H$, the fractional algorithm achieves an $O(\rm{poly}(H, \lambda, \log n))$ competitive ratio while utilizing a slightly relaxed server capacity of $\frac{k}{1-\delta_0}$.

Limitations and Future Work

  • Dependence on Aspect Ratio: The competitive ratio retains a dependence on the aspect ratio ($\Delta$) of the metric space ($\rm{poly\ log}(n, \Delta)$), rather than depending purely on the number of points ($n$) or servers ($k$).
  • Future Directions:
  • Can the competitive ratio be further tightened to a purely server-dependent bound, such as $\rm{poly\ log}(k)$?
  • Can this truncated LP relaxation framework be extended to other online routing problems, such as the hard version of the $k$-taxi problem?
  • Can the framework accommodate general delay penalties rather than hard window deadlines?

Summary updated

BibTeX
@inproceedings{gupta2021hitting,
  author = {Anupam Gupta and Amit Kumar and Debmalya Panigrahi},
  title = {{A Hitting Set Relaxation for k-Server and an Extension to Time-Windows}},
  booktitle = {FOCS},
  year = {2021},
  doi = {10.1109/focs52979.2021.00057},
}
Figure