Skip to content
Home

Travelling Salesman Problem (TSP)

The Travelling Salesman Problem (TSP) is a foundational combinatorial optimization problem that asks for the shortest possible route visiting each node once and returning to the start.

Overview

The Travelling Salesman Problem (commonly abbreviated TSP) asks: given a list of locations and distances between every pair, what is the shortest possible route that visits each location exactly once and returns to the starting point? TSP is a central example in algorithm design and computational complexity because it is easy to state yet hard to solve optimally for large instances. It appears in graph form, where the locations are vertices and travel costs are edge weights, and is widely studied in computer science and operations research.

Image gallery

7 Images

Key characteristics

TSP instances can be symmetric or asymmetric: symmetric TSP has distances that satisfy d(u,v)=d(v,u); asymmetric TSP does not. Special cases arise when distances obey the triangle inequality, such as Euclidean distances in the plane. Solutions are Hamiltonian cycles in a weighted graph, and the objective is to minimize total weight. The naive exact approach checks all permutations of vertices, which is factorial in complexity and impractical beyond very small sizes.

Historical development

The roots of TSP go back to recreational and mathematical puzzles of the 19th century, including work on Hamiltonian cycles. Formal study advanced in the early 20th century. Mathematicians and practitioners in Vienna and at Harvard investigated the problem in the 1930s. The name "travelling salesman problem" became common in mid-20th-century literature. Early work examined brute-force enumeration and simple heuristics such as the nearest-neighbour rule, noting their limitations for guaranteeing optimality. For further historical notes see materials linked through academic surveys and archives, for example historical overview and classic papers.

Algorithms and approaches

Exact algorithms include dynamic programming methods and branch-and-bound or cutting-plane techniques; these can solve moderate-sized instances optimally. Approximation and heuristic strategies are essential for larger problems. Common heuristics and metaheuristics include nearest neighbour, greedy insertion, 2-opt and 3-opt local improvement, simulated annealing, genetic algorithms, and ant colony optimisation. For metric TSP (triangle inequality), polynomial-time approximation schemes or constant-factor approximations exist in specialized settings. Practical implementations often combine fast heuristics with rigorous improvement phases; see algorithmic surveys and repositories at algorithm collections and research portals.

Applications and examples

Although called a "salesman" problem, TSP models many real-world routing and sequencing tasks: vehicle routing and logistics planning, circuit board drilling, DNA sequencing assembly, and scheduling. In applied settings the pure TSP is often extended with constraints (time windows, capacities, precedence), leading to richer vehicle routing problems. Simple instances—such as a dozen cities on a map—are useful for teaching algorithms, while large practical cases require tailored heuristics and engineering.

Notable facts and distinctions

  • TSP is NP-hard in its decision and optimisation forms; no polynomial-time algorithm is known for the general case.
  • Special cases like planar Euclidean TSP allow stronger approximation results and practical solvers that perform well on large inputs.
  • Research combines theory (complexity, approximability) and practice (fast solvers, benchmark libraries); see community resources at benchmark archives and software galleries.

Because of its clear formulation and wide applicability, TSP remains a benchmark problem: progress in algorithms or computational power often shows up first in improved TSP solutions, making it a persistent focus of both theoretical inquiry and applied optimisation.

Questions and answers

Q: What is the Traveling Salesman Problem?

A: The Traveling Salesman Problem (TSP) is a classic algorithmic problem in the field of computer science and operations research. It focuses on optimization, with better solutions often meaning cheaper, shorter, or faster solutions.

Q: How is TSP expressed?

A: TSP is most easily expressed as a graph describing the locations of a set of nodes.

Q: Who first defined the TSP?

A: The traveling salesman problem was defined in the 1800s by the Irish mathematician W. R. Hamilton and by the British mathematician Thomas Kirkman.

Q: Who studied it further during the 1930s?

A: During the 1930s, mathematicians Karl Menger at Vienna and Harvard studied it further.

Q: What did Hassler Whitney introduce soon after?

A: Hassler Whitney at Princeton University introduced the name "traveling salesman problem" soon after its definition.

Q: What does "better solution" mean in this context?

A: In this context, better solution often means a solution that is cheaper, shorter, or faster.

Q: What algorithm was considered obvious by Menger when studying TSP?

A:Menger considered an obvious brute-force algorithm when studying TSP and observed that using nearest neighbor heuristic does not always yield optimal results.

Related articles

Author

AlegsaOnline.com Travelling Salesman Problem (TSP)

URL: https://en.alegsaonline.com/art/101255

Share

Sources
  • universalteacherpublications.com : "Travelling Salesman Problem, Operations Research"
  • homepages.cwi.nl : PS
  • homepages.cwi.nl : PDF
  • math.uwaterloo.ca : "Optimal TSP tours"