Professional Documents
Culture Documents
Exp2 Ai
Exp2 Ai
Exp2 Ai
m = {}
isSolvable = False
path = []
# Current state
u = q.popleft()
if (u[0] == target):
if (u[1] != 0):
# Empty Jug2
q.append([a, 0])
# Empty Jug1
q.append([0, b])
# Driver code
if name == ' main ':