Worst Case and Probabilistic Analysis of the 2-Opt Algorithm for the TSP
Preprint
Abstract
2-Opt is probably the most basic local search heuristic for the TSP. This heuristic achieves amazingly good results on real world Euclidean instances both with respect to running time and approximation ratio. There are numerous experimental studies on the performance of 2-Opt. However, the theoretical knowledge about this heuristic is still very limited. Not even its worst case running time on 2-dimensional Euclidean instances was known so far. We clarify this issue by presenting, for every $p\in\mathbb{N}$, a family of $L_p$ instances on which 2-Opt can take an exponential number of steps. Previous probabilistic analyses were restricted to instances in which $n$ points are placed uniformly at random in the unit square $[0,1]^2$. We consider a more advanced model in which the points can be placed independently according to general distributions on $[0,1]^d$, for an arbitrary $d\ge 2$. In particular, we allow different distributions for different points. We study the expected number of local improvements in terms of the number $n$ of points and the maximal density $φ$ of the probability distributions. We show an upper bound on the expected length of any 2-Opt improvement path of $\tilde{O}(n^{4+1/3}\cdotφ^{8/3})$. When starting with an initial tour computed by an insertion heuristic, the upper bound on the expected number of steps improves even to $\tilde{O}(n^{4+1/3-1/d}\cdotφ^{8/3})$. If the distances are measured according to the Manhattan metric, then the expected number of steps is bounded by $\tilde{O}(n^{4-1/d}\cdotφ)$. In addition, we prove an upper bound of $O(\sqrt[d]φ)$ on the expected approximation factor with respect to all $L_p$ metrics. Let us remark that our probabilistic analysis covers as special cases the uniform input model with $φ=1$ and a smoothed analysis with Gaussian perturbations of standard deviation $σ$ with $φ\sim1/σ^d$.
Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Smoothed Analysis of the 2-Opt Algorithm for the General TSPACM Transactions on Algorithms, 2016
- Tight bounds for parallel randomized load balancingDistributed Computing, 2014
- Worst Case and Probabilistic Analysis of the 2-Opt Algorithm for the TSPAlgorithmica, 2013
- New Results on the Old k-opt Algorithm for the Traveling Salesman ProblemSIAM Journal on Computing, 1999
- Polynomial time approximation schemes for Euclidean traveling salesman and other geometric problemsJournal of the ACM, 1998
- The Complexity of the Lin–Kernighan Heuristic for the Traveling Salesman ProblemSIAM Journal on Computing, 1992
- TSPLIB—A Traveling Salesman Problem LibraryINFORMS Journal on Computing, 1991
- A probabilistic analysis of the switching algorithm for the euclidean TSPMathematical Programming, 1989
- The Euclidean travelling salesman problem is NP-completeTheoretical Computer Science, 1977
- An Effective Heuristic Algorithm for the Traveling-Salesman ProblemOperations Research, 1973