2
$\begingroup$

In how many ways can you travel from city $A$ to city $B$ (see figure) without visiting any city twice if

a) you choose the shortest route,

b) you want to visit all cities along the way (dots in the picture),

c) choose any route.

Ad a) I think that the shortest ways are the ones with $10$ cities along the way and the answer is $11$.

Ad b) There is only one route including all the cities.

Ad c) I do not know how to deal with this one.

$\endgroup$
2
  • $\begingroup$ c) is probably $2^{10}$ $\endgroup$
    – Kenta S
    Nov 30, 2019 at 17:36
  • $\begingroup$ Could you explain why it is so? What do you think about a) and b)? $\endgroup$
    – Uhans
    Nov 30, 2019 at 17:41

1 Answer 1

1
$\begingroup$

For $c$ you can specify the path by choosing which vertical bars you traverse. You start from $A$ and go up if you have chosen to traverse the bar. Then you go right and at each stage you traverse the bar or not and go right again. There are $11$ to choose from and you must choose an odd number so you wind up at $B$. There are $2^{10}$ choices. One way to see that is that you can choose any combination of the first $10$ verticals, then whether you use the last one is determined by the requirement that you use an odd number.

$\endgroup$
4
  • $\begingroup$ There are 11 vertical bars. You have no choice on the last one, but a choice on each of the first 10. So $2^{10}$. [Also check for 2 bars: 2 routeses; 3 bars, 4 routes.] $\endgroup$
    – almagest
    Nov 30, 2019 at 17:53
  • $\begingroup$ Thank you. Now I understand that the answer is $2^{10}$ routes. What with a) and b)? $\endgroup$
    – Uhans
    Nov 30, 2019 at 18:00
  • $\begingroup$ You had correct answers for a and b, which is why I skipped them. $\endgroup$ Nov 30, 2019 at 18:20
  • $\begingroup$ Ok, thank you very much. $\endgroup$
    – Uhans
    Nov 30, 2019 at 18:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .