Water Jug Problem in AI
Empty the small jug.
Fill the large jug.
Use the large jug to fill the small jug. This leaves 2L in the large jug and 3L in the small jug.
Empty the small jug.
Use the large jug to fill the small jug. This leaves 0L in the large jug and 2L in the small jug.
Fill the large jug.
Use the large jug to fill the small jug. This leaves 4L in the large jug and 3L in the small jug.