# Travelling salesman problem

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A generic name for a number of very different problems. For instance, suppose that a facility (a "machine" ) starting from an "idle" position is assigned to process a finite set of "jobs" (say , jobs). If the machine has to be "calibrated" (or "set-up" ) for processing each of these jobs and if the machine's "calibration time" (the distance metric) between processing of a pair of jobs in succession is dependent on the particular pair, then a reasonable objective is to organize this job assignment so it will minimize the total machine calibration time. One might want to assume that after the last job is processed the machine returns to its idle position.

A very similar problem exists when the "machine" corresponds to a computer centre which has programs to run, and each program requires resources such as a compiler, a certain portion of the main memory, and perhaps some other "devices" . I.e., each program requires a specific configuration of devices. Conversion cost (or time) from one configuration to another, say from the configuration of program to that of program is denoted by (). Thus, the question becomes that of determining the cost minimizing order in which all the programs ought to be run.

If at the end of running all the programs by the computer centre the system returns to an "idle" configuration, then the number of possible ways to run these programs one after the other equals (for configurations).

This is the same problem as that in the story about the lonely salesman who has to visit sales outlets (starting from his home) and wishes to travel the shortest total distance in the process. It is the salesman's problem to select a distance-minimizing travel order of outlet visits. Thus, the name travelling salesman problem.

In graph terminology terms, the problem is presented as that of a graph , where is a finite set of nodes ( "cities" ) and is the set of edges connecting the node pairs in . If one associates a real-valued "cost" matrix , , with the set of edges , the travelling salesman dilemma becomes that of constructing a cost-minimizing circuit on that visits all the nodes in exactly once, if such a circuit exists (cf. also Graph circuit).

If the requirement is that all the nodes in are visited in a cost-minimizing fashion but without necessarily forming a circuit, then the problem is referred to as a travelling salesman path problem, or travelling salesman walk problem. Again, the question of the existence of such a path has to be addressed first.

If the graph , , assigns a "direction" to each element in (a subset of arcs), then the corresponding travelling salesman problem is of the "directed" variety. Clearly, there is the option of the mixed problem, where some of the node pairs are connected by arcs and some by edges.

The question of whether a circuit exists in a graph which visits each node in exactly once is commonly referred to as that of determining the existence of a Hamiltonian circuit (or path; cf. also Hamiltonian tour). Graphs for which such a circuit (path) is guaranteed to exist are called Hamiltonian graphs.

The difficulty of determining the existence of a Hamiltonian circuit for a graph and that of constructing a cost-minimizing travelling salesman circuit on a graph are very much the same when measured by the worst possible order magnitude of the required number of computer operations. This casts these problems (the travelling salesman and the Hamiltonian circuit problems) as being "hard" (cf. also ). Essentially, for this sort of problems, one does not presently (2000) know of any solution scheme which does not require some sort of enumeration of all possible "configuration" sequences.

See [a1], [a2] for recent overviews of the problem.

#### References

 [a1] "The traveling salesman problem" E.L. Lawler (ed.) J.K. Lenstra (ed.) A.H.G. Rinnoy Kan (ed.) D.B. Shmoys (ed.) , Wiley (1985) [a2] H. Fleishner, "Traversing graphs: The Eulerian and Hamiltonian theme" M. Dror (ed.) , Arc Routing: Theory, Solutions, and Applications , Kluwer Acad. Publ. (2000)
How to Cite This Entry:
Travelling salesman problem. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Travelling_salesman_problem&oldid=12820
This article was adapted from an original article by Moshe Dror (originator), which appeared in Encyclopedia of Mathematics - ISBN 1402006098. See original article