Skip to content

Travelling salesperson

puzzles

Level 3 of 3

Also called The travelling salesman problem and Exhaustive search in Steinhaus-Johnson-Trotter order.

fresh numbers

The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from travelling salesperson's own run on the numbers shown.

choose one

question 1

How many orders does the method try on this map of 6 places, from F?

99729ABCEFG
the answer, and why

the answer is C

The start stays first, and the other 5 places go in every order: 5!5!, which is 120.

if you chose another

  • That is 6!6!, which moves the start too. The start never moves.
  • That is one order for each place.
  • That is half of 120, the different round trips. The method tries each trip both ways.

new numbersthe test page's numbers

question 2

How many legs does the method add up on this map?

6626167BCEFGH
the answer, and why

the answer is C

120 orders, each a round trip of 6 legs. 120 times 6 is 720, which is 6!6!.

if you chose another

  • That is the orders. Each order adds up 6 legs.
  • That is the legs of one round trip.
  • That is 6 legs in each of 6 orders, as if there were one order per place. There are 120.

new numbersthe test page's numbers