A Dynamic-start, Dynamic-end Insertion Heuristic for Solving the Traveling Salesperson Problem

Authors

  • Poorab Gangwani Department of Computer Science, Shaheed Zulfikar Ali Bhutto Institute of Science and Technology, Karachi, Pakistan
  • Uzair Lodhi National Institute of Oceanography, Karachi, Pakistan
  • Muhammad Owais Department of Computer Science, Shaheed Zulfikar Ali Bhutto Institute of Science and Technology, Karachi, Pakistan
  • Syed Samar Yazdani Computer Science Department, SZABIST, Karachi, Pakistan
  • Afifa Farooq Department of Computer Science, Shaheed Zulfikar Ali Bhutto Institute of Science and Technology, Karachi, Pakistan
  • Qazi Farrukh Department of Computer Science, Shaheed Zulfikar Ali Bhutto Institute of Science and Technology, Karachi, Pakistan
  • Khalid Rasheed Denning, Karachi, Pakistan

DOI:

https://doi.org/10.33411/IJIST/ojs1733

Keywords:

Traveling Salesperson Problem, Insertion Heuristic, Constructive Algorithms, Approximation Ratio, Combinatorial Optimization

Abstract

The traveling salesperson problem (TSP) is one of the most extensively studied NP-hard combinatorial optimization problems with wide applicability in logistics, routing, manufacturing, and network design, making efficient heuristic solutions crucial for practical applications. This paper introduces the Ideal Link Nearest Insertion (ILNI) heuristic, a dynamic-start, dynamic-end insertion method that addresses the structural limitations of classical Nearest Insertion (NI) through dynamic route reconfiguration and path-based route initialization, maintaining an open path structure that allows endpoint insertions throughout the construction process. The proposed heuristic was evaluated on 1,100 randomly generated symmetric TSP instances ranging from 50 to 150 cities, repeated across ten independent iterations (11,000 total comparisons). Using LKH-3 as a reference solver, ILNI achieved a 4.3% improvement in average approximation ratio (2.3753 vs. 2.4819) and a 15.9% reduction in execution time (0.0127s vs. 0.0151s per instance) compared to classical NI. ILNI produced lower-cost tours in 67.3% of instances, demonstrating consistent superiority across all tested problem sizes. Paired t-tests conducted on all 11,000 paired observations confirmed statistically significant improvements in both solution quality and computational efficiency (p < 0.001). The proposed heuristic maintains O(n2) time complexity while improving practical performance, making ILNI a computationally efficient and structurally robust alternative to classical nearest insertion heuristics.

References

Traveling salesman problem | Research Starters | EBSCO Research." [Online]. Avail-able: https://www.ebsco.com.

E. O. Asani, A. E. Okeyinka, and A. A. Adebiyi, "A construction tour technique

for solving the travelling salesman problem based on convex hull and nearest neigh-

bour heuristics," in the 2020 International Conference in Mathematics, Computer

Engineering, and Computer Science (ICM-CECS), 2020, pp. 1_4. [3] H. A. Me and Abdulkarim. F. Alshammari, "Comparison of algorithms for solving the traveling salesman problem," International Journal of Engineering and Advanced

Technology, vol. 4, no. 4, pp. 76_78, 2015.

Z. Xiao, H. Fang, H. Jiang, J. Bai, V. Havyarimana, H. Chen, and L. Jiao, "Un-

derstanding the private car aggregation e_ect through spatio-temporal analysis of

trajectory data," IEEE Transactions on Cybernetics, vol. 53, no. 4, pp. 2346_2357,

Z. Xiao, H. Li, H. Y. Jiang Li, M. Alazab, Y. Zhu and S. Dustdar, "Predicting

urban region heat via learning arrive-stay-leave behaviors of private cars," IEEE

Transactions on Intelligent Transportation Systems, vol. 24, no. 10, pp. 10843_10856,

E. O. Asani, A. E. Okeyinka, S. A. Ajagbe, A. A. Adebiyi, R. T. Ogundokun, O. S. P.

Mudali, M. Adekunle, and O. Adigun, "A Novel Insertion Solution for the Travelling

Salesman Problem," Computers, Materials & Continua, vol. 79, no. 1, pp. 1581_1597,

[Online]. Available: https://www.techscience.com/cmc/v79n1/56285

W. Huang and J. X. Yu, "Investigating TSP Heuristics for Location-Based Services,"

Data Science and Engineering, vol. 2, no. 1, pp. 71_93, Mar. 2017. [Online]. Available: https://doi.org/10.1007/s41019-016-0030-0.

Z. A. Ali, "Concentric Tabu Search Algorithm for Solving Traveling Salesman Prob-

lem (TSP)."

G. Reinelt, The Traveling Salesman: Computational Solutions for TSP Applications,

ser. Computer Science Lecture Notes. Springer, 1994, vol. Berlin, Heidelberg 840.

D. J. Rosenkrantz, R. E. Stearns and P. M. Lewis, II, "An Analysis of Several Heuris-

tics for the Traveling Salesman Problem," SIAM Journal on Computing, vol. 6, no.

, pp. 563_581, 1977. [Online]. Available: https://doi.org/10.1137/0206041.

M. M. Goutham Menon, S. Garrow and S. Stockar, "A Convex Hull Cheap-

est Insertion Heuristic for the Non-Euclidean TSP," 2024. [Online]. Available:

https://arxiv.org/abs/2302.06582.

J. Bentley, "Fast algorithms for geometric traveling salesman problems,"

INFORMS J. Comput., vol. 4, pp. 387_411, 1992. [Online]. Available:

https://api.semanticscholar.org/CorpusID:207225550

G. Gutin and A. P. Punnen, The Traveling Salesman Problem and Its

Variations. Springer, 2007, in Boston, MA.

Downloads

Published

2026-02-07
CITATION
Published: 2026-02-07
Crossref Citation Count: Loading...

How to Cite

Poorab Gangwani, Uzair Lodhi, Muhammad Owais, Yazdani, S. S., Afifa Farooq, Qazi Farrukh, & Khalid Rasheed. (2026). A Dynamic-start, Dynamic-end Insertion Heuristic for Solving the Traveling Salesperson Problem. International Journal of Innovations in Science & Technology, 8(1), 307–319. https://doi.org/10.33411/IJIST/ojs1733