A 2-Step Nearest Neighbor Approach to TSP for Mobile Data Collection Route Optimization in IoT
Article Information
Abstract
The Traveling Salesman Problem (TSP) is a well-known NP-hard problem that aims to find the optimal tour among cities, visiting each exactly once and returning to the origin. Over the years, many researchers have proposed various approaches to find near-optimal solutions for TSP. This paper proposed a variant of the nearest neighbor algorithm termed the 2-step nearest neighbor algorithm. Unlike the original nearest neighbor approach, this algorithm considers two nearest nodes as potential next nodes. For each of those nearest nodes, the two nearest nodes have been considered. The sub-tour with the minimum cost among the resulting four has added to the final tour. This process continues until all nodes are covered. The performance of the proposed algorithm compared with that of existing brute-force, nearest-neighbor, and genetic algorithms. The proposed algorithm's utility extends from classical TSP instances to route planning for mobile data collectors in Internet of things (IoT) environments. In such scenarios, a mobile collector visits distributed IoT sensor nodes to gather data and return to its base station, minimizing total travel costs and making the problem analogous to TSP. Result analysis shows that in most scenarios, the proposed approach yields a shorter distance tour than the existing nearest neighbor approach, though with slightly increased computational time. The approach could also be adapted based on the number of nodes, the optimal solution requirement, and available computational resources. The code is available at https://github.com/azad-nstu/CS570-Proj-1-Traveling-Salesman-Problem-TSP.
Graphical Abstract
Keywords
Data Availability Statement
Funding
Conflicts of Interest
Ethical Approval and Consent to Participate
References
- Dahiya, C., & Sangwan, S. (2018). Literature review on travelling salesman problem. International Journal of Research, 5(16), 1152-1155.
[Google Scholar] - Kühn, D., & Osthus, D. (2012). A survey on Hamilton cycles in directed graphs. European Journal of Combinatorics, 33(5), 750-766.
[CrossRef] [Google Scholar] - Hahsler, M., & Hornik, K. (2008). TSP—infrastructure for the traveling salesperson problem. Journal of Statistical Software, 23, 1-21.
[CrossRef] [Google Scholar] - Nemani, R., Cherukuri, N., Rao, G. R. K., Srinivas, P. V. V. S., Pujari, J. J., & Prasad, C. (2021, November). Algorithms and optimization techniques for solving tsp. In 2021 Fifth international conference on I-SMAC (IoT in social, mobile, analytics and Cloud)(I-SMAC) (pp. 809-814). IEEE.
[CrossRef] [Google Scholar] - Yang, L., Wang, X., He, Z., Wang, S., & Lin, J. (2023, December). Review of traveling salesman problem solution methods. In International Conference on Bio-Inspired Computing: Theories and Applications (pp. 3-16). Springer Nature Singapore.
[CrossRef] [Google Scholar] - Lenstra, J. K., & Kan, A. R. (1975). Some simple applications of the travelling salesman problem. Journal of the Operational Research Society, 26(4), 717-733.
[CrossRef] [Google Scholar] - Matai, R., Singh, S. P., & Mittal, M. L. (2010). Traveling salesman problem: an overview of applications, formulations, and solution approaches. Traveling salesman problem, theory and applications, 1(1), 1-25.
[Google Scholar] - Akshatha, P. S., Vashisht, V., & Choudhury, T. Comparison Of Various Mutation Operators Of Genetic Algorithm To Resolve Travelling Salesman Problem.
[Google Scholar] - Suriya Praba, T., Sethukarasi, T., & Venkatesh, V. (2020). Krill herd based TSP approach for mobile sink path optimization in large scale wireless sensor networks. Journal of Intelligent \textnormal{& Fuzzy Systems, 38(5), 6571-6581.
[CrossRef] [Google Scholar] - Pavlenko, O., Tymoshenko, A., Tymoshenko, O., Luntovskyy, A., Pyrih, Y., & Melnyk, I. (2022, February). Searching extreme paths based on travelling salesman’s problem for wireless emerging networking. In IEEE lnternational Conference on Advanced Trends in Radioelectronics, Telecommunications and Computer Engineering (pp. 284-304). Cham: Springer Nature Switzerland.
[CrossRef] [Google Scholar] - Azad, A. K., Alam, M. S., & Shawkat, S. A. (2019). DCDS-MAC: A Dual-Channel Dual-Slot MAC Protocol for Delay Sensitive Wireless Sensor Network Applications. J. Commun., 14(11), 1049-1058.
[Google Scholar] - Aouedi, O., Vu, T. H., Sacco, A., Nguyen, D. C., Piamrat, K., Marchetto, G., & Pham, Q. V. (2024). A survey on intelligent Internet of Things: Applications, security, privacy, and future directions. IEEE communications surveys & tutorials, 27(2), 1238-1292.
[CrossRef] [Google Scholar] - Heidari, A., Shishehlou, H., Darbandi, M., Navimipour, N. J., & Yalcin, S. (2024). A reliable method for data aggregation on the industrial internet of things using a hybrid optimization algorithm and density correlation degree. Cluster Computing, 27(6), 7521-7539.
[CrossRef] [Google Scholar] - Chen, X. (2012). Fast patrol route planning in dynamic environments. IEEE Transactions on Systems, Man, and Cybernetics-Part A: Systems and Humans, 42(4), 894-904.
[CrossRef] [Google Scholar] - Park, J., & Kim, B. I. (2010). The school bus routing problem: A review. European Journal of operational research, 202(2), 311-319.
[CrossRef] [Google Scholar] - Jordan, S., Moore, J., Hovet, S., Box, J., Perry, J., Kirsche, K., ... & Tse, Z. T. H. (2018). State‐of‐the‐art technologies for UAV inspections. IET Radar, Sonar & Navigation, 12(2), 151-164.
[CrossRef] [Google Scholar] - Hafeez, A., Husain, M. A., Singh, S. P., Chauhan, A., Khan, M. T., Kumar, N., ... & Soni, S. K. (2023). Implementation of drone technology for farm monitoring & pesticide spraying: A review. Information processing in Agriculture, 10(2), 192-203.
[CrossRef] [Google Scholar] - Balas, E., & Toth, P. (1983). Branch and bound methods for the traveling salesman problem.
[Google Scholar] - Simonetti, N. O. (1998). Applications of a dynamic programming approach to the traveling salesman problem. Carnegie Mellon University.
[Google Scholar] - Bryant, K. (2000). Genetic algorithms and the travelling salesman problem.
[Google Scholar] - Aarts, E. H., Korst, J. H., & van Laarhoven, P. J. (1988). A quantitative analysis of the simulated annealing algorithm: A case study for the traveling salesman problem. Journal of Statistical Physics, 50, 187-206.
[CrossRef] [Google Scholar] - Baidoo, E., & Oppong, S. O. (2016). Solving the TSP using traditional computing approach. International Journal of Computer Applications, 152(8).
[Google Scholar] - Sharma, V., Kumar, R., & Tyagi, S. (2020). Optimized solution of TSP (Travelling Salesman Problem) based on mendelian inheritance. Recent Advances in Computer Science and Communications (Formerly: Recent Patents on Computer Science), 13(5), 909-916.
[CrossRef] [Google Scholar] - Rexhepi, A., Maxhuni, A., & Dika, A. (2013). Analysis of the impact of parameters values on the Genetic Algorithm for TSP. International Journal of Computer Science Issues (IJCSI), 10(1), 158.
[Google Scholar]
Cite This Article
TY - JOUR AU - Azad, Abul Kalam PY - 2025 DA - 2025/07/21 TI - A 2-Step Nearest Neighbor Approach to TSP for Mobile Data Collection Route Optimization in IoT JO - ICCK Transactions on Mobile and Wireless Intelligence T2 - ICCK Transactions on Mobile and Wireless Intelligence JF - ICCK Transactions on Mobile and Wireless Intelligence VL - 1 IS - 1 SP - 1 EP - 10 DO - 10.62762/TMWI.2025.370327 UR - https://www.icck.org/article/abs/TMWI.2025.370327 KW - traveling salesman problem KW - optimization KW - brute force KW - nearest neighbor KW - genetic algorithm KW - internet of things AB - The Traveling Salesman Problem (TSP) is a well-known NP-hard problem that aims to find the optimal tour among cities, visiting each exactly once and returning to the origin. Over the years, many researchers have proposed various approaches to find near-optimal solutions for TSP. This paper proposed a variant of the nearest neighbor algorithm termed the 2-step nearest neighbor algorithm. Unlike the original nearest neighbor approach, this algorithm considers two nearest nodes as potential next nodes. For each of those nearest nodes, the two nearest nodes have been considered. The sub-tour with the minimum cost among the resulting four has added to the final tour. This process continues until all nodes are covered. The performance of the proposed algorithm compared with that of existing brute-force, nearest-neighbor, and genetic algorithms. The proposed algorithm's utility extends from classical TSP instances to route planning for mobile data collectors in Internet of things (IoT) environments. In such scenarios, a mobile collector visits distributed IoT sensor nodes to gather data and return to its base station, minimizing total travel costs and making the problem analogous to TSP. Result analysis shows that in most scenarios, the proposed approach yields a shorter distance tour than the existing nearest neighbor approach, though with slightly increased computational time. The approach could also be adapted based on the number of nodes, the optimal solution requirement, and available computational resources. The code is available at https://github.com/azad-nstu/CS570-Proj-1-Traveling-Salesman-Problem-TSP. SN - 3069-0692 PB - Institute of Central Computation and Knowledge LA - English ER -
@article{Azad2025A,
author = {Abul Kalam Azad},
title = {A 2-Step Nearest Neighbor Approach to TSP for Mobile Data Collection Route Optimization in IoT},
journal = {ICCK Transactions on Mobile and Wireless Intelligence},
year = {2025},
volume = {1},
number = {1},
pages = {1-10},
doi = {10.62762/TMWI.2025.370327},
url = {https://www.icck.org/article/abs/TMWI.2025.370327},
abstract = {The Traveling Salesman Problem (TSP) is a well-known NP-hard problem that aims to find the optimal tour among cities, visiting each exactly once and returning to the origin. Over the years, many researchers have proposed various approaches to find near-optimal solutions for TSP. This paper proposed a variant of the nearest neighbor algorithm termed the 2-step nearest neighbor algorithm. Unlike the original nearest neighbor approach, this algorithm considers two nearest nodes as potential next nodes. For each of those nearest nodes, the two nearest nodes have been considered. The sub-tour with the minimum cost among the resulting four has added to the final tour. This process continues until all nodes are covered. The performance of the proposed algorithm compared with that of existing brute-force, nearest-neighbor, and genetic algorithms. The proposed algorithm's utility extends from classical TSP instances to route planning for mobile data collectors in Internet of things (IoT) environments. In such scenarios, a mobile collector visits distributed IoT sensor nodes to gather data and return to its base station, minimizing total travel costs and making the problem analogous to TSP. Result analysis shows that in most scenarios, the proposed approach yields a shorter distance tour than the existing nearest neighbor approach, though with slightly increased computational time. The approach could also be adapted based on the number of nodes, the optimal solution requirement, and available computational resources. The code is available at https://github.com/azad-nstu/CS570-Proj-1-Traveling-Salesman-Problem-TSP.},
keywords = {traveling salesman problem, optimization, brute force, nearest neighbor, genetic algorithm, internet of things},
issn = {3069-0692},
publisher = {Institute of Central Computation and Knowledge}
}
Article Metrics
Publisher's Note
ICCK stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and Permissions
Portico