Open access peer-reviewed chapter

Introductory Chapter: Traveling Salesman Problem - An Overview

By Donald Davendra and Magdalena Bialic-Davendra

Submitted: August 20th 2020Reviewed: October 12th 2020Published: December 9th 2020

DOI: 10.5772/intechopen.94435

1. Introduction

The traveling salesman problem (TSP) is considered one of the seminal problems in computational mathematics. Considered as part of the Clay Mathematics Institute Millennium Problem with its assertion of P=NP, the TSP problem has been well researched during the past five decades.

The TSP problem can be described as the following: consider a number of cities which must be visited by a traveling salesman, only once, arriving once and departing once and starting and ending at the same city. Given the pairwise distances between cities, what is the best order in which to visit them, so as to minimize the overall distance traveled?

Mathematically, the equation for the TSP can be given as in Eq. (1):

xij=1thepathgoesfromcityitocityj0otherwiseE1

where xij=1if city iis connected with city j, and xij=0otherwise. For i=0,,n, let uibe an artificial variable and finally take cijto be the distance from city ito city j. The objective function can be then formulated as Eq. (2):

mini=0nji,j=0ncijxij0xij1i,j=0,,nuiZi=0,,ni=0,ijnxij=1j=0,,nj=0,jinxij=1i=0,,nuiuj+nxijn11ijnE2

2. Complexity

The complexity of the TSP is still unknown. Using a brute force approach to test each and every tour, for a tour of n cities, it will be (n-1)! possibilities and it will have a time complexity of On!. However, using the dynamic programming approach, the complexity can be derived of a tour ofncities, which can be divided inton-2subsets each of sizen-1, with the constraint that all such subsets don’t have the nthcity in them. Therefore, there are a maximum of On2nsuch subproblems, which can be solved in lineartime. The time complexity is therefore On22n. Both space and time complexity of the TSP problem can be considered as exponential.

3. History

The genesis of the TSP problem is difficult to pinpoint. Some literature point to widespread usage since the 1950’s , after the 48 state problemposed by Hassler Whitney in the 1930’s induced a lot of interest. The subsequent second world war really ingrained the use of operations research into this domain. An excellent detailed history is given in , where TSP is considered as a part of the history of Combinatorial Optimization.

The TSP problem over time has evolved into many different branches, each with different constraints:

Symmetric TSP (STSP)- the basic TSP problem, where the distance between city iand city jis the same as from city jand city i.

Asymmetric TSP (ATSP)- modified TSP, where the distance between city iand city jis notthe same as from city jand city i.

Hamiltonian Cycle Problem (HCP)- is a problem where finding if a path in an undirectedor directedgraph Gthat visits each vertex Vexactly once exists.

Sequential Ordering Problem (SOP)- Given a set of ncities and distances for each pair of cities, find a Hamiltonian pathfrom city 1to city nof minimal length, which takes given precedence constraints (such as requiring some nodes to be visited prior) into account.

Capacitated Vehicle Routing Problem (CVRP)- Given n-1nodes, 1 depot (with resources) and distances between the nodes, the objective is to satisfy demand at each node using vehicles with identical capacity with the shortest tour.

Case Enough TSP (CETSP)- a problem developed for radio frequency identification (RFID), where close proximity is enough to a node. The objective is to trace the shortest path interlinking the different nodes.

TSP with Neighborhoods (TSPN)- where a collection of Lregions in the plane, called neighborhoodsis given and the objective is to seek the shortest tour to visit all these neighborhoods.

4. Current literature

Linear programming and deterministic methods have been seen as the early solvers, however, intractability of this problem has led to a general decline in these mathematical formulations. Within the past few decades with the rise of computational power, a new branch of algorithms called meta-heuristicsgenerally based on evolutionary dynamics have become more synonymous with solving combinatorial optimization problems. Based around naturally occurring phenomena, these algorithms treat each problem as a black box with the aim of finding feasibly good solutions within acceptable space and time constraints. A vast repository of literature exists for the TSP problem, and the TSP Library is an excellent starting off resource point .

4.1 Deterministic approaches

Some of the latest literature on the TSP problem is divided into three components. The first is the exact and approximation algorithms, which try and produced efficient and reasonably good quality solutions. Some of the latest approaches are given below.

1. 2-Opt Algorithm 

2. Branch and Cut Algorithm 

3. Approximate and Exact Algorithms 

4. Branch and Bound 

4.2 Evolutionary approaches

The second aspect is evolutionary algorithms. A vast number of these algorithms are now in existence and have been applied to the TSP problem from the seminal work on the Ant Colony Optimization by Dorigo and Gambardella  to the following current research.

1. Artificial Bee Colony 

2. Differential Evolution 

3. Genetic Algorithm 

4. Tree Seed Algorithm 

5. Spider Monkey 

6. Ant Colony Optimization 

7. Harmony Search Algorithm 

8. Pigeon Inspired Optimization 

4.3 High performance computing

The third aspect is application based, specifically high-performance computing. With the wider dissemination of parallel computing, especially multi-core and graphic processor unit based approaches, many algorithms have been parrallized. Some of the latest approaches from literature is given as:

1. Multi-Core approach 

2. OpenMP 

3. CUDA 

5. Future direction

Even though a number of problems, especially in the combinatorial and scheduling domain have increased over the past decade, the TSP problem have remained a vital area of research. This is primarily for it being generally equated to the intractablyquandary of P=NP, with its far reaching consequences in other fields such as encryption etc. It is the belief that a combination of smart heuristics employed on super-computers with parallel programming paradigms will be the future direction of tacking large-scale TSP problems.

More

© 2020 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution 3.0 License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

How to cite and reference

Cite this chapter Copy to clipboard

Donald Davendra and Magdalena Bialic-Davendra (December 9th 2020). Introductory Chapter: Traveling Salesman Problem - An Overview, Novel Trends in the Traveling Salesman Problem, Donald Davendra and Magdalena Bialic-Davendra, IntechOpen, DOI: 10.5772/intechopen.94435. Available from:

chapter statistics

1Crossref citations

Related Content

Novel Trends in the Traveling Salesman Problem

Edited by Donald Davendra

Next chapter

CUDA Accelerated 2-OPT Local Search for the Traveling Salesman Problem

By Donald Davendra, Magdalena Metlicka and Magdalena Bialic-Davendra

First chapter

Traveling Salesman Problem: an Overview of Applications, Formulations, and Solution Approaches

By Rajesh Matai, Surya Singh and Murari Lal Mittal

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.