Anonymous

Given A Jar Of 8 Liters Full Of Water, Show How You Can Divide The Quantity Of Water Into Two Halves Using Only 5 Liters And 3 Liters Jars.?

1

1 Answers

Oddman Profile
Oddman answered
My guess is that it takes fewer than 7 transfers, but here is a sequence of that length. {8, 0, 0} is used here to represent the contents of the {8-liter jar, the 5-liter jar, and the 3-liter jar}, respectively. J -> K is used to mean pour the contents of jar J into jar K so that jar K is filled as completely as possible.

start: {8, 0, 0}
8 -> 5 {3, 5, 0}
5 -> 3 {3, 2, 3}
3 -> 8 {6, 2, 0}
5 -> 3 {6, 0, 2}
8 -> 5 {1, 5, 2}
5 -> 3 {1, 4, 3}
3 -> 8 {4, 4, 0}

8 - (5 - 3) - 5 + 3 = 4

Answer Question

Anonymous