CURIUM
How many different routes can a delivery driver take to visit 20 cities?

Travelling salesman problem

How many different routes can a delivery driver take to visit 20 cities?

More than sixty million billion. Each extra city multiplies the number of possible tours instead of merely adding to it. A computer testing a million of them per second would need nearly two thousand years.

MathsApplied mathematics

The three levels

Beginner

How many different routes can a delivery driver take to visit 20 cities?

More than sixty million billion. Each extra city multiplies the number of possible tours instead of merely adding to it. A computer testing a million of them per second would need nearly two thousand years.

Intermediate

How do you find a good delivery round without trying every possibility?

You settle for a nearly perfect tour, found by heuristics. The simplest always heads for the nearest city not yet visited; on randomly placed cities, it gives a route about 25% longer than the best. Modern methods get within 2 or 3% of the optimum, even with millions of points.

Expert

Why would a fast algorithm for the travelling salesman be worth a million dollars?

Because the question "is there a tour shorter than so many kilometres?" is NP-complete. An exact, fast algorithm for it would give one for every problem in the class NP, and would settle the P versus NP question, one of the seven Millennium Prize Problems offered by the Clay Institute.