Partition the items into successive groups of size two, with a singleton final group if is odd. For a pair on the east bank, executeFor a singleton , executeReturn the empty boat east between groups. Each group starts and ends with marker , and its items finish west, proving all preconditions and the final goal by mathematical induction over the groups. For there are outward journeys and crossings in total; is the ceiling function. Again needs no actions.
Articles by others on the same topic
There are currently no matching articles.