其他分享
首页 > 其他分享> > MathProblem 79 Three humans, three monkeys, and a boat problem

MathProblem 79 Three humans, three monkeys, and a boat problem

作者:互联网

One one side of a river are three humans, one big monkey, two small monkeys, and one boat. Each of the humans and the big monkey are strong enough to row the boat. The boat can fit one or two bodies (regardless of size). If at any time at either side of the river the monkeys outnumber the humans the monkeys will eat the humans. How do you get everyone on the other side of the river alive?

Solution

让我们用 \(h: \text{human},\ b: \text{big monkey},\ s:\text{small monkey}\). 其中有一个限制条件就是:河的每边猴子数量不能超过人的数量

  1. Row b and s over ( hhhs / bs )
  2. Row b back ( hhhbs / s )
  3. Row b and s over ( hhh / bss )
  4. Row b back ( hhhb / ss )
  5. Row h and h over ( hb / hhss )
  6. Row h and s back ( hhbs / hs )
  7. Row h and b over ( hs / hhbs )
  8. Row h and s back ( hhss / hb )
  9. Row h and h over ( ss / hhhb )
  10. Row b back ( bss / hhh )
  11. Row b and s over ( s / hhhbs )
  12. Row b back ( bs / hhhs )
  13. Row b and s over ( / hhhbss )

标签:monkey,MathProblem,over,humans,back,Three,boat,Row
来源: https://www.cnblogs.com/xinyu04/p/16651864.html