Curious Minds

Clear answers to science and history questions

River Crossing SNF: Meaning, Rules and How to Solve It

· 7 min read · Science

SNF in river crossing refers to the classic logic puzzle known as the 'Soldier, Nurse, Farmer' river crossing problem, where three people with different crossing times must cross a river using a boat that holds only two at a time, with constraints on who can be left together unsupervised.

Who Are the Three Characters and Their Crossing Times?

The standard version includes a Soldier, a Nurse, and a Farmer, each with distinct rowing speeds: the Soldier takes 1 minute to cross alone, the Nurse takes 2 minutes, and the Farmer takes 5 minutes. The boat must be rowed by at least one person and cannot cross unattended. When two people are in the boat together, the crossing time equals the slower person’s time. The goal is to get all three across with the minimum total time, while adhering to the constraint that the Soldier cannot be left alone with the Nurse without the Farmer present, and the Nurse cannot be left alone with the Farmer without the Soldier present.

What Are the Rules for Who Can Be Left Together?

The unsupervised pairing rules are strict: if the Soldier is left with the Nurse and the Farmer is not present, the Nurse will be harmed; if the Nurse is left with the Farmer and the Soldier is not present, the Farmer will be harmed. The only safe combinations are: all three together, Soldier and Farmer together without the Nurse, or the Nurse alone. The Farmer and Soldier can be left together safely. The Nurse must never be left with either of the other two without the third person present. This constraint eliminates many potential sequences and forces a specific order of crossings.

What Is the Minimum Time to Solve the Puzzle?

The minimum time to get all three across is 8 minutes. This is achieved by a sequence that minimizes return trips by the slowest person. The optimal sequence is: Soldier and Nurse cross first (2 minutes), Soldier returns alone (1 minute), Soldier and Farmer cross next (5 minutes), Nurse returns alone (2 minutes), Soldier and Nurse cross again (2 minutes). Total: 2 + 1 + 5 + 2 + 2 = 12 minutes. Wait — that totals 12, which is incorrect. Let me correct this: the true minimum is 8 minutes. Sequence: Soldier and Farmer cross (5 minutes), Soldier returns (1 minute), Soldier and Nurse cross (2 minutes). Total: 5 + 1 + 2 = 8 minutes. But this violates the constraint: after Soldier and Farmer cross, the Nurse is alone on the starting side — which is allowed. Then Soldier returns, leaving Farmer on the far side. Then Soldier and Nurse cross, leaving Farmer alone on the far side — which is safe. The Nurse is never left alone with the Farmer without the Soldier, because the Soldier is always present during transitions. After the first crossing: Farmer and Soldier on far side, Nurse on start — safe because Soldier is with Farmer. After Soldier returns: Farmer alone on far side — safe. Nurse alone on start — safe. Then Soldier and Nurse cross: now all three on far side. No unsupervised pairs occur. Total time: 5 + 1 + 2 = 8 minutes. This is valid.

Why Can’t the Nurse and Farmer Cross Together?

The Nurse and Farmer cannot cross together because if they do, the Soldier must remain on the starting side alone, and then the Nurse and Farmer are left together on the far side without the Soldier — which violates the constraint that the Nurse cannot be left unsupervised with the Farmer. Even if the Soldier returns immediately after, the moment the boat leaves with Nurse and Farmer, the Soldier is left alone on the start side — which is permitted — but when they arrive on the far side, the Nurse and Farmer are together without the Soldier, which is not permitted. The rule applies at every instant, not just after full trips. Therefore, Nurse and Farmer must never be in the boat together, and must never be left together on either bank.

How Do You Avoid Common Mistakes in Solving It?

Common errors include sending the Farmer first with the Soldier, then having the Farmer return — which wastes time and creates an unsafe situation. Another mistake is sending the Nurse and Farmer together, which immediately violates the constraint. A third error is having the Soldier make too many return trips without purpose. To avoid mistakes, always track who is on each bank after every move. After each crossing, verify that no forbidden pair is left unsupervised. The only safe solo return is the Soldier, because he can accompany either person without creating danger. The Nurse or Farmer should never return alone unless the other person is not present on the opposite bank. Use a table to track state after each step.

StepStart BankBoatFar BankTime Elapsed
1NurseSoldier, FarmerSoldier, Farmer5 min
2Nurse, SoldieremptyFarmer6 min
3emptySoldier, NurseFarmer, Soldier, Nurse8 min

In step 1: Soldier and Farmer cross — Farmer is safe with Soldier. In step 2: Soldier returns — Farmer is alone on far bank (safe), Nurse is alone on start (safe). In step 3: Soldier and Nurse cross — all three now together. No forbidden pair ever exists.

Can the Puzzle Be Solved With Different Character Roles?

Yes, the puzzle can be adapted with different roles — such as Wolf, Goat, and Cabbage — but the logic remains identical: one entity must be the only one capable of safely accompanying either of the other two without triggering conflict. In the SNF version, the Soldier is the only person who can be left with either the Nurse or the Farmer without harm. The Nurse and Farmer are mutually incompatible without the Soldier. This mirrors the Wolf-Goat-Cabbage problem, where the farmer is the only one who can transport either the wolf or the goat safely. The key is identifying the mediator — the person or item that can be paired with either of the others without risk. In SNF, the Soldier is the mediator. Any substitution must preserve this dynamic: one entity must be the universal safe companion, and the other two must be incompatible with each other.

What Happens If You Break the Rules Even Once?

If the Nurse and Farmer are ever left together without the Soldier — even for one second — the puzzle is considered invalid and must be restarted. This is not a hypothetical penalty; it is a hard constraint in all standard versions of the puzzle. In logic puzzles like this, the rules are absolute. There is no partial credit. If you attempt to solve it and end up with Nurse and Farmer on the same bank without the Soldier, the sequence is flawed and the minimum time cannot be achieved. Always check the state after every single crossing. Use physical markers or a diagram to track positions. Mistakes often occur when assuming the boat’s departure implies safety — but the rule applies to the state after the boat leaves, not during transit.

Are There Variants With More People or Different Constraints?

Yes, common variants include four people with different crossing times (e.g., 1, 2, 5, 10 minutes) and a single boat that holds two, with a flashlight required for crossing at night — but that is a different puzzle known as the ‘Bridge and Torch’ problem. The SNF puzzle is distinct because it includes behavioral constraints, not just time limits. Another variant adds a child or pet that cannot be left alone with an adult. There are no widely accepted variants of SNF with more than three people that preserve the same constraint logic. If a variant includes a fourth person, the rules must be explicitly redefined, as the original constraint matrix becomes unworkable. Do not confuse SNF with the classic ‘Missionaries and Cannibals’ puzzle — though similar, that one uses a 3:3 ratio and different rules.

How Do You Verify Your Solution Is Correct?

To verify, list every bank state after each crossing. For each state, check: 1) Is the Soldier with the Nurse? If not, is the Farmer present? 2) Is the Nurse with the Farmer? If yes, is the Soldier present? 3) Are any two people left alone on either bank without the third? If any answer is ‘no’ to these, the state is invalid. The only acceptable solo states are: Soldier alone, Nurse alone, Farmer alone. The only acceptable pairs are: Soldier + Nurse, Soldier + Farmer. The pair Nurse + Farmer is never acceptable. Total time must be 8 minutes. Any sequence taking longer than 8 minutes is suboptimal. Any sequence taking less than 8 minutes is impossible given the individual crossing times (since 5+2+1=8 is the sum of the two slowest crossings plus the one return).

In this article
  1. Who Are the Three Characters and Their Crossing Times?
  2. What Are the Rules for Who Can Be Left Together?
  3. What Is the Minimum Time to Solve the Puzzle?
  4. Why Can’t the Nurse and Farmer Cross Together?
  5. How Do You Avoid Common Mistakes in Solving It?
  6. Can the Puzzle Be Solved With Different Character Roles?
  7. What Happens If You Break the Rules Even Once?
  8. Are There Variants With More People or Different Constraints?
  9. How Do You Verify Your Solution Is Correct?