Nepedia
Back to Discover
Developing Reader
🔢

Travelling salesman problem

math Maturity 11-13 Next article →

Imagine you have a list of cities.

Illustration of an unsolved travelling salesman problem
Illustration of an unsolved travelling salesman problem

You want to visit every city. You must go to each one just once. Then, you must go back to where you started. You want to find the shortest path. This saves time and money.

GLPK solution of a travelling salesman problem
GLPK solution of a travelling salesman problem

This is a hard puzzle to solve. People use it to plan bus routes. It also helps machines make tiny computer chips. Scientists even use it to study stars. Finding the best way is a big job for computers.

81 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (11)
File:Illustration of an unsolved travelling salesman problem.svg
Illustration of an unsolved travelling...
File:GLPK solution of a travelling salesman problem.svg
GLPK solution of a travelling salesman problem.svg
File:William Rowan Hamilton painting.jpg
William Rowan Hamilton painting.jpg
File:Weighted K4.svg
Weighted K4.svg
File:Bruteforce.gif
Bruteforce.gif
File:Branchbound.gif
Branchbound.gif
File:Nearestneighbor.gif
Nearestneighbor.gif
File:Creating a matching.svg
Creating a matching.svg
File:UbMjAyAmQrSwtP0gdeKe matchingshortcut.svg
UbMjAyAmQrSwtP0gdeKe matchingshortcut.svg
File:Showing a step of the two-opt heuristic.svg
Showing a step of the two-opt heuristic.svg
File:AntColony.gif
AntColony.gif
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.