Boating Cross Paheli

Logic Level 3

3 cannibals and 3 missionaries have to move to the other side of the river. There is a single boat which can accommodate at most 2 passengers at a time. What is the minimum number of times the boat have to cross the river?

Details and Assumptions :

  • The boat couldn't travel empty.

  • When there is on one side, more cannibals than missionaries, they eat them.

  • When the boat is docked, all the cannibals will want to alight to eat the missionaries if possible.


The answer is 11.

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.

1 solution

Ritwik Rudra
Jun 3, 2015

[ BANK 2 - BOAT - BANK 1 ]

INITIALLY

[ 0C 0M - 0C 0M - 3C 3M] ;

cross 1- '1 cannibal 1 missionary' [0C 0M - 1C 1M - 2C 2M] ;

cross 2- '1 missionary' [1C 0M - 0C 1M - 2C 2M] ;

cross 3- '2 cannibals' [1C 0M - 2C 0M - 0C 3M] ;

cross 4- '1 cannibal' [2C 0M - 1C 0M - 0C 3M] ;

cross 5- '2 missionaries' [2C 0M - 0C 2M - 1C 1M

]XXXXXXXXXXXXXXXXXXXXXX

cross 6- '1cannibal 1 missionary' [1C 1M - 1C 1M - 1C 1M ];

cross 7- '2 missionaries' [1C 1M - 2M 0C - 2C 0M ];

cross 8- '1 cannibal' [0C 3M - 1C 0M - 2C 0M ];

cross 9- '2 cannibals' [0C 3M - 2C 0M - 1C 0M ];

cross 10-' 1 cannibal' [1C 3M - 1C 0M - 1C OM ];

cross 11- '2 cannibals' [1C 3M - 2C 0M - 0C 0M ];

FINALLY [3C 3M - 0C 0M - 0C 0M ] ;

I didn't understand.. They are only 3 missionaries and 3 cannibals and in your solution you have more than 6???????????how????

Vishesh Bansal - 6 years ago

Log in to reply

cccmmm (bank 1) ->cc(on boat)................1st cross c (bank 2) -> c (boat)................................2nd cross [return] ccmmm (bank 1) -> cc (boat)....................3rd cross cc (bank 2) -> c (boat)..............................4th cross [return] cmmm (bank 1 -> mm (boat).....................5th cross cm (bank 2) -> cm (boat)...........................6th cross [return] ccmm (bank 1) -> mm (boat)......................7th cross mmm (bank 2) -> c (boat)...........................8th cross [return] ccc (bank 1) -> cc (boat)............................9th cross cmmm (bank 2) -> c(boat)..........................10th cross [return] cc (bank 1) -> cc(boat)...............................11th cross finally cccmmm on bank 2

Anjali Chaudhary - 5 years, 8 months ago

you have copied this question from the game river crossing IQ 2 then you should have at least given credit to the game in the Question

Ishaan Panda - 5 years, 12 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...