We use the letter A to stand for the 24 ounce pitcher, the letter B to stand for the 13 ounce jug, the letter C to stand for the 11 ounce jug, and the letter D to stand for the 5 ounce jug. We also use ">" to represent the pouring action.
Order |
Action |
A: 24 Ounces pitcher |
B: 13 Ounces jug |
C: 11 Ounces jug |
D: 5 Ounces jug |
0 |
Start |
24 |
0 |
0 |
0 |
1 |
A>C |
13 |
0 |
11 |
0 |
2 |
A>D |
8 |
0 |
11 |
5 |
3 |
A>B |
0 |
8 |
11 |
5 |
4 |
C>A |
11 |
8 |
0 |
5 |
5 |
D>A |
16 |
8 |
0 |
0 |
6 |
B>C |
16 |
0 |
8 |
0 |
7 |
A>B |
3 |
13 |
8 |
0 |
8 |
B>D |
3 |
8 |
8 |
5 |
9 |
D>A |
8 |
8 |
8 |
0 |
|