Milk ❤️
A milkman has two 10-gallon dairy cans of milk (full). One housewife has a three-gallon pail (empty). One housewife has a five-gallon pail (empty). You can say "three-quart" and "five quart" pail. Doesn't matter. Each cook wants two gallons (quarts) of milk. The milkman has no spare containers and no way to mark any containers. He does not want to pour milk away. How does he make the sale?
Answers
Answered by
3
Questuon:- A milkman has two 10-gallon dairy cans of milk (full). One housewife has a three-gallon pail (empty). One housewife has a five-gallon pail (empty). You can say "three-quart" and "five quart" pail. Doesn't matter. Each cook wants two gallons (quarts) of milk. The milkman has no spare containers and no way to mark any containers. He does not want to pour milk away. How does he make the sale?
Answer:-
Here's a solution:
(10, 10, 0, 0)
(7, 10, 3, 0)
(7, 5, 3, 5)
(7, 8, 0, 5)
(7, 8, 3, 2)
(9, 8, 3, 0)
(9, 8, 0, 3)
(9, 6, 0, 5)
(9, 6, 3, 2)
(10,6, 2, 2)
Notice that vector notation helps a lot. Then you can observe that the second-to-last step must look like (n, 6, m, 2).
Answer:-
Here's a solution:
(10, 10, 0, 0)
(7, 10, 3, 0)
(7, 5, 3, 5)
(7, 8, 0, 5)
(7, 8, 3, 2)
(9, 8, 3, 0)
(9, 8, 0, 3)
(9, 6, 0, 5)
(9, 6, 3, 2)
(10,6, 2, 2)
Notice that vector notation helps a lot. Then you can observe that the second-to-last step must look like (n, 6, m, 2).
Similar questions