,
Debmalya Panigrahi
,
Or Vardi
Creative Commons Attribution 4.0 International license
We study an online variant of the Traveling Salesperson Problem (TSP) in which n points arrive sequentially and must be inserted into an evolving tour. In the classical setting where arbitrary insertions are allowed, an O(log n)-competitive algorithm has been known since the 1970s (Rosenkrantz, Stearns and Lewis 1977, Imase and Waxman 1991). Recently, Abrahamsen, Bercea, Beretta, Klausen, and Kozma [ESA 2024] introduced online metric TSP, a stricter model in which each arriving point must be assigned to a distinct cell of an array of size m ≥ n, with the final tour order induced by the non-empty cells; the parameter m captures the space usage of the algorithm.
When m = 2ⁿ, this model recovers arbitrary insertions and therefore admits an O(log n)-competitive algorithm. In contrast, when m = n, i.e., when each point’s position is fixed on arrival, Bertram [Christian Bertram, 2025] recently showed that the competitive ratio is Θ(√n). We investigate the tradeoff between space usage and competitiveness between these extremes. We note that this tradeoff was previously explored by the authors in [Yossi Azar et al., 2026] for the online sorting problem, which is the special case of online metric TSP on a line metric.
Our main result is a deterministic online metric TSP algorithm using m = (1+ε) n space that achieves a competitive ratio of O(log³ n/ε), for any ε ≤ 1. In particular, increasing the space from n to 2n improves the competitive ratio from Θ(√n) to O(log³ n). We complement this with a lower bound showing that for m = n^{1+ε}, any deterministic algorithm has a competitive ratio Ω(1/ε), for all ε ≥ Ω(log log n / log n). Consequently, even with m = O(n ⋅ polylog(n)), deterministic algorithms cannot achieve a constant competitive ratio.
@InProceedings{azar_et_al:LIPIcs.ICALP.2026.18,
author = {Azar, Yossi and Panigrahi, Debmalya and Vardi, Or},
title = {{Online Metric TSP: Beyond the √n Barrier}},
booktitle = {53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026)},
pages = {18:1--18:18},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-428-4},
ISSN = {1868-8969},
year = {2026},
volume = {374},
editor = {Bhattacharya, Sayan and Nanongkai, Danupon and Benedikt, Michael and Puppis, Gabriele},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2026.18},
URN = {urn:nbn:de:0030-drops-264071},
doi = {10.4230/LIPIcs.ICALP.2026.18},
annote = {Keywords: Online algorithms, competitive analysis, metric TSP, space-competitiveness tradeoff, routing problems}
}