Question 3
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.
Let 320 be the start state and 401 be the goal state, find the sequence of moves that produce the shortest path from start to goal. Enter the sequence of moves as a comma separated list. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: aEb,aTc,bETa,cETb Answers Case Sensitive : No