Wolf, Goat and Cabbage Problem
en.wikipedia.org