Lune

SODA2026Top-tier venue

A Near-Complete Resolution of the Exponential-Time Complexity of k-opt for the Traveling Salesman Problem

Sophia Heimann, Hung P. Hoang, Stefan Hougardy

2026Year

Abstract

The kk-opt algorithm is one of the simplest and most widely used heuristics for solving the traveling salesman problem. Starting from an arbitrary tour, the kk-opt algorithm improves the current tour in each iteration by exchanging up to kk edges. The algorithm continues until no further improvement of this kind is possible. For a long time, it remained an open question how many iterations the kk-opt algorithm might require for small values of kk, assuming the use of an optimal pivot rule. In this paper, we resolve this question for the cases k=3k = 3 and k=4k = 4 by proving that in both these cases an exponential number of iterations may be needed even if an optimal pivot rule is used. Combined with a recent result by Heimann, Hoang, and Hougardy (ICALP 2024), this provides a complete answer for all k≥3k \ge 3 regarding the number of iterations the kk-opt algorithm may require under an optimal pivot rule. In addition we establish an analogous exponential lower bound for the 2.5-opt algorithm, a variant that generalizes 2-opt and is a restricted version of 3-opt. All our results hold for both the general and the metric traveling salesman problem.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 94d13b2d-b64c-4944-b0ce-58d6f480fa8d

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines