Professional Documents
Culture Documents
Missionaries and Cannibals Problem Vipin Singh
Missionaries and Cannibals Problem Vipin Singh
Problem Statement:
In the Missionaries and Cannibals problem, three missionaries and three cannibals must cross a
river using a boat which can carry at most two people, under the constraint that, for both banks, if
there are missionaries present on the bank, they cannot be outnumbered by cannibals (if they were,
the cannibals would eat the missionaries). The boat cannot cross the river by itself with no people on
board.
Solution Approach:
The problem can be solved by careful planning of the trips across the river ensuring that at no point
do the cannibals outnumber the missionaries on either side. A sequence of moves that leads to a
solution is as follows:
At this point, all three cannibals and missionaries have successfully crossed the river without