Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws

The Traveling Salesman Problem

also known as — TSP, The shortest-tour problem
"Find the shortest route that visits every city once and returns home; it is easy to state and famously hard to solve."
In plain English

What does The Traveling Salesman Problem mean?

The traveling salesman problem asks, given a list of cities and the pairwise distances between them, for the shortest possible route that visits each city exactly once and returns to the starting city, a minimum-weight Hamiltonian cycle. Simple to state, it is one of the most intensively studied problems in combinatorial optimization and a canonical example of computational hardness: its decision form is NP-complete and its optimization form NP-hard, so no polynomial-time exact algorithm is known, and finding one would resolve P versus NP. Despite this worst-case difficulty, sophisticated methods and heuristics solve enormous real instances in practice.

Reliability

Rated Empirical: grounded in studies or measurable evidence. The other 608.

How it works

How does The Traveling Salesman Problem work?

Brute force checks every ordering of the cities, taking time on the order of n factorial, hopelessly slow beyond small sizes. The Held-Karp dynamic-programming algorithm solves it exactly in time proportional to n squared times two to the n, better than n factorial but still exponential. Because the general problem cannot be approximated within any constant factor unless P equals NP, practical guarantees rely on structure: for metric instances, where distances satisfy the triangle inequality, the Christofides-Serdyukov algorithm guarantees a tour at most one and a half times the optimal, and a 2020 result nudged that ratio slightly below three-halves. In everyday use, heuristics like nearest-neighbour, 2-opt, and Lin-Kernighan produce near-optimal tours quickly.

Where you'll see it

What are examples of The Traveling Salesman Problem?

In the wild · Nov 2026 On 25 November 2026 Masayuki Miyamoto of the University of Tsukuba posted a preprint claiming a quantum algorithm that finds the shortest tour in O*(1.70961^n) time, down from the O*(1.7274^n) bound Ambainis and colleagues set in 2018; it has not yet been peer reviewed. Even if it holds, every added city still multiplies the work by about 1.71, the exponential growth the problem is known for. Miyamoto, arXiv:2611.33730, 25 Nov 2026
In the wild · Nov 2026 In November 2026 a Biological Cybernetics paper by Kazuhiro Sakamoto and colleagues in Sendai gave each city its own oscillator, set them repelling each other by distance, and read the tour off the order the oscillators settled into; small and specially built instances, up to 50 cities, settled on the shortest tour. The hard part showed up exactly where the problem says it should: convergence got slower as cities were added, map-like 8 and 9 city layouts settled on very good tours rather than always the best one, and 50 cities with random distances did not settle on the shortest tour in the time simulated. Sakamoto et al., Biological Cybernetics, 7 Nov 2026
Christofides For metric instances the Christofides-Serdyukov algorithm of 1976 guarantees a tour no more than one and a half times the shortest, the classic approximation result.
Solving huge instances exactly The Concorde solver, using cutting planes and branch-and-bound, has found provably optimal tours through tens of thousands of cities, including an instance of 85,900 points.
Karp's reduction The traveling salesman problem was among the twenty-one problems Richard Karp proved NP-complete in 1972 by reduction from Boolean satisfiability.
Types & variants

What are the types of The Traveling Salesman Problem?

Metric and Euclidean TSP§

Special cases in which distances obey the triangle inequality, or are straight-line distances in the plane, which admit constant-factor approximations the general problem does not.

Symmetric versus asymmetric§

Whether the distance from one city to another equals the reverse, distinguishing the symmetric problem from the harder asymmetric one.

Why it matters

Why does The Traveling Salesman Problem matter?

The traveling salesman problem is the archetypal NP-hard optimization problem and a central benchmark for the entire field of combinatorial optimization, spurring the development of cutting-plane methods, branch-and-bound, approximation algorithms, and metaheuristics. Its applications are everywhere routes and orderings matter, from logistics and vehicle routing to drilling circuit boards, sequencing DNA, and scheduling telescope observations.

Working with it

How do you apply The Traveling Salesman Problem?

  • Recognise the hardness — treat the traveling salesman problem as NP-hard, with no known polynomial-time exact algorithm, so exact solving is exponential in the worst case.
  • Exploit structure — use the triangle inequality of metric instances to get constant-factor approximations, such as Christofides's one-and-a-half guarantee.
  • Lean on heuristics — in practice apply nearest-neighbour, 2-opt, or Lin-Kernighan to get near-optimal tours quickly, since worst-case hardness rarely bites real instances.
Where it breaks down

What are the limits of The Traveling Salesman Problem?

NP-hardness is a worst-case statement, so it does not mean every instance is hard, and large instances are routinely solved, exactly with methods like the Concorde solver and approximately with heuristics on millions of nodes. The strong approximation results apply only to structured cases: the general problem cannot be approximated within any constant factor unless P equals NP, and Christofides's guarantee requires the triangle inequality. Exact algorithms remain exponential in the worst case, so scaling depends on instance structure rather than a universal fast method, and the P-versus-NP question the problem embodies is still open.

What it doesn't say

What are common misconceptions about The Traveling Salesman Problem?

NP-hard does not mean unsolvable; it means no polynomial-time exact algorithm is known, while instances are still solved, just at exponential worst-case cost. Large instances are solved in practice, both exactly and approximately, so the problem is not hopeless. The one-and-a-half approximation applies only to metric instances with the triangle inequality, not to the general problem, which resists any constant-factor approximation unless P equals NP. And the earliest documented use of the phrase traveling salesman problem is a 1949 report, though the problem was studied earlier by Menger and others.

Is it real?

Is The Traveling Salesman Problem real?

Yes, as far as the evidence goes. The Traveling Salesman Problem is rated Empirical here: it rests on studies or measurements rather than on a saying.

Rated from two sources. 609 of the 1,116 entries carry this rating. How the scale works.

Widely printedin printed books: one of 99 names in its band, of 903 measured
36 of 69entries in software & systems carry the same rating

The best-known laws are the least likely to rest on measurement.

Origin

Where did The Traveling Salesman Problem come from?

Brought to mathematicians by Karl Menger around 1930 as the messenger problem, formulated as an integer program with the cutting-plane method by Dantzig, Fulkerson, and Johnson in 1954, and proved NP-complete via Karp's 1972 reductions.

How the name spread

When did people start saying “The Traveling Salesman Problem”?

18002019
How often “Traveling Salesman Problem” appears in printed English, which takes hold around 1960 and peaks around 2005. This tracks the phrase and not the idea. A law is usually older than the name for it. Source: Google Books Ngrams.
Sources

Sources & further reading

  1. 1Travelling salesman problem, Wikipedia. — the definition, NP-hardness, Held-Karp, and the heuristics and exact solvers.secondary
  2. 2Christofides algorithm, Wikipedia. — the one-and-a-half approximation for metric TSP.secondary

Everything above traces to two pages on en.wikipedia.org: both secondary, accounts of the original rather than the original itself, which has not been located for this entry. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.

What we checked

  • 1,116entries in the tomeListed one by one on the browse page.
  • 1,116of them citing a sourceOpen any entry: its sources sit at the foot of the page.
  • 2,489source references in allEach is named, and linked wherever the source is online.