Interactive animations
 

Interactive animations

for teaching algorithms and programming

 

The cabbage, goat, wolf and the girl

A girl returns from the market, where she bought a wolf, a goat, and a cabbage. On the way home, she must cross
a river. Only the girl can row the boat. The boat is small and won't fit more than the girl and one of her
purchases in it. She cannot leave the goat alone with the cabbage (because the goat would eat it), nor she can
leave the goat alone with the wolf (because the goat would be eaten). How can the girl get the wolf, the goat
and the cabbage on the other side of the river?

The soldiers and the children

Three soldiers and two children want to cross a river. The boat is small, it can carry only one soldier or a
maximum of two children. How can the soldiers and the children get to the other side of the river?

The monsters and the children

Three monsters and three children want to get to the other side of a river. There is a small boat, which can fit
only two of them. To prevent a tragedy, there can never be more monsters than children together (otherwise the
monster would eat the children). How can the monsters and the children get to the other side of the river?


 
(C) 2012-2020, Ladislav Végh, Komárno, Slovakia