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 4 places, from B?

43844ABFG
the answer, and why

the answer is B

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

if you chose another

  • That is 4!4!, which moves the start too. The start never moves.
  • That is one order for each place.
  • That is half of 6, 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?

39953BDEFG
the answer, and why

the answer is B

24 orders, each a round trip of 5 legs. 24 times 5 is 120, which is 5!5!.

if you chose another

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

new numbersthe test page's numbers