Visit five cities and come home by the shortest route. Simple to state, brutal to solve

A salesman must visit a handful of cities exactly once each and return to where he started, covering the shortest total distance. For a handful of cities you can just check every possible order; the question is what happens as the city count grows, and whether any shortcut method could ever reliably beat brute-force checking.

Reveal the answer

For small cases, trying every route and comparing total distances works fine, but the number of possible routes grows factorially: ten cities already have over 180,000 distinct routes to check. First studied formally by Karl Menger in 1930, the travelling salesman problem became one of the clearest examples of 'NP-hard': no algorithm is known that solves every instance efficiently as cities scale up, and finding one (or proving none exists) remains an open question at the heart of computer science.

— Karl Menger, Travelling Salesman Problem — 1930, formalised further by Hassler Whitney and Merrill Flood in the 1940s

One credited idea per card. No filler. Swipe the rest in Savvy.

Keep swiping — it's free Works right in your browser. No app store needed.

More Puzzles

All Puzzles cards →

Five ideas worth knowing, every week

The week's best cards and a puzzle, credited as always. Free, unsubscribe any time.