Skip to main content
Log in

Approximating the Metric TSP in Linear Time

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

Given a metric graph G=(V,E) of n vertices, i.e., a complete graph with a non-negative real edge cost function satisfying the triangle inequality, the metricity degree of G is defined as \(\beta=\max_{x,y,z\in V}\{\frac{c(x,y)}{c(x,z)+c(y,z)}\}\in[\frac{1}{2},1]\). This value is instrumental to establish the approximability of several NP-hard optimization problems definable on G, like for instance the prominent traveling salesman problem, which asks for finding a Hamiltonian cycle of G of minimum total cost. In fact, this problem can be approximated quite accurately depending on the metricity degree of G, namely by a ratio of either \(\frac{2-\beta}{3(1-\beta)}\) or \(\frac{3\beta^{2}}{3\beta^{2}-2\beta+1}\), for \(\beta<\frac{2}{3}\) or \(\beta\geq \frac{2}{3}\), respectively. Nevertheless, these approximation algorithms have O(n 3) and O(n 2.5log 1.5 n) running time, respectively, and therefore they are superlinear in the Θ(n 2) input size. Thus, since many real-world problems are modeled by graphs of huge size, their use might turn out to be unfeasible in practice, and alternative approaches requiring only O(n 2) time are sought. However, with this restriction, all the currently available approaches can only guarantee a 2-approximation ratio for the case β=1, which means a \(\frac{2\beta^{2}}{2\beta^{2}-2\beta+1}\)-approximation ratio for general β<1. In this paper, we show how to elaborate—without affecting the space and time complexity—one of these approaches, namely the classic double-MST heuristic, in order to obtain a 2β-approximate solution. This improvement is effective, since we show that the double-MST heuristic has in general a performance ratio strictly larger than 2β, and we further show that any alternative elaboration of it cannot lead to a performance ratio better than 2βε, for any ε>0. Our theoretical results are complemented with an extensive series of experiments, that show the practical appeal of our approach.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Andreae, T.: On the traveling salesman problem restricted to inputs satisfying a relaxed triangle inequality. Networks 38(2), 59–67 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  2. Arora, S.: Polynomial time approximation schemes for Euclidean traveling salesman and other geometric problems. J. ACM 45(5), 753–782 (1998)

    Article  MathSciNet  MATH  Google Scholar 

  3. Böckenhauer, H.-J., Hromkovič, J., Klasing, R., Seibert, S., Unger, W.: Approximation algorithms for the TSP with sharpened triangle inequality. Inf. Process. Lett. 75, 133–138 (2000)

    Article  Google Scholar 

  4. Burkard, R.E., Deineko, V.G., Woeginger, G.J.: The travelling salesman and the PQ-tree. Math. Oper. Res. 23(3), 613–623 (1998)

    Article  MathSciNet  Google Scholar 

  5. Christofides, N.: Worst-case analysis of a new heuristic for the traveling salesman problem. Technical report, Graduate School of Industrial Administration, Carnegy-Mellon University (1976)

  6. Czumaj, A., Muthukrishnan, S.M., Rubinfeld, R., Sohler, C. (eds.) Sublinear Algorithms, 17.07.–22.07.2005, Dagstuhl Seminar Proceedings, vol. 05291. Internationales Begegnungs- und Forschungszentrum für Informatik (IBFI), Schloss Dagstuhl, Germany (2006)

  7. Deineko, V.G., Tiskin, A.: Fast minimum-weight double-tree shortcutting for metric TSP. In: Proc. of the 6th Workshop on Experimental Algorithms (WEA). Lecture Notes in Computer Science, vol. 4525, pp. 136–149. Springer, Berlin (2007)

    Google Scholar 

  8. Deineko, V.G., Tiskin, A.: Fast minimum-weight double-tree shortcutting for metric TSP: Is the best one good enough? ACM J. Exp. Algorithmics 14 (2009)

  9. Deineko, V.G., Tiskin, A.: Min-weight double-tree shortcutting for metric TSP: Bounding the approximation ratio. Electron. Notes Discrete Math. 32, 19–26 (2009)

    Article  MathSciNet  Google Scholar 

  10. Drake Vinkemeier, D.E., Hougardy, S.: A linear-time approximation algorithm for weighted matchings in graphs. ACM Trans. Algorithms 1(1), 107–122 (2005)

    Article  MathSciNet  Google Scholar 

  11. Gabow, H.N.: An efficient reduction technique for degree-constrained subgraph and bidirected network flow problems. In: Proc. of the 15th Annual ACM Symp. on Theory of Computing (STOC), pp. 448–456 (1983)

  12. Gabow, H.N., Tarjan, R.E.: Faster scaling algorithms for general graph-matching problems. J. ACM 38(4), 815–853 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  13. Indyk, P.: Sublinear time algorithms for metric space problems. In: Proc. of the 31st Annual ACM Symp. on Theory of Computing (STOC), pp. 428–434 (1999)

  14. Kolmogorov, V.: Blossom V: a new implementation of a minimum cost perfect matching algorithm. Math. Program. Comput. 1(1), 43–67 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  15. Papadimitriou, C.H., Vempala, S.: On the approximability of the traveling salesman problem. Combinatorica 26(1), 101–120 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  16. Papadimitriou, C.H., Yannakakis, M.: The traveling salesman problem with distances one and two. Math. Oper. Res. 18, 1–11 (1993)

    Article  MathSciNet  MATH  Google Scholar 

  17. Reinelt, G.: TSPLIB library. University of Heidelberg, http://www.iwr.uni-heidelberg.de/groups/comopt/software/tsplib95/

  18. TSP site. Concorde TSP solver, http://www.tsp.gatech.edu/concorde/

  19. Tan, X.: Approximation algorithms for the watchman route and zookeeper’s problems. Discrete Appl. Math. 136(2–3), 363–376 (2004)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Guido Proietti.

Additional information

A preliminary version of this paper was presented at the 34th Int. Workshop on Graph-Theoretic Concepts in Computer Science (WG’08), 30 June–2 July, 2008, Durham University, UK, and appeared in Vol. 5344 of Lecture Notes in Computer Science, Springer-Verlag, 43–54. This work was partially supported by the PRIN 2008 research project COGENT (COmputational and GamE-theoretic aspects of uncoordinated NeTworks), funded by the Italian Ministry of Education, University, and Research.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Bilò, D., Forlizzi, L. & Proietti, G. Approximating the Metric TSP in Linear Time. Theory Comput Syst 49, 615–631 (2011). https://doi.org/10.1007/s00224-010-9289-0

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-010-9289-0

Keywords

Navigation