Introduction
The Traveling Salesman Problem (TSP) is a cornerstone of combinatorial optimization, asking for the shortest cycle that visits $n$ cities exactly once. While the general TSP is hard to approximate, the Metric TSP—where distances satisfy the triangle inequality—allows for more effective heuristics. Among these, the 2-Opt heuristic is perhaps the most widely used due to its simplicity and practical efficiency. It works by starting with an arbitrary tour and iteratively performing "2-swaps" (replacing two edges with two others) as long as the total tour length decreases. A tour with no such improving swaps is called 2-optimal.
Despite its ubiquity, the exact worst-case performance of 2-Opt on Metric TSP remained an open question for decades. Previous theoretical bounds placed the approximation ratio between $\sqrt{n/8}$ and $2\sqrt{2n}$. This paper provides a definitive answer, proving that the worst-case approximation ratio is exactly $\sqrt{n/2}$.
The Upper Bound: A Geometric Approach
To prove that no 2-optimal tour can be more than $\sqrt{n/2}$ times the length of the optimal tour, the authors employ an innovative geometric mapping. They treat the optimal tour as a circle with a total circumference of 1. Any edge in a 2-optimal tour can then be represented as a pair of points on this circle.
By mapping these pairs into a unit square, the authors define specific geometric regions (sets) associated with each edge of the 2-optimal tour. A critical insight of the proof is demonstrating that these regions must be pairwise disjoint. If two regions were to overlap, it would mathematically imply the existence of an improving 2-swap, contradicting the assumption that the tour is already 2-optimal.
By calculating the areas of these disjoint regions and applying the inequality of arithmetic and quadratic means (AM-QM), the authors rigorously establish the upper bound of $\sqrt{n/2}$.
The Lower Bound: Proving Tightness
To show that the $\sqrt{n/2}$ bound is "tight," the authors construct a specific family of worst-case Metric TSP instances. These instances are designed such that the 2-Opt algorithm can become trapped in a local optimum that is significantly longer than the global optimum.
The construction involves a complex graph structure with $n = 2k^2$ vertices, organized in a grid-like fashion. By carefully defining the distances between these vertices to satisfy the triangle inequality, the authors demonstrate that a 2-optimal tour can exist with a length exactly $k$ (which is $\sqrt{n/2}$) times the optimal length.
This construction proves that the theoretical upper bound cannot be lowered further, as there exist specific configurations where 2-Opt performs exactly as poorly as the bound predicts.
Conclusion
This research closes a significant gap in the theoretical understanding of local search heuristics. While a worst-case ratio of $\sqrt{n/2}$ suggests that 2-Opt is theoretically inferior to constant-factor approximation algorithms like Christofides’ (which guarantees a ratio of 1.5), the result provides a rigorous baseline for the algorithm's performance. The discrepancy between this pessimistic worst-case bound and the high efficiency of 2-Opt in real-world applications remains a fertile ground for future research, particularly in the areas of average-case and smoothed analysis.
Summary updated