English

Online Metric TSP

Data Structures and Algorithms 2025-07-08 v3

Abstract

In the online metric traveling salesperson problem, nn points of a metric space arrive one by one and have to be placed (immediately and irrevocably) into empty cells of a size-nn array. The goal is to minimize the sum of distances between consecutive points in the array. This problem was introduced by Abrahamsen, Bercea, Beretta, Klausen, and Kozma [ESA'24] as a generalization of the online sorting problem, which was introduced by Aamand, Abrahamsen, Beretta, and Kleist [SODA'23] as a tool in their study of online geometric packing problems. Online metric TSP has been studied for a range of fixed metric spaces. For 1-dimensional Euclidean space, the problem is equivalent to online sorting, where an optimal competitive ratio of Θ(n)\Theta(\sqrt n) is known. For dd-dimensional Euclidean space, the best-known upper bound is O(2ddnlogn)O(2^{d} \sqrt{dn\log n}), leaving a gap to the Ω(n)\Omega(\sqrt n) lower bound. Finally, for the uniform metric, where all distances are 0 or 1, the optimal competitive ratio is known to be Θ(logn)\Theta(\log n). We study the problem for a general metric space, presenting an algorithm with competitive ratio O(n)O(\sqrt n). In particular, we close the gap for dd-dimensional Euclidean space, completely removing the dependence on dimension. One might hope to simultaneously guarantee competitive ratio O(n)O(\sqrt n) in general and O(logn)O(\log n) for the uniform metric, but we show that this is impossible.

Keywords

Cite

@article{arxiv.2504.17716,
  title  = {Online Metric TSP},
  author = {Christian Bertram},
  journal= {arXiv preprint arXiv:2504.17716},
  year   = {2025}
}

Comments

11 pages, to appear in ESA 2025

R2 v1 2026-06-28T23:10:13.943Z