Effective Solution for the Traveling Salesman Problem on Randomly Distributed Data

Keywords: traveling salesman problem; randomly distributed problem; branch-and-bound method; pseudo-optimal solution.

Abstract

In this study, we present a method and its implementations for the traveling salesman problem considering matrices with a uniform random distribution of path costs. The method is a modification of the branch-and-bound method with specific heuristics. Data generation and validation used for this study are discussed. The mathematical study of the problem being solved can probably be considered complete as early as the 1970s; even earlier, an approach to its solution in the form of the branch- and-bound method was described. The purpose of this paper is to describe such a heuristic implementation of the branch-and-bound method, which with almost a single probability gives the optimal solution to a random problem in an acceptable time. We call random variants of the problem, in which each cell of the traveling salesman matrix for a problem instance represents a realization of a uniformly distributed random variable. It is important to note that approaches to the heuristic solution of a random variant differ significantly from approaches to geometric and pseudogeometric variants. In our opinion, we have achieved our goal: thus, the maximum time to obtain a solution for 100 random problem instances of dimension 99 did not exceed 2 minutes, while the exact solution was always found; the last thing was verified by the fact that the branch-and-bound method was always counted to completion. In the paper, we provide a brief description of the heuristics used for this purpose, the most important of which is the construction of the so-called sequence of right-hand subproblems.

Author Biographies

Boris Melnikov, Shenzhen MSU – BIT University, No. 1, International University Park Road, Dayun New Town, Longgang District, Shenzhen, 517182, China

Boris Melnikov , Doct. Sci., bormel@mail.ru

Pavel Oganesyan, Institute of Mathematics, Mechanics and Computer Science, Southern Federal University, Milchakova str., 8a, Rostov-on-Don, 344090, Russia

Pavel  Oganesyan Cand. Sci. (Phys.-Math.), oganesyan@hey.ru

Bowen Liu, Shenzhen MSU – BIT University, No. 1, International University Park Road, Dayun New Town, Longgang District, Shenzhen, 517182, China

Liu Bowen, Graduate Student, 1120220081@smbu.edu.cn

References

D. L. Applegate, R. E. Bixby, V. Chvatal, and W. J. Cook, The Traveling Salesman Problem: A Computational Study. Princeton, NJ, USA: Princeton University Press, 2006.

G. Gutin and A. P. Punnen, Eds., The Traveling Salesman Problem and Its Variations. New York, NY, USA: Springer, 2006.

M. R. Garey and D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness. New York, NY, USA: W. H. Freeman, 1979.

W. J. Cook, In Pursuit of the Traveling Salesman: Mathematics at the Limits of Computation. Princeton, NJ, USA: Princeton University Press, 2012.

B. Melnikov and E. Melnikova, “About the classical version of the branches and boundaries method,” Computer Tools in Education, no. 1, pp. 21–44, 2021. (In Russian.)

B. Melnikov, A. Radionov, A. Moseev, and E. Melnikova, “Some specific heuristics for situation clustering problems,” in Proc. ICSOFT 2006 – 1st Int. Conf. Software and Data Technologies, vol. 2, 2006, pp. 272–279.

B. F. Melnikov, E. A. Melnikova, S. V. Pivneva, V. A. Dudnikov, and E. V. Davydova, “Geometric and game approaches for some discrete optimization problems,” CEUR Workshop Proceedings, vol. 2212, pp. 312–321, 2018.

B. Melnikov and E. Melnikova, “Versions of the ‘onion husk’ algorithm in the pseudo-geometric traveling salesman problem with small variance,” Computer Tools in Education, no. 4, pp. 30–40, 2023.

B. Melnikov and D. Chaikovskii, “Pseudogeometric version of the traveling salesman problem, its application in quantum physics models and some heuristic algorithms for its solution,” in Springer Proceedings in Mathematics and Statistics, vol. 446, 2024, pp. 391–401.

Yu. Leonova, “Parallel implementation of the cycle merging algorithm for solving the traveling salesman problem,” 2025. [Online]. Available: https://github.com/YuliyaLeonova/CycleMergingAlgorithm.git

V. V. Burkhovetskiy and B. Ya. Shteynberg, “Exact and approximate solutions to the large-size traveling salesman problem,” Numerical Methods and Programming, vol. 25, no. 4, pp. 476–482, 2024. (In Russian.)

E. Balas and N. Christofides, “A restricted Lagrangean approach to the traveling salesman problem,” Math. Program., vol. 21, no. 1, pp. 19–46, 1981.

E. Gimadi and O. Tsidulko, “Asymptotically optimal algorithms for the prize-collecting traveling salesman problem on random inputs,” 2020.

Zh. Huang, Q. Zheng, E. Pasiliao, V. Boginski, and T. Zhang, “A cutting plane method for risk-constrained traveling salesman problem with random arc costs,” J. Global Optim., vol. 74, pp. 839–859, 2019.

B. Liu, “Traveling salesman comparison dataset,” 2025. [Online]. Available: https://github.com/szBowen/Traveling_Salesman_Comparison_Data_2025_7

M. Lagutin, Visual Mathematical Statistics. Moscow, Russia: Binom Ed., 2012. (In Russian.)

L. Wasserman, All of Statistics: A Concise Course in Statistical Inference. Berlin, Germany: Springer Science & Business Media, 2013.

S. Goodman and S. Hedetniemi, Introduction to the Design and Analysis of Algorithms. New York, NY, USA: McGraw-Hill, 1977.

Published
2025-10-01
How to Cite
Melnikov, B., Oganesyan, P., & Liu, B. (2025). Effective Solution for the Traveling Salesman Problem on Randomly Distributed Data. Computer Tools in Education, (3). https://doi.org/10.32603/2071-2340-2025-3-1
Section
Algorithmic mathematics and mathematical modelling