There is a river with hunters, wolves, a man and two of his children along the bank, and a female and two of her children;
If the hunter leaves, the wolf will eat all the people. If the man leaves, the woman will throw the two children of the man to death, such
If a woman leaves, the man will throw her two children to death. There is a ship in the river, and only two people can ride on the ship at a time (attached
Condition: only hunters, men, and women can boating.) Q: How can these eight people cross the river )?
Solution: 1. The hunter delivers the wolf to the other side and returns it. Then, the hunter delivers the boy to the other side and brings the wolf back together.
2. the hunter and the Wolf return to the shore and get off the ship together. The man takes his other child to the other side.
At this point, the other side has the following: a man and two of his children, a boat.
3. A man rowing back to the shore from the other side, bringing a woman to the other side again, and then the woman rowing back from the other side alone
Shore. (The purpose of this operation is to bring the ship back to the shore)
4. Women get out of the ship, hunters and wolves get on the ship, move to the other side, and get off the ship.
At this point, the other side has the following: a man and two of his children, a hunter and a wolf, and a ship.
5. The man rowing back to the shore, bringing the woman to the other side, and then the woman rowing back from the other side.
The purpose is to hand over the right to use a ship to a woman)
6. A woman takes her own child to the other side of the ship and disconnects from the ship.
At this point, the other side has: a man and two of his children, a hunter and a wolf, a female and one of her children, a ship.
7. the hunter and the wolf go to the ship and draw them back to the shore. Then the hunter takes another child of the woman to the ship and delivers it to the other side.
8. The hunter went back to the shore by boat alone and took the wolf onto the ship and crossed the ship to the other side.
Finished.