A delivery driver has twenty stops and one truck. A circuit board needs a drill to hit a thousand holes. A tourist wants to see ten sights in a day and get back to the hotel. All of them face the same question: what's the shortest route that visits every place once and returns to the start?
That's the Traveling Salesman Problem (TSP) â maybe the most famous hard problem of all. It sounds almost trivial: just try the possible orders and pick the shortest. But the orders multiply factorially. Ten cities have over 180,000 routes; twenty cities have more routes than there are grains of sand on Earth; sixty cities outrun the atoms in the universe.
So you can't just check them all. TSP is NP-hard, and along with its cousins on this site it's a poster child for combinatorial explosion. The twist that keeps the world moving: even though the perfect tour is out of reach for big maps, clever methods get astonishingly close â within a few percent of optimal â fast.
Comments
Loading comments...