Three missionaries and three cannibals
product-puzzle case · difficulty 3/5 · 15 minutes · other
Prompt
Three missionaries and three cannibals are on one bank of a river. They have a boat that carries at most two people. On either bank, if there is at least one missionary there, the cannibals must never outnumber the missionaries. How can everyone cross the river?
Context
A classic interview puzzle. Core idea: State-space search avoiding invalid states. Talk through your reasoning; the interviewer cares as much about structure as about the answer.
Clarifying questions
- Who can row?
- Anyone can row, the boat carries one or two people, and the rule applies only where at least one missionary is present. Cannibals alone are harmless.
Recommendation
**Answer:** 11 crossings, which is the minimum for three of each with a two-person boat. **Why:** The safety rule forces careful balancing at each step, and a search over the small number of valid states shows that the shortest path is 11 trips.
Risks
- Letting cannibals outnumber missionaries on a bank that has missionaries
- Forgetting that someone must bring the boat back
Next steps
- Try four of each with a boat for two (impossible) and with a boat for three (9 trips)
- Solve the fox, goose and grain puzzle by the same method