Skip to content

Travelling salesperson

puzzles

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

Tap a spot to put your pen down there, then tap a spot next to it to draw a road. Keep tapping to draw on.

Places stand in two rows, A to D above and E to H below, at most 6 of them on roads. A road joins two places next to each other (one road across each square), with its length from 1 to 99: A-B 4. Separate roads with commas, then a semicolon and where to start: A-B 4, B-F 3, F-E 5, E-A 2; A.