The traveling salesman problem (TSP), also known as the traveling salesperson problem, is a prominent illustration of a class of problems in computational complexity theory. The problem can be stated as: Given a number of cities and the costs of travelling from one to the other, what is the cheapest roundtrip route that visits each city and then returns to the starting city?
The most direct answer would be to try all the combinations and see which one is cheapest, but given that the number of combinations is N! (the factorial of the number of cities), this solution rapidly becomes impractical.
The problem has been shown to be NPhard, and the decision version of it ("given the costs and a number x, decide whether there is a roundtrip route cheaper than x") is NPcomplete.
The problem is of considerable practical importance, for example in printed circuit assembly automation, where holes or component locations play the part of cities. Various approximation algorithms, which "quickly" yield "good" solutions with "high" probability, have been devised. An approximative solution for 15,112 cities in Germany was found in 2001 by Princeton University scholars.
The first algorithm used to solve the traveling salesman problem is the nearest neighbour algorithm, which is normally fairly close to the optimal route, and doesn't take too long to execute. Upper and lower bounds for the length of the optimal route can be found using the minimum spanning tree of the network. Another algorithm is an insertion algorithm, the Dakin branchandbound algorithm[?], which can be used to process TSPs containing 4060 cities. Yet another, progressive improvement algorithm which uses techniques reminiscent of linear programming works well up to 120200 cities. Optimised Markov Chain algorithms which utilise local searching heuristical subalgorithms can find a route extremely close to the optimal route for 700800 cities.
However, the only way to be completely confident of finding the optimal route is to check every route, which is completely impractical for TSPs with more than 2530 cities.
Search Encyclopedia

Featured Article
