Worst Case and Probabilistic Analysis of the 2-Opt Algorithm for the TSP
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 , a family of instances on which 2-Opt can take an exponential number of steps. Previous probabilistic analyses were restricted to instances in which points are placed uniformly at random in the unit square . We consider a more advanced model in which the points can be placed independently according to general distributions on , for an arbitrary . In particular, we allow different distributions for different points. We study the expected number of local improvements in terms of the number 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 . When starting with an initial tour computed by an insertion heuristic, the upper bound on the expected number of steps improves even to . If the distances are measured according to the Manhattan metric, then the expected number of steps is bounded by . In addition, we prove an upper bound of on the expected approximation factor with respect to all metrics. Let us remark that our probabilistic analysis covers as special cases the uniform input model with and a smoothed analysis with Gaussian perturbations of standard deviation with .
Cite
@article{arxiv.2302.06889,
title = {Worst Case and Probabilistic Analysis of the 2-Opt Algorithm for the TSP},
author = {Matthias Englert and Heiko Röglin and Berthold Vöcking},
journal= {arXiv preprint arXiv:2302.06889},
year = {2023}
}
Comments
An extended abstract of this work has appeared in the Proc. of the 18th ACM-SIAM Symposium on Discrete Algorithms. The results of this extended abstract have been split into two articles (Algorithmica 2014) and (ACM Transactions on Algorithms 2016). This report is an updated version of the first journal article, in which two minor errors in the proofs of Lemma 8 and Lemma 9 have been corrected