词条 | Travelling salesman problem | ||||||||||||||||||||||||||||||||||||||||||
释义 |
The travelling salesman problem (TSP) asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city and returns to the origin city?" It is an NP-hard problem in combinatorial optimization, important in operations research and theoretical computer science. The travelling purchaser problem and the vehicle routing problem are both generalizations of TSP. In the theory of computational complexity, the decision version of the TSP (where, given a length L, the task is to decide whether the graph has any tour shorter than L) belongs to the class of NP-complete problems. Thus, it is possible that the worst-case running time for any algorithm for the TSP increases superpolynomially (but no more than exponentially) with the number of cities. The problem was first formulated in 1930 and is one of the most intensively studied problems in optimization. It is used as a benchmark for many optimization methods. Even though the problem is computationally difficult, a large number of heuristics and exact algorithms are known, so that some instances with tens of thousands of cities can be solved completely and even problems with millions of cities can be approximated within a small fraction of 1%.[1] The TSP has several applications even in its purest formulation, such as planning, logistics, and the manufacture of microchips. Slightly modified, it appears as a sub-problem in many areas, such as DNA sequencing. In these applications, the concept city represents, for example, customers, soldering points, or DNA fragments, and the concept distance represents travelling times or cost, or a similarity measure between DNA fragments. The TSP also appears in astronomy, as astronomers observing many sources will want to minimize the time spent moving the telescope between the sources. In many applications, additional constraints such as limited resources or time windows may be imposed. {{Toclimit|3}}HistoryThe origins of the travelling salesman problem are unclear. A handbook for travelling salesmen from 1832 mentions the problem and includes example tours through Germany and Switzerland, but contains no mathematical treatment.[2] The travelling salesman problem was mathematically formulated in the 1800s by the Irish mathematician W.R. Hamilton and by the British mathematician Thomas Kirkman. Hamilton’s Icosian Game was a recreational puzzle based on finding a Hamiltonian cycle.[3] The general form of the TSP appears to have been first studied by mathematicians during the 1930s in Vienna and at Harvard, notably by Karl Menger, who defines the problem, considers the obvious brute-force algorithm, and observes the non-optimality of the nearest neighbour heuristic: {{Quotation|We denote by messenger problem (since in practice this question should be solved by each postman, anyway also by many travelers) the task to find, for finitely many points whose pairwise distances are known, the shortest route connecting the points. Of course, this problem is solvable by finitely many trials. Rules which would push the number of trials below the number of permutations of the given points, are not known. The rule that one first should go from the starting point to the closest point, then to the point closest to this, etc., in general does not yield the shortest route. [4]}} It was first considered mathematically in the 1930s by Merrill M. Flood who was looking to solve a school bus routing problem.[5] Hassler Whitney at Princeton University introduced the name travelling salesman problem soon after.[6]In the 1950s and 1960s, the problem became increasingly popular in scientific circles in Europe and the USA after the RAND Corporation in Santa Monica offered prizes for steps in solving the problem.[5] Notable contributions were made by George Dantzig, Delbert Ray Fulkerson and Selmer M. Johnson from the RAND Corporation, who expressed the problem as an integer linear program and developed the cutting plane method for its solution. They wrote what is considered the seminal paper on the subject in which with these new methods they solved an instance with 49 cities to optimality by constructing a tour and proving that no other tour could be shorter. Dantzig, Fulkerson and Johnson, however, speculated that given a near optimal solution we may be able to find optimality or prove optimality by adding a small number of extra inequalities (cuts). They used this idea to solve their initial 49 city problem using a string model. They found they only needed 26 cuts to come to a solution for their 49 city problem. While this paper did not give an algorithmic approach to TSP problems, the ideas that lay within it were indispensable to later creating exact solution methods for the TSP, though it would take 15 years to find an algorithmic approach in creating these cuts.[5] As well as cutting plane methods, Dantzig, Fulkerson and Johnson used branch and bound algorithms perhaps for the first time.[5] In the following decades, the problem was studied by many researchers from mathematics, computer science, chemistry, physics, and other sciences. In the 1960s however a new approach was created, that instead of seeking optimal solutions, one would produce a solution whose length is provably bounded by a multiple of the optimal length, and in doing so create lower bounds for the problem; these may then be used with branch and bound approaches. One method of doing this was to create a minimum spanning tree of the graph and then double all its edges, which produces the bound that the length of an optimal tour is at most twice the weight of a minimum spanning tree.[5] Christofides made a big advance in this approach of giving an approach for which we know the worst-case scenario. Christofides algorithm given in 1976, at worst is 1.5 times longer than the optimal solution. As the algorithm was so simple and quick, many hoped it would give way to a near optimal solution method. However, until 2011 when it was beaten by less than a billionth of a percent, this remained the method with the best worst-case scenario.[7] Richard M. Karp showed in 1972 that the Hamiltonian cycle problem was NP-complete, which implies the NP-hardness of TSP. This supplied a mathematical explanation for the apparent computational difficulty of finding optimal tours. Great progress was made in the late 1970s and 1980, when Grötschel, Padberg, Rinaldi and others managed to exactly solve instances with up to 2,392 cities, using cutting planes and branch and bound. In the 1990s, Applegate, Bixby, Chvátal, and Cook developed the program Concorde that has been used in many recent record solutions. Gerhard Reinelt published the TSPLIB in 1991, a collection of benchmark instances of varying difficulty, which has been used by many research groups for comparing results. In 2006, Cook and others computed an optimal tour through an 85,900-city instance given by a microchip layout problem, currently the largest solved TSPLIB instance. For many other instances with millions of cities, solutions can be found that are guaranteed to be within 2-3% of an optimal tour.[8] DescriptionAs a graph problemTSP can be modelled as an undirected weighted graph, such that cities are the graph's vertices, paths are the graph's edges, and a path's distance is the edge's weight. It is a minimization problem starting and finishing at a specified vertex after having visited each other vertex exactly once. Often, the model is a complete graph (i.e. each pair of vertices is connected by an edge). If no path exists between two cities, adding an arbitrarily long edge will complete the graph without affecting the optimal tour. Asymmetric and symmetricIn the symmetric TSP, the distance between two cities is the same in each opposite direction, forming an undirected graph. This symmetry halves the number of possible solutions. In the asymmetric TSP, paths may not exist in both directions or the distances might be different, forming a directed graph. Traffic collisions, one-way streets, and airfares for cities with different departure and arrival fees are examples of how this symmetry could break down. Related problems
Integer linear programming formulationsThe TSP can be formulated as an integer linear program.[11][12][13] Several formulations are known. Two notable formulations are the Miller-Tucker-Zemlin (MTZ) formulation and the Dantzig-Fulkerson-Johnson (DFJ) formulation. The DFJ formulation is stronger, though the MTZ formulation is still useful in certain settings.[14][15] Miller-Tucker-Zemlin formulationLabel the cities with the numbers 1, …, n and define: For i = 1, …, n, let be a dummy variable, and finally take to be the distance from city i to city j. Then TSP can be written as the following integer linear programming problem: The first set of equalities requires that each city is arrived at from exactly one other city, and the second set of equalities requires that from each city there is a departure to exactly one other city. The last constraints enforce that there is only a single tour covering all cities, and not two or more disjointed tours that only collectively cover all cities. To prove this, it is shown below (1) that every feasible solution contains only one closed sequence of cities, and (2) that for every single tour covering all cities, there are values for the dummy variables that satisfy the constraints. To prove that every feasible solution contains only one closed sequence of cities, it suffices to show that every subtour in a feasible solution passes through city 1 (noting that the equalities ensure there can only be one such tour). For if we sum all the inequalities corresponding to for any subtour of k steps not passing through city 1, we obtain: which is a contradiction. It now must be shown that for every single tour covering all cities, there are values for the dummy variables that satisfy the constraints. Without loss of generality, define the tour as originating (and ending) at city 1. Choose if city i is visited in step t (i, t = 1, 2, ..., n). Then since can be no greater than n and can be no less than 1; hence the constraints are satisfied whenever For , we have: satisfying the constraint. Dantzig-Fulkerson-Johnson formulationLabel the cities with the numbers 1, …, n and define: Take to be the distance from city i to city j. Then TSP can be written as the following integer linear programming problem: The last constraint of the DFJ formulation ensures that there are no sub-tours among the non-starting vertices, so the solution returned is a single tour and not the union of smaller tours. Because this leads to an exponential number of possible constraints, in practice it is solved with delayed column generation. Computing a solutionThe traditional lines of attack for the NP-hard problems are the following:
Exact algorithmsThe most direct solution would be to try all permutations (ordered combinations) and see which one is cheapest (using brute-force search). The running time for this approach lies within a polynomial factor of , the factorial of the number of cities, so this solution becomes impractical even for only 20 cities. One of the earliest applications of dynamic programming is the Held–Karp algorithm that solves the problem in time .[16] This bound has also been reached by Exclusion-Inclusion in an attempt preceding the dynamic programming approach. Improving these time bounds seems to be difficult. For example, it has not been determined whether an exact algorithm for TSP that runs in time exists.[17] Other approaches include:
An exact solution for 15,112 German towns from TSPLIB was found in 2001 using the cutting-plane method proposed by George Dantzig, Ray Fulkerson, and Selmer M. Johnson in 1954, based on linear programming. The computations were performed on a network of 110 processors located at Rice University and Princeton University. The total computation time was equivalent to 22.6 years on a single 500 MHz Alpha processor. In May 2004, the travelling salesman problem of visiting all 24,978 towns in Sweden was solved: a tour of length approximately 72,500 kilometres was found and it was proven that no shorter tour exists.[19] In March 2005, the travelling salesman problem of visiting all 33,810 points in a circuit board was solved using Concorde TSP Solver: a tour of length 66,048,945 units was found and it was proven that no shorter tour exists. The computation took approximately 15.7 CPU-years (Cook et al. 2006). In April 2006 an instance with 85,900 points was solved using Concorde TSP Solver, taking over 136 CPU-years, see {{harvtxt|Applegate|Bixby|Chvátal|Cook|2006}}. Heuristic and approximation algorithmsVarious heuristics and approximation algorithms, which quickly yield good solutions have been devised. Modern methods can find solutions for extremely large problems (millions of cities) within a reasonable time which are with a high probability just 2–3% away from the optimal solution.[8] Several categories of heuristics are recognized. Constructive heuristicsThe nearest neighbour (NN) algorithm (a greedy algorithm) lets the salesman choose the nearest unvisited city as his next move. This algorithm quickly yields an effectively short route. For N cities randomly distributed on a plane, the algorithm on average yields a path 25% longer than the shortest possible path.[25] However, there exist many specially arranged city distributions which make the NN algorithm give the worst route.[20] This is true for both asymmetric and symmetric TSPs.[21] Rosenkrantz et al.[22] showed that the NN algorithm has the approximation factor for instances satisfying the triangle inequality. A variation of NN algorithm, called Nearest Fragment (NF) operator, which connects a group (fragment) of nearest unvisited cities, can find shorter route with successive iterations.[23] The NF operator can also be applied on an initial solution obtained by NN algorithm for further improvement in an elitist model, where only better solutions are accepted. The bitonic tour of a set of points is the minimum-perimeter monotone polygon that has the points as its vertices; it can be computed efficiently by dynamic programming. Another constructive heuristic, Match Twice and Stitch (MTS), performs two sequential matchings, where the second matching is executed after deleting all the edges of the first matching, to yield a set of cycles. The cycles are then stitched to produce the final tour.[24] Christofides algorithmThe Christofides algorithm follows a similar outline but combines the minimum spanning tree with a solution of another problem, minimum-weight perfect matching. This gives a TSP tour which is at most 1.5 times the optimal. The Christofides algorithm was one of the first approximation algorithms, and was in part responsible for drawing attention to approximation algorithms as a practical approach to intractable problems. As a matter of fact, the term "algorithm" was not commonly extended to approximation algorithms until later; the Christofides algorithm was initially referred to as the Christofides heuristic. This algorithm looks at things differently by using a result from graph theory which helps improve on the LB of the TSP which originated from doubling the cost of the minimum spanning tree. Given an Eulerian graph we can find an Eulerian tour in {{tmath|O(n)}} time.[5] So if we had an Eulerian graph with cities from a TSP as vertices then we can easily see that we could use such a method for finding an Eulerian tour to find a TSP solution. By triangular inequality we know that the TSP tour can be no longer than the Eulerian tour and as such we have a LB for the TSP. Such a method is described below.
To improve the lower bound, a better way of creating an Eulerian graph is needed. By triangular inequality, the best Eulerian graph must have the same cost as the best travelling salesman tour, hence finding optimal Eulerian graphs is at least as hard as TSP. One way of doing this is by minimum weight matching using algorithms of .[5] Making a graph into an Eulerian graph starts with the minimum spanning tree. Then all the vertices of odd order must be made even. So a matching for the odd degree vertices must be added which increases the order of every odd degree vertex by one.[5] This leaves us with a graph where every vertex is of even order which is thus Eulerian. Adapting the above method gives Christofides' algorithm,
Iterative improvementPairwise exchangeThe pairwise exchange or 2-opt technique involves iteratively removing two edges and replacing these with two different edges that reconnect the fragments created by edge removal into a new and shorter tour. Similarly, the 3-opt technique removes 3 edges and reconnects them to form a shorter tour. These are special cases of the k-opt method. Note that the label Lin–Kernighan is an often heard misnomer for 2-opt. Lin–Kernighan is actually the more general k-opt method. For Euclidean instances, 2-opt heuristics give on average solutions that are about 5% better than Christofides' algorithm. If we start with an initial solution made with a greedy algorithm, the average number of moves greatly decreases again and is {{tmath|O(n)}}. For random starts however, the average number of moves is {{tmath|O(n \\log (n))}}. However whilst in order this is a small increase in size, the initial number of moves for small problems is 10 times as big for a random start compared to one made from a greedy heuristic. This is because such 2-opt heuristics exploit `bad' parts of a solution such as crossings. These types of heuristics are often used within Vehicle routing problem heuristics to reoptimize route solutions.[25] k-opt heuristic, or Lin–Kernighan heuristicsThe Lin–Kernighan heuristic is a special case of the V-opt or variable-opt technique. It involves the following steps:
The most popular of the k-opt methods are 3-opt, as introduced by Shen Lin of Bell Labs in 1965. A special case of 3-opt is where the edges are not disjoint (two of the edges are adjacent to one another). In practice, it is often possible to achieve substantial improvement over 2-opt without the combinatorial cost of the general 3-opt by restricting the 3-changes to this special subset where two of the removed edges are adjacent. This so-called two-and-a-half-opt typically falls roughly midway between 2-opt and 3-opt, both in terms of the quality of tours achieved and the time required to achieve those tours. V-opt heuristicThe variable-opt method is related to, and a generalization of the k-opt method. Whereas the k-opt methods remove a fixed number (k) of edges from the original tour, the variable-opt methods do not fix the size of the edge set to remove. Instead they grow the set as the search process continues. The best known method in this family is the Lin–Kernighan method (mentioned above as a misnomer for 2-opt). Shen Lin and Brian Kernighan first published their method in 1972, and it was the most reliable heuristic for solving travelling salesman problems for nearly two decades. More advanced variable-opt methods were developed at Bell Labs in the late 1980s by David Johnson and his research team. These methods (sometimes called Lin–Kernighan–Johnson) build on the Lin–Kernighan method, adding ideas from tabu search and evolutionary computing. The basic Lin–Kernighan technique gives results that are guaranteed to be at least 3-opt. The Lin–Kernighan–Johnson methods compute a Lin–Kernighan tour, and then perturb the tour by what has been described as a mutation that removes at least four edges and reconnecting the tour in a different way, then V-opting the new tour. The mutation is often enough to move the tour from the local minimum identified by Lin–Kernighan. V-opt methods are widely considered the most powerful heuristics for the problem, and are able to address special cases, such as the Hamilton Cycle Problem and other non-metric TSPs that other heuristics fail on. For many years Lin–Kernighan–Johnson had identified optimal solutions for all TSPs where an optimal solution was known and had identified the best known solutions for all other TSPs on which the method had been tried. Randomized improvementOptimized Markov chain algorithms which use local searching heuristic sub-algorithms can find a route extremely close to the optimal route for 700 to 800 cities. TSP is a touchstone for many general heuristics devised for combinatorial optimization such as genetic algorithms, simulated annealing, tabu search, ant colony optimization, river formation dynamics (see swarm intelligence) and the cross entropy method. Ant colony optimization{{main|Ant colony optimization algorithms}}Artificial intelligence researcher Marco Dorigo described in 1993 a method of heuristically generating "good solutions" to the TSP using a simulation of an ant colony called ACS (ant colony system).[26] It models behaviour observed in real ants to find short paths between food sources and their nest, an emergent behaviour resulting from each ant's preference to follow trail pheromones deposited by other ants. ACS sends out a large number of virtual ant agents to explore many possible routes on the map. Each ant probabilistically chooses the next city to visit based on a heuristic combining the distance to the city and the amount of virtual pheromone deposited on the edge to the city. The ants explore, depositing pheromone on each edge that they cross, until they have all completed a tour. At this point the ant which completed the shortest tour deposits virtual pheromone along its complete tour route (global trail updating). The amount of pheromone deposited is inversely proportional to the tour length: the shorter the tour, the more it deposits. Special casesMetricIn the metric TSP, also known as delta-TSP or Δ-TSP, the intercity distances satisfy the triangle inequality. A very natural restriction of the TSP is to require that the distances between cities form a metric to satisfy the triangle inequality; that is the direct connection from A to B is never farther than the route via intermediate C: . The edge spans then build a metric on the set of vertices. When the cities are viewed as points in the plane, many natural distance functions are metrics, and so many natural instances of TSP satisfy this constraint. The following are some examples of metric TSPs for various metrics.
The last two metrics appear, for example, in routing a machine that drills a given set of holes in a printed circuit board. The Manhattan metric corresponds to a machine that adjusts first one co-ordinate, and then the other, so the time to move to a new point is the sum of both movements. The maximum metric corresponds to a machine that adjusts both co-ordinates simultaneously, so the time to move to a new point is the slower of the two movements. In its definition, the TSP does not allow cities to be visited twice, but many applications do not need this constraint. In such cases, a symmetric, non-metric instance can be reduced to a metric one. This replaces the original graph with a complete graph in which the inter-city distance is replaced by the shortest path between A and B in the original graph. EuclideanWhen the input numbers can be arbitrary real numbers, Euclidean TSP is a particular case of metric TSP, since distances in a plane obey the triangle inequality. When the input numbers must be integers, comparing lengths of tours involves comparing sums of square-roots. Like the general TSP, Euclidean TSP is NP-hard in either case. With rational coordinates and discretized metric (distances rounded up to an integer), the problem is NP-complete.{{sfnp|Papadimitriou|1977}} With rational coordinates and the actual Euclidean metric, Euclidean TSP is known to be in the Counting Hierarchy,[27] a subclass of PSPACE. With arbitrary real coordinates, Euclidean TSP cannot be in such classes, since there are uncountably many possible inputs. However, Euclidean TSP is probably the easiest version for approximation.[28] For example, the minimum spanning tree of the graph associated with an instance of the Euclidean TSP is a Euclidean minimum spanning tree, and so can be computed in expected O (n log n) time for n points (considerably less than the number of edges). This enables the simple 2-approximation algorithm for TSP with triangle inequality above to operate more quickly. In general, for any c > 0, where d is the number of dimensions in the Euclidean space, there is a polynomial-time algorithm that finds a tour of length at most (1 + 1/c) times the optimal for geometric instances of TSP in time; this is called a polynomial-time approximation scheme (PTAS).{{sfnp|Arora|1998}} Sanjeev Arora and Joseph S. B. Mitchell were awarded the Gödel Prize in 2010 for their concurrent discovery of a PTAS for the Euclidean TSP. In practice, simpler heuristics with weaker guarantees continue to be used. AsymmetricIn most cases, the distance between two nodes in the TSP network is the same in both directions. The case where the distance from A to B is not equal to the distance from B to A is called asymmetric TSP. A practical application of an asymmetric TSP is route optimization using street-level routing (which is made asymmetric by one-way streets, slip-roads, motorways, etc.). Conversion to symmetricSolving an asymmetric TSP graph can be somewhat complex. The following is a 3×3 matrix containing all possible path weights between the nodes A, B and C. One option is to turn an asymmetric matrix of size N into a symmetric matrix of size 2N.[29]
To double the size, each of the nodes in the graph is duplicated, creating a second ghost node, linked to the original node with a "ghost" edge of very low (possibly negative) weight, here denoted −w. (Alternatively, the ghost edges have weight 0, and weight w is added to all other edges.) The original 3×3 matrix shown above is visible in the bottom left and the transpose of the original in the top-right. Both copies of the matrix have had their diagonals replaced by the low-cost hop paths, represented by −w. In the new graph, no edge directly links original nodes and no edge directly links ghost nodes.
The weight −w of the "ghost" edges linking the ghost nodes to the corresponding original nodes must be low enough to ensure that all ghost edges must belong to any optimal symmetric TSP solution on the new graph (w=0 is not always low enough). As a consequence, in the optimal symmetric tour, each original node appears next to its ghost node (e.g. a possible path is ) and by merging the original and ghost nodes again we get an (optimal) solution of the original asymmetric problem (in our example, ). Analyst's problemThere is an analogous problem in geometric measure theory which asks the following: under what conditions may a subset E of Euclidean space be contained in a rectifiable curve (that is, when is there a curve with finite length that visits every point in E)? This problem is known as the analyst's travelling salesman problem Path length for random sets of points in a squareSuppose are independent random variables with uniform distribution in the square , and let be the shortest path length (i.e. TSP solution) for this set of points, according to the usual Euclidean distance. It is known[30] that, almost surely, where is a positive constant that is not known explicitly. Since (see below), it follows from bounded convergence theorem that , hence lower and upper bounds on follow from bounds on . The almost sure limit as may not exist if the independent locations are replaced with observations from a stationary ergodic process with uniform marginals.[31] Upper bound
Lower bound
where 0.522 comes from the points near square boundary which have fewer neighbours, and Christine L. Valenzuela and Antonia J. Jones [37] obtained the following other numerical lower bound: . Computational complexityThe problem has been shown to be NP-hard (more precisely, it is complete for the complexity class FPNP; see function problem), and the decision problem version ("given the costs and a number x, decide whether there is a round-trip route cheaper than x") is NP-complete. The bottleneck traveling salesman problem is also NP-hard. The problem remains NP-hard even for the case when the cities are in the plane with Euclidean distances, as well as in a number of other restrictive cases. Removing the condition of visiting each city "only once" does not remove the NP-hardness, since it is easily seen that in the planar case there is an optimal tour that visits each city only once (otherwise, by the triangle inequality, a shortcut that skips a repeated visit would not increase the tour length). Complexity of approximationIn the general case, finding a shortest travelling salesman tour is NPO-complete.[38] If the distance measure is a metric (and thus symmetric), the problem becomes APX-complete[39] and Christofides’s algorithm approximates it within 1.5.[40] The best known inapproximability bound is 123/122 .[41] If the distances are restricted to 1 and 2 (but still are a metric) the approximation ratio becomes 8/7.{{sfnp|Berman|Karpinski|2006}} In the asymmetric case with triangle inequality, only logarithmic performance guarantees are known, the best current algorithm achieves performance ratio 0.814 log(n);[42] it is an open question if a constant factor approximation exists. The best known inapproximability bound is 75/74 .[41] The corresponding maximization problem of finding the longest travelling salesman tour is approximable within 63/38.[43] If the distance function is symmetric, the longest tour can be approximated within 4/3 by a deterministic algorithm[44] and within by a randomized algorithm.[45] Human performanceThe TSP, in particular the Euclidean variant of the problem, has attracted the attention of researchers in cognitive psychology. It has been observed that humans are able to produce near-optimal solutions quickly, in a close-to-linear fashion, with performance that ranges from 1% less efficient for graphs with 10-20 nodes, and 11% more efficient for graphs with 120 nodes.[46][47] The apparent ease with which humans accurately generate near-optimal solutions to the problem has led researchers to hypothesize that humans use one or more heuristics, with the two most popular theories arguably being the convex-hull hypothesis and the crossing-avoidance heuristic.[48][49][50] However, additional evidence suggests that human performance is quite varied, and individual differences as well as graph geometry appear to impact performance in the task.[51][52][53] Nevertheless, results suggest that computer performance on the TSP may be improved by understanding and emulating the methods used by humans for these problems, and have also led to new insights into the mechanisms of human thought.[54] The first issue of the Journal of Problem Solving was devoted to the topic of human performance on TSP,[55] and a 2011 review listed dozens of papers on the subject.[54] Natural computationWhen presented with a spatial configuration of food sources, the amoeboid Physarum polycephalum adapts its morphology to create an efficient path between the food sources which can also be viewed as an approximate solution to TSP.[56] It's considered to present interesting possibilities and it has been studied in the area of natural computing. BenchmarksFor benchmarking of TSP algorithms, TSPLIB is a library of sample instances of the TSP and related problems is maintained, see the TSPLIB external reference. Many of them are lists of actual cities and layouts of actual printed circuits. Popular culture
See also
Notes1. ^See the TSP world tour problem which has already been solved to within 0.05% of the optimal solution. 2. ^[https://zs.thulb.uni-jena.de/receive/jportal_jparticle_00248075 "Der Handlungsreisende – wie er sein soll und was er zu tun hat, um Aufträge zu erhalten und eines glücklichen Erfolgs in seinen Geschäften gewiß zu sein – von einem alten Commis-Voyageur"] (The travelling salesman — how he must be and what he should do in order to get commissions and be sure of the happy success in his business — by an old commis-voyageur) 3. ^A discussion of the early work of Hamilton and Kirkman can be found in Graph Theory 1736–1936 4. ^Cited and English translation in {{harvtxt|Schrijver|2005}}. Original German: "Wir bezeichnen als Botenproblem (weil diese Frage in der Praxis von jedem Postboten, übrigens auch von vielen Reisenden zu lösen ist) die Aufgabe, für endlich viele Punkte, deren paarweise Abstände bekannt sind, den kürzesten die Punkte verbindenden Weg zu finden. Dieses Problem ist natürlich stets durch endlich viele Versuche lösbar. Regeln, welche die Anzahl der Versuche unter die Anzahl der Permutationen der gegebenen Punkte herunterdrücken würden, sind nicht bekannt. Die Regel, man solle vom Ausgangspunkt erst zum nächstgelegenen Punkt, dann zu dem diesem nächstgelegenen Punkt gehen usw., liefert im allgemeinen nicht den kürzesten Weg." 5. ^1 2 3 4 5 6 7 {{Cite book|url={{google books |plainurl=y |id=qbFlMwEACAAJ}}|title=The Travelling Salesman Problem: A Guided Tour of Combinatorial Optimization|last=Lawler|first=E. L.|date=1985|publisher=John Wiley & sons|language=en|isbn=978-0471904137|edition=Repr. with corrections.}} 6. ^A detailed treatment of the connection between Menger and Whitney as well as the growth in the study of TSP can be found in Alexander Schrijver's 2005 paper "On the history of combinatorial optimization (till 1960). Handbook of Discrete Optimization (K. Aardal, G.L. Nemhauser, R. Weismantel, eds.), Elsevier, Amsterdam, 2005, pp. 1–68.PS,PDF 7. ^{{Cite journal|last1=Klarreich|first1=Erica|title=Computer Scientists Find New Shortcuts for Infamous Traveling Salesman Problem|url=https://www.wired.com/2013/01/traveling-salesman-problem/|journal=WIRED|accessdate=2015-06-14|date=2013-01-30}} 8. ^1 {{citation | last1 = Rego | first1 = César | last2 = Gamboa | first2 = Dorabela | last3 = Glover | first3 = Fred | last4 = Osterman | first4 = Colin | doi = 10.1016/j.ejor.2010.09.010 | issue = 3 | journal = European Journal of Operational Research | mr = 2774420 | pages = 427–441 | title = Traveling salesman problem heuristics: leading methods, implementations and latest advances | volume = 211 | year = 2011}}. 9. ^{{cite web|url=http://online.WSJ.com/public/resources/documents/print/WSJ_-A002-20170812.pdf|title=How Do You Fix School Bus Routes? Call MIT in Wall street Journal}} 10. ^{{Citation| last1 = Behzad| first1 = Arash| last2 = Modarres| first2 = Mohammad| year = 2002| title = New Efficient Transformation of the Generalized Traveling Salesman Problem into Traveling Salesman Problem| journal = Proceedings of the 15th International Conference of Systems Engineering (Las Vegas)}} 11. ^{{Citation|last=Papadimitriou|first=C.H.|last2=Steiglitz |first2=K. |title=Combinatorial optimization: algorithms and complexity|year=1998|publisher=Dover|location=Mineola, NY}}, pp.308-309. 12. ^Tucker, A. W. (1960), "On Directed Graphs and Integer Programs", IBM Mathematical research Project (Princeton University) 13. ^Dantzig, George B. (1963), Linear Programming and Extensions, Princeton, NJ: PrincetonUP, pp. 545–7, {{isbn|0-691-08000-3}}, sixth printing, 1974. 14. ^{{cite journal |title=Short combinatorial proof that the DFJ polytope is contained in the MTZ polytope for the Asymmetric Traveling Salesman Problem |journal=Operations Research Letters|volume=45|issue=4|pages=323–324|doi=10.1016/j.orl.2017.04.010|year=2017|last1=Velednitsky|first1=Mark}} 15. ^{{cite journal |title=Requiem for the Miller–Tucker–Zemlin subtour elimination constraints? |journal=European Journal of Operational Research|volume=236|issue=3|pages=820–832|doi=10.1016/j.ejor.2013.07.038|year=2014|last1=Bektaş|first1=Tolga|last2=Gouveia|first2=Luis}} 16. ^{{harvtxt|Bellman|1960}}, {{harvtxt|Bellman|1962}}, {{harvtxt|Held|Karp|1962}} 17. ^{{harvtxt|Woeginger|2003}} 18. ^{{harvtxt|Padberg|Rinaldi|1991}} 19. ^Work by David Applegate, AT&T Labs – Research, Robert Bixby, ILOG and Rice University, Vašek Chvátal, Concordia University, William Cook, University of Waterloo, and Keld Helsgaun, Roskilde University is discussed on their project web page hosted by the University of Waterloo and last updated in June 2004, here 20. ^{{cite journal |last=Gutina |first=Gregory |last2=Yeob |first2=Anders |last3=Zverovich |first3=Alexey |date=15 March 2002 |title=Traveling salesman should not be greedy: domination analysis of greedy-type heuristics for the TSP |journal=Discrete Applied Mathematics |volume=117 |issue=1–3 |pages=81–86 |doi=10.1016/S0166-218X(01)00195-0}}> 21. ^{{Citation|last=Zverovitch|first=Alexei|title=Experimental Analysis of Heuristics for the ATSP|date=2007|work=The Traveling Salesman Problem and Its Variations|pages=445–487|series=Combinatorial Optimization|publisher=Springer, Boston, MA|language=en|doi=10.1007/0-306-48213-4_10|last2=Zhang|first2=Weixiong|last3=Yeo|first3=Anders|last4=McGeoch|first4=Lyle A.|last5=Gutin|first5=Gregory|last6=Johnson|first6=David S. |isbn=978-0-387-44459-8 |citeseerx=10.1.1.24.2386 }} 22. ^{{cite conference |first=D. J. |last=Rosenkrantz |first2=R. E. |last2=Stearns |first3=P. M. |last3=Lewis |title=Approximate algorithms for the traveling salesperson problem |conference=15th Annual Symposium on Switching and Automata Theory (swat 1974) |date=14-16 October 1974 |doi=10.1109/SWAT.1974.4}} 23. ^{{cite journal | last1 = Ray | first1 = S. S. | last2 = Bandyopadhyay | first2 = S. | last3 = Pal | first3 = S. K. | year = 2007 | title = Genetic Operators for Combinatorial Optimization in TSP and Microarray Gene Ordering | url = | journal = Applied Intelligence | volume = 26 | issue = 3| pages = 183–195 | doi=10.1007/s10489-006-0018-y| citeseerx = 10.1.1.151.132 }} 24. ^{{cite journal | last1 = Kahng | first1 = A. B. | last2 = Reda | first2 = S. | year = 2004 | title = Match Twice and Stitch: A New TSP Tour Construction Heuristic | url = | journal = Operations Research Letters | volume = 32 | issue = 6| pages = 499–509 | doi = 10.1016/j.orl.2004.04.001 }} 25. ^1 {{cite book |last1=Johnson|first1=D. S.|author1-link=David S. Johnson|last2=McGeoch|first2=L. A.|chapter=The Traveling Salesman Problem: A Case Study in Local Optimization|title=Local Search in Combinatorial Optimisation|editor1-first=E. H. L.|editor1-last=Aarts|editor2-first=J. K.|editor2-last=Lenstra|editor2-link=Jan Karel Lenstra|publisher=John Wiley and Sons Ltd.|date=1997 |location=London|pages=215–310 |chapter-url=https://www.cs.ubc.ca/~hutter/previous-earg/EmpAlgReadingGroup/TSP-JohMcg97.pdf}} 26. ^Marco Dorigo. "Ant Colonies for the Traveling Salesman Problem. IRIDIA, Université Libre de Bruxelles. IEEE Transactions on Evolutionary Computation, 1(1):53–66. 1997. http://citeseer.ist.psu.edu/86357.html 27. ^{{harvtxt|Allender|Bürgisser|Kjeldgaard-Pedersen|Mitersen|2007}} 28. ^{{harvtxt|Larson|Odoni|1981}} 29. ^{{cite journal | last1 = Jonker | first1 = Roy | last2 = Volgenant | first2 = Ton | title = Transforming asymmetric into symmetric traveling salesman problems | url = | journal = Operations Research Letters | volume = 2 | issue = 161–163| page = 1983 | doi = 10.1016/0167-6377(83)90048-2 | year = 1983 }} 30. ^1 {{harvtxt|Beardwood|Halton|Hammersley|1959}} 31. ^{{citation | doi = 10.1214/15-AAP1142 | last1 = Arlotto | first1 = Alessandro | last2 = Steele | first2 = J. Michael | author2-link = J._Michael_Steele | journal = The Annals of Applied Probability | pages = 2141–2168 | title = Beardwood–Halton–Hammersley theorem for stationary ergodic sequences: a counterexample | volume = 26 | issue = 4 | year = 2016| arxiv = 1307.0221}} 32. ^{{cite journal|last1=Few|first1=L.|title=The shortest path and the shortest road through n points|journal=Mathematika|date=1955|volume=2|issue=2|pages=141–144|doi=10.1112/s0025579300000784 }} 33. ^1 {{cite journal|last1=Steinerberger|first1=S.|title=New bounds for the traveling salesman constant|journal=Advances in Applied Probability|date=2015|volume=47|issue=1}} 34. ^{{cite journal|last1=Held|first1=M.|last2=Karp|first2=R.M.|title=The Traveling Salesman Problem and Minimum Spanning Trees|journal=Operations Research|date=1970|volume=18|issue=6|pages=1138–1162|doi=10.1287/opre.18.6.1138 }} 35. ^{{cite journal|last1=Goemans|first1=M.|last2=Bertsimas|first2=D.|title=Probabilistic analysis of the Held and Karp lower bound for the Euclidean traveling salesman problem|journal=Mathematics of Operations Research|date=1991|volume=16|issue=1|pages=72–89|doi=10.1287/moor.16.1.72}} 36. ^{{cite web|url=https://about.att.com/error.html|title=error|website=about.att.com}} 37. ^Christine L. Valenzuela and Antonia J. Jones {{webarchive|url=https://web.archive.org/web/20071025205411/http://users.cs.cf.ac.uk/Antonia.J.Jones/Papers/EJORHeldKarp/HeldKarp.pdf |date=25 October 2007 }} 38. ^{{harvtxt|Orponen|1987}} 39. ^{{harvtxt|Papadimitriou|1983}} 40. ^{{harvtxt|Christofides|1976}} 41. ^1 {{harvtxt|Karpinski|Lampis|Schmied|2015}} 42. ^{{harvtxt|Kaplan|2004}} 43. ^{{harvtxt|Kosaraju|1994}} 44. ^{{harvtxt|Serdyukov|1984}} 45. ^{{harvtxt|Hassin|2000}} 46. ^{{citation|title=Human performance on the traveling salesman problem|first1=J. N.|last1=Macgregor|first2=T.|last2=Ormerod|journal=Perception & Psychophysics|date=June 1996|volume=58|issue=4|pages=527–539|doi=10.3758/BF03213088}}. 47. ^{{Cite journal|last=Dry|first=Matthew|last2=Lee|first2=Michael D.|last3=Vickers|first3=Douglas|last4=Hughes|first4=Peter|date=2006|title=Human Performance on Visually Presented Traveling Salesperson Problems with Varying Numbers of Nodes|journal=The Journal of Problem Solving|language=en|volume=1|issue=1|doi=10.7771/1932-6246.1004|issn=1932-6246}} 48. ^{{Cite journal|last=Rooij|first=Iris Van|last2=Stege|first2=Ulrike|last3=Schactman|first3=Alissa|date=2003-03-01|title=Convex hull and tour crossings in the Euclidean traveling salesperson problem: Implications for human performance studies|journal=Memory & Cognition|language=en|volume=31|issue=2|pages=215–220|doi=10.3758/bf03194380|issn=0090-502X|citeseerx=10.1.1.12.6117}} 49. ^{{Cite journal|last=MacGregor|first=James N.|last2=Chu|first2=Yun|date=2011|title=Human Performance on the Traveling Salesman and Related Problems: A Review|journal=The Journal of Problem Solving|language=en|volume=3|issue=2|doi=10.7771/1932-6246.1090|issn=1932-6246}} 50. ^{{Cite journal|last=MacGregor|first=James N.|last2=Chronicle|first2=Edward P.|last3=Ormerod|first3=Thomas C.|date=2004-03-01|title=Convex hull or crossing avoidance? Solution heuristics in the traveling salesperson problem|journal=Memory & Cognition|language=en|volume=32|issue=2|pages=260–270|doi=10.3758/bf03196857|issn=0090-502X}} 51. ^{{Cite journal|last=Vickers|first=Douglas|last2=Mayo|first2=Therese|last3=Heitmann|first3=Megan|last4=Lee|first4=Michael D|last5=Hughes|first5=Peter|title=Intelligence and individual differences in performance on three types of visually presented optimisation problems|journal=Personality and Individual Differences|volume=36|issue=5|pages=1059–1071|doi=10.1016/s0191-8869(03)00200-9|year=2004}} 52. ^{{Cite journal|last=Kyritsis|first=Markos|last2=Gulliver|first2=Stephen R.|last3=Feredoes|first3=Eva|date=2017-06-12|title=Acknowledging crossing-avoidance heuristic violations when solving the Euclidean travelling salesperson problem|journal=Psychological Research|volume=82|issue=5|language=en|pages=997–1009|doi=10.1007/s00426-017-0881-7|pmid=28608230|issn=0340-0727}} 53. ^{{Cite journal|last=Kyritsis|first=Markos|last2=Blathras|first2=George|last3=Gulliver|first3=Stephen|last4=Varela|first4=Vasiliki-Alexia|title=Sense of direction and conscientiousness as predictors of performance in the Euclidean travelling salesman problem|journal=Heliyon|volume=3|issue=11|pages=e00461|doi=10.1016/j.heliyon.2017.e00461|pmid=29264418|pmc=5727545|date=2017-01-11}} 54. ^1 {{citation|title=Human performance on the traveling salesman and related problems: A review|first1=James N.|last1=MacGregor|first2=Yun|last2=Chu|journal=Journal of Problem Solving|volume=3|issue=2|year=2011|url=https://docs.lib.purdue.edu/cgi/viewcontent.cgi?article=1090&context=jps|doi=10.7771/1932-6246.1090}}. 55. ^[https://docs.lib.purdue.edu/jps/vol1/iss1/ Journal of Problem Solving 1(1)], 2006, retrieved 2014-06-06. 56. ^{{citation|title=Computation of the travelling salesman problem by a shrinking blob|first1=Jeff|last1=Jones|first2=Andrew|last2=Adamatzky|journal=Natural Computing|date=2014|pages=2, 13|url=http://www.phychip.eu/wp-content/uploads/2013/03/Computation-of-the-travelling-salesman-problem-by-a-shrinking-blob.pdf}} 57. ^{{Cite journal|last=Geere|first=Duncan|title='Travelling Salesman' movie considers the repercussions if P equals NP|journal=Wired UK|url=https://www.wired.co.uk/news/archive/2012-04/26/travelling-salesman|accessdate=26 April 2012|date=2012-04-26}} References{{refbegin|2}}
| last1 = Applegate | first1 = D. L. | last2 = Bixby | first2 = R. M. | last3 = Chvátal | first3 = V. | last4 = Cook|author4-link=William J. Cook | year = 2006 | title = The Traveling Salesman Problem|first4 =W. J. | isbn = 978-0-691-12993-8}}.
| last1 = Allender | first1 = Eric | last2 = Bürgisser | first2 = Peter | last3 = Kjeldgaard-Pedersen | first3 = Johan | last4 = Mitersen | first4 = Peter Bro | year = 2007 | title = On the Complexity of Numerical Analysis | url = https://www3.math.tu-berlin.de/algebra/work/focs7.pdf | journal = SIAM J. Comput. | volume=38 | issue=5 | pages = 1987–2006 | doi=10.1137/070697926 | citeseerx = 10.1.1.167.5495 }}.
| last = Arora | first = Sanjeev | author-link = Sanjeev Arora | doi = 10.1145/290179.290180 | issue = 5 | journal = Journal of the ACM | mr = 1668147 | pages = 753–782 | title = Polynomial time approximation schemes for Euclidean traveling salesman and other geometric problems | volume = 45 | year = 1998 }}.
|last1= Beardwood |first1=J. |last2=Halton |first2=J.H. |last3=Hammersley |first3=J.M. |title=The Shortest Path Through Many Points |journal= Proceedings of the Cambridge Philosophical Society |volume =55 |issue=4 |pages= 299–327 |year= 1959 |doi=10.1017/s0305004100034095|bibcode=1959PCPS...55..299B }}.
|last= Bellman |first= R. |contribution= Combinatorial Processes and Dynamic Programming |title= Combinatorial Analysis, Proceedings of Symposia in Applied Mathematics 10 |editor1= Bellman, R. |editor2=Hall, M. Jr. |pages= 217–249 |publisher= American Mathematical Society |year=1960 }}.
|last= Bellman |first= R. |title= Dynamic Programming Treatment of the Travelling Salesman Problem |journal= J. Assoc. Comput. Mach. |volume=9|pages= 61–63 |year=1962|doi=10.1145/321105.321111}}.
| last1 = Berman | first1 = Piotr | last2 = Karpinski | first2 = Marek | author2-link = Marek Karpinski | contribution = 8/7-approximation algorithm for (1,2)-TSP | doi = 10.1145/1109557.1109627 | id = {{ECCC|2005|05|069}} | pages = 641–648 | title = Proc. 17th ACM-SIAM Symposium on Discrete Algorithms (SODA '06) | year = 2006 | isbn = 978-0898716054| url = http://eccc.hpi-web.de/report/2005/069/revision/2/download/| citeseerx = 10.1.1.430.2224
|last=Christofides|first=N.|year= 1976 |title=Worst-case analysis of a new heuristic for the travelling salesman problem |series=Technical Report 388|publisher=Graduate School of Industrial Administration, Carnegie-Mellon University, Pittsburgh}}.
|title=Better approximations for max TSP |journal=Information Processing Letters|volume=75|pages=181–186|doi=10.1016/S0020-0190(00)00097-1|issue=4|citeseerx= 10.1.1.35.7209}}.
| last1 = Held | first1 = M. | author1-link = Michael Held | last2 = Karp | first2 = R. M. | author2-link = Richard Karp | year = 1962 | title = A Dynamic Programming Approach to Sequencing Problems | journal = Journal of the Society for Industrial and Applied Mathematics | volume = 10 | issue = 1 | pages = 196–210 | doi = 10.1137/0110015}}.
|title= In Proc. 44th IEEE Symp. on Foundations of Comput. Sci |pages= 56–65|year= 2004}}.
|last1=Karpinski|first1=M. |last2=Lampis|first2=M. |last3=Schmied|first3=R. |journal=Journal of Computer and System Sciences |volume=81 |issue=8 |year=2015 |title=New Inapproximability bounds for TSP |pages=1665–1677 |doi=10.1016/j.jcss.2015.06.003 |arxiv=1303.6437 }}
|last1= Kosaraju|first1= S. R.|last2= Park|first2=J. K. |last3= Stein|first3= C. |year=1994 |contribution=Long tours and short superstrings' |title=Proc. 35th Ann. IEEE Symp. on Foundations of Comput. Sci |publisher= IEEE Computer Society|pages= 166–177}}.
|last1= Orponen|first1= P. | last2=Mannila |first2= H. | author2-link = Heikki Mannila |year=1987 |title=On approximation preserving reductions: Complete problems and robust measures' |journal= Technical Report C-1987–28, Department of Computer Science, University of Helsinki}}.
| last1 = Larson | first1 = Richard C. | last2 = Odoni | first2 = Amedeo R. | year = 1981 | title = Urban Operations Research | chapterurl = http://web.mit.edu/urban_or_book/www/book/chapter6/6.4.7.html | chapter=6.4.7: Applications of Network Models § Routing Problems §§ Euclidean TSP | publisher = Prentice-Hall | isbn = 9780139394478 | oclc = 6331426 }}.
|last1=Padberg|first1=M.|last2=Rinaldi|first2=G. |title=A Branch-and-Cut Algorithm for the Resolution of Large-Scale Symmetric Traveling Salesman Problems |journal = SIAM Review |volume=33|year = 1991 |pages = 60–100 |doi = 10.1137/1033004}}.
| last = Papadimitriou | first = Christos H. | author-link = Christos Papadimitriou | issue = 3 | journal = Theoretical Computer Science | mr = 0455550 | pages = 237–244 | title = The Euclidean traveling salesman problem is NP-complete | volume = 4 | year = 1977 | doi = 10.1016/0304-3975(77)90012-3}}.
|last1=Papadimitriou|first1=C. H.|last2= Yannakakis|first2= M. |year=1993 |title=The traveling salesman problem with distances one and two |journal= Math. Oper. Res.|volume= 18|pages= 1–11 |doi=10.1287/moor.18.1.1}}.
|last=Serdyukov|first= A. I.|year= 1984 |title=An algorithm with an estimate for the traveling salesman problem of the maximum' |journal=Upravlyaemye Sistemy |volume= 25|pages= 80–86}}.
| last = Steinerberger | first = Stefan | journal = Advances in Applied Probability | title = New Bounds for the Traveling Salesman Constant | year = 2015 | volume = 47 | pages = 27–36 | doi = 10.1239/aap/1427814579 | arxiv = 1311.6338}}.
| authorlink = Gerhard J. Woeginger |last= Woeginger|first= G.J.|contribution= Exact Algorithms for NP-Hard Problems: A Survey |title=Combinatorial Optimization – Eureka, You Shrink! Lecture notes in computer science, vol. 2570 |pages= 185–207|publisher= Springer |year=2003 }}.{{refend}} Further reading
External links{{Commons category|Traveling salesman problem}}
7 : Travelling salesman problem|NP-complete problems|NP-hard problems|Combinatorial optimization|Graph algorithms|Computational problems in graph theory|Hamiltonian paths and cycles |
||||||||||||||||||||||||||||||||||||||||||
随便看 |
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。