About Lesson
-
Initial State:
- Robot, fox, chicken, and chicken-feed are all on one side of the river (let’s call this Side A).
- The rowboat is also on Side A.
- The goal is to move all items to the other side (Side B) without any undesirable interactions.
-
Constraints:
- The robot can operate the rowboat and can carry one item at a time.
- The fox cannot be left alone with the chicken, and the chicken cannot be left alone with the chicken-feed.
-
Strategy:
- We need to find a sequence of moves that ensures no harmful interactions while moving all items to Side B.
-
Solution:
- Here’s one possible sequence of moves:
- Robot takes the chicken across to Side B.
- Robot returns alone to Side A.
- Robot takes the fox across to Side B.
- Robot leaves the fox on Side B and takes the chicken back to Side A.
- Robot takes the chicken-feed across to Side B.
- Robot returns alone to Side A.
- Robot takes the chicken across to Side B again.
Now all items are safely on Side B, and no harmful interactions occurred.
- Here’s one possible sequence of moves:
-
Final State:
- Robot, fox, chicken, and chicken-feed are all on Side B.
Join the conversation