Christmas Streak 14/88: Safely Cross The River

Logic Level 5

There are three cannibals and three missionaries--all distinguishable (looking different)--on one side of the river.

They have only 1 boat, which needs one person to operate it and can carry up to 2 people including the operator at a time. If, on either side of the river, the number of cannibals exceeds that of missionaries, the cannibals will eat them up.

In order for all of the cannibals and missionaries to successfully cross the river, the boat needs to make at least k k trips, and there are n n ways of doing so ( ( with k k trips ) . ).

Find the value of k n . kn.


This problem is a part of <Christmas Streak 2017> series .


The answer is 89100.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Mark Hennings
Oct 11, 2017

That k = 11 k=11 is a well-known result. If ( c , m ) (c,m) represents the state where there are c c cannibals and m m missionaries on the starting bank, we need to move from state ( 3 , 3 ) (3,3) to state ( 0 , 0 ) (0,0) . If the cannibals and missionaries are indistinguishable (except, of course, as being cannibals or not), there are exactly 4 4 ways of making the trip in k = 11 k=11 moves, shown in the diagram below:

Since the cannibals and missionaries are distinguishable, each leg of the journey can be achieved in a number of ways, and these are indicated by the red weights on each leg. For example, to move from ( 3 , 3 ) (3,3) to ( 2 , 2 ) (2,2) , one cannibal and one missionary need to be chosen out of a choice of three of each, and this can be done in 9 9 ways. Thus n = ( 9 × 1 + 3 × 2 ) × 1 × 3 × 3 × 4 × 1 × 1 × 3 × ( 3 × 1 + 2 × 1 ) = 8100 n \; = \; (9 \times 1 + 3 \times2)\times1\times3\times3\times4\times1\times1\times3\times(3\times1 + 2\times1) \; = \; 8100 making the answer 11 × 8100 = 89100 11 \times 8100 = \boxed{89100} .

Why ( 1 , 2 ) (1,2) is not shown after ( 2 , 3 ) (2,3) point above picture? I think it's also a possible way.

Md Mehedi Hasan - 3 years, 5 months ago

Log in to reply

(1,2) is not an acceptable state. There are more cannibals than missionaries on the other bank!

Mark Hennings - 3 years, 5 months ago

Log in to reply

Then how (0,3) is possible? because then their remains 3 cannibals in other bank where no any missionaries.

Md Mehedi Hasan - 3 years, 5 months ago

Log in to reply

@Md Mehedi Hasan They have nobody to eat...

Mark Hennings - 3 years, 5 months ago

Log in to reply

@Mark Hennings I see. The cannibals don't eat themselves. They only eat the missionaries when missionaries is fewer than the cannibals. Am I right now?

Md Mehedi Hasan - 3 years, 5 months ago
Boi (보이)
Oct 11, 2017

Consider the grid above. C represents the cannibals, and M represents the missionaries.

The grid shows how many cannibals and missionaries are on the starting riverside.

Since there shouldn't be more cannibals than missionaries, ( 2 , 1 ) , ( 3 , 1 ) , (2,~1),~(3,~1), and ( 3 , 2 ) (3,~2) should be removed.

And since there shouldn't be more cannibals than missionaries on the other side too, ( 1 , 2 ) , ( 1 , 3 ) , (1,~2),~(1,~3), and ( 2 , 3 ) (2,~3) should be removed.


When the boat is going away from the starting riverside, only the moves depicted above is possible.

And when the boat is returning to the starting riverside, only the moves depicted above is possible.

When crossing to the other side, we can easily find out that the dotted line and the normal line should be used alternatively.


Knowing that, and after trying some moves, we notice that the above moves are compulsory to move from the right area to the left area.

Let's draw this to calculate the number of cases.

C C M M M C M M M C C C 3 ways to select one C C M M M C C 3 ways to select two M’s C M C C M M 4 ways to select one C and one M C C M M C M C C C M M M C C C M M M 3 ways to select two C’s C C C M M M \begin{aligned} \color{#D61F06}CC\color{#333333}MMM & | C\\\\ MMM & | CC\color{#D61F06}C & \small \color{#3D99F6}\text{3 ways to select one C}\\\\ CM\color{#D61F06}MM &| CC & \small \color{#3D99F6}\text{3 ways to select two M's}\\\\ CM &| C\color{#D61F06}C\color{#333333}M\color{#D61F06}M & \small \color{#3D99F6} \text{4 ways to select one C and one M}\\\\ CC\color{#D61F06}MM &| CM \\\\ CC &| \color{#D61F06}C\color{#333333}MMM \\\\ C\color{#D61F06}CC &| MMM & \small \color{#3D99F6} \text{3 ways to select two C's}\\\\ C &| CCMMM \end{aligned}

So the compulsory path has 3 × 3 × 4 × 3 = 108 3\times 3\times 4\times 3=108 cases.


Then all we have to do is start from ( 3 , 3 ) (3,~3) and arrive to ( 2 , 3 ) (2,~3) using dotted line in the end.

Then we see that there are two possible cases.

C C C M M M 9 ways to select one C and one M C C M M C M C C M M M C \begin{aligned} CC\color{#D61F06}C\color{#333333}MM\color{#D61F06}M & | &\small \color{#3D99F6}\text{9 ways to select one C and one M}\\\\ CCMM &| C\color{#D61F06}M \\\\ CCMMM &| C \end{aligned}

9 cases possible.


C C C M M M 3 ways to select two C’s C M M M C C 2 ways to select one C C C M M M C \begin{aligned} C\color{#D61F06}CC\color{#333333}MMM &| &\small \color{#3D99F6} \text{3 ways to select two C's}\\\\ CMMM &| C\color{#D61F06}C &\small \color{#3D99F6} \text{2 ways to select one C}\\\\ CCMMM &| C \end{aligned}

6 cases possible.


So there are 15 ways to go from ( 3 , 3 ) (3,~3) to ( 2 , 3 ) . (2,~3).

Using the same method, there are 5 ways to go from ( 1 , 0 ) (1,~0) to ( 0 , 0 ) . (0,~0). (Note that it's not symmetrical!)

Therefore, there are a total of 5 × 108 × 15 = 8100 5\times 108\times 15=8100 ways to cross the river, and it takes 11 11 moves.

n k = 11 × 8100 = 89100 . \therefore~nk=11\times8100=\boxed{89100}.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...