Beruflich Dokumente
Kultur Dokumente
‘i’ represents the number of liters of water in the 4-liter jug and ‘j’ represents the number of liters of View my complete profile
water in the 3-liter jug. The initial state is ( 0,0) that is no water on each jug. The goal state is to
get ( 2,n) for any value of ‘n’.
To solve this we have to make some assumptions not mentioned in the problem. They are
The various operators (Production Rules) that are available to solve this problem may be stated
as given in the following figure .
http://problemsandsolutionsforai.blogspot.in/2013/06/water-jug-problem.html 1/4
8/11/2017 AI problems & solutions: Water Jug Problem
http://problemsandsolutionsforai.blogspot.in/2013/06/water-jug-problem.html 2/4
8/11/2017 AI problems & solutions: Water Jug Problem
7 comments:
Reply
Replies
Reply
You have a 5 liter can and 3 liter can. Fill exact 4 liters in 5 liter can.
Reply
Replies
Reply
http://problemsandsolutionsforai.blogspot.in/2013/06/water-jug-problem.html 3/4
8/11/2017 AI problems & solutions: Water Jug Problem
Good information
Reply
Publish Preview
http://problemsandsolutionsforai.blogspot.in/2013/06/water-jug-problem.html 4/4