Question 34
SEARCH Consider a water-jug puzzle with three jugs a, b and c of capacities 5L, 3L and 2L, respectively. A state, encoded as a digit string ABC, denotes volume of water in jugs a, b and c, respectively. For example, state 212 denotes that jugs a, b and c contain 2L, 1L and 2L of water, respectively.
MoveGen takes a state ABC and returns a set of neighbours that are one move away from ABC. For example, MoveGen(212) = { 032, 302, 410, 230 }. Based on the above data, answer the given subquestions.