Travelling salesperson
Level 3 of 3
Also called The travelling salesman problem and Exhaustive search in Steinhaus-Johnson-Trotter order.
Finds the shortest round trip that leaves the start, visits every other place once and comes back, each leg taking the shortest way along the roads, through other places where that is shorter. Try every order of the places, each made from the one before by swapping two neighbouring stops, and keep a trip until a shorter one turns up.
- orders tried
- 0
- legs added up
- 0
step 1 of 1
Examples