Online Metric TSP: Beyond the √n Barrier

Yossi Azar, Debmalya Panigrahi, Or Vardi

TL;DR

For the online metric Traveling Salesperson Problem (TSP), giving an algorithm just a tiny bit of extra buffer space yields an exponential payoff. By increasing the available array slots from $n$ to $(1+\epsilon)n$, this paper shows you can shatter the $\Theta(\sqrt{n})$ competitive ratio barrier, dropping it down to a polylogarithmic $O(\log^3 n / \epsilon)$.

What Problem Does This Paper Address?

The classical Traveling Salesperson Problem (TSP) asks for the shortest tour visiting a set of points in a metric space. In the online version, points arrive one by one and must be integrated into the tour on the fly. If you can insert a new point anywhere in the existing tour order, well-known algorithms from the 1970s achieve an $O(\log n)$-competitive ratio.

Recently, researchers introduced a stricter, more realistic variant: online metric TSP. Here, arriving points must be placed immediately into an array of size $m \ge n$. The final tour order is strictly determined by reading the non-empty cells of the array from left to right.

This creates a stark trade-off based on the space parameter $m$:

  • If $m = 2^n$, the algorithm has enough room to simulate arbitrary insertions, keeping the $O(\log n)$ ratio.
  • If $m = n$ (zero buffer space), the algorithm must irrevocably commit to a point's exact relative position upon arrival. This rigidity forces a terrible competitive ratio of $\Theta(\sqrt{n})$.

This paper tackles the middle ground: What happens when the buffer space $m$ is only slightly larger than $n$? Can a small amount of extra space break the $\sqrt{n}$ barrier?

Methods

The authors bridge this gap by introducing a novel data structure called the Metric Ball-Cover (MBC) Tree.

An MBC tree is a virtual, complete binary tree built over the array cells (which act as the leaves). Nodes in the tree are dynamically labeled with a center point (an arrived vertex) and a deterministic radius that halves at each descending level of the tree.

Illustration of an MBC tree where colored nodes represent dynamically marked balls guiding the array placement.

While prior work on the simpler "online sorting" problem (TSP on a line metric) used a top-down, depth-first search to place elements, that approach fails in general metric spaces because balls can overlap and split unpredictably. To fix this, the authors design a frugal, bottom-up allocation strategy:

  1. When a new point arrives, the algorithm searches across all existing MBC trees for a node of the lowest possible height that can legitimately contain the point.
  2. It then branches from this node, minimizing the amount of unallocated array space committed to a single region based on limited early evidence.
  3. To handle instances where the optimal tour length ($\text{OPT}$) is unknown, the authors wrap this structure in a nested doubling scheme that dynamically adjusts estimates of $\text{OPT}$ and the number of points.

Datasets

Not discussed in the paper. This is a purely theoretical paper evaluated using rigorous mathematical proofs rather than empirical datasets.

Key Insights and Ideas

  • The Power of Wiggle Room: The most striking insight is that the transition from $m=n$ to $m=(1+\epsilon)n$ provides an exponential leap in algorithmic performance ($\sqrt{n} \to \text{polylog}(n)$). A very small amount of memory flexibility goes a long way.
  • The Geometry Deficit: On a line metric (sorting), intervals split cleanly into two. In general metric spaces, a ball might need to be covered by many smaller balls (bounded by the space's doubling dimension). The bottom-up strategy elegantly bypasses this "mismatch" between binary tree arity and metric dimensionality.
  • Frugality Prevents Waste: By forcing the algorithm to activate nodes as deep in the tree as possible, the authors prove that the total wasted (empty) space in the array is strictly bounded by $\epsilon n$.

Key Results

  • Upper Bound: The deterministic algorithm using $m = (1+\epsilon)n$ space achieves a competitive ratio of $O(\log^3 n / \epsilon)$ for any $\epsilon \le 1$.
  • Lower Bound: The authors complement their algorithm with a lower bound showing that if $m = n^{1+\epsilon}$, any deterministic algorithm must suffer a competitive ratio of $\Omega(1/\epsilon)$.
  • The Constant-Factor Limit: A major takeaway from the lower bound is that even if you allow the array to be quasi-linear ($m = O(n \cdot \text{polylog}(n))$), a deterministic algorithm still cannot achieve a constant $O(1)$ competitive ratio.

Limitations and Future Work

The primary limitation of this work is its focus on deterministic algorithms. The authors note that their lower bound construction does not easily translate to randomized algorithms. Whether a randomized online algorithm can achieve a constant competitive ratio with small extra space remains an open question. Additionally, closing the gap between the $O(\log^3 n)$ upper bound and the lower bound for polynomial space extensions is an intriguing direction for future research.

Summary updated

BibTeX
@inproceedings{azar2026online,
  author = {Yossi Azar and Debmalya Panigrahi and Or Vardi},
  title = {{Online Metric TSP: Beyond the √n Barrier}},
  booktitle = {ICALP},
  year = {2026},
  doi = {10.4230/lipics.icalp.2026.18},
}
Figure