Day 119 · Apr 28

The Travelling Salesman Problem

Imagine a salesperson standing before a map filled with cities. The challenge sounds straightforward: Visit every city exactly once. Travel the shortest possible route. Then return home. Easy enough for a few cities. But something terrifying happens as the number grows. The possible routes explode exponentially. With 5 cities, there are manageable possibilities. With 10, the combinations become enormous. With 50, brute-force checking becomes practically impossible even for powerful computers. The travelling salesman problem became one of mathematics and computer science’s most famous optimization puzzles. What makes it fascinating is the contrast between simplicity and difficulty. The question itself can be explained to a child. Yet solving it efficiently remains extraordinarily hard. The problem belongs to a family of challenges known as NP-hard problems — puzzles where solutions can be verified quickly, but discovering the best solution may require immense computation. Modern civilization encounters versions of this constantly. Delivery companies optimize routes. Airlines schedule flights. Microchips arrange circuits. GPS systems search for efficient paths. Even biology sometimes resembles optimization mathematics. Nature itself appears to search for efficient structures repeatedly. The travelling salesman problem reminds humanity of something humbling: Some questions become unimaginably complex even when their rules remain simple. And sometimes the shortest path through the world is far harder to discover than expected.

Why does adding just a few cities make the problem explode in complexity?

Practice related topics on DuelMath

Challenge someone →