Otis
Elite Member
- Joined
- Apr 22, 2015
- Messages
- 4,592
The following brainteaser asks for the most-efficient solution. I've found multiple solutions, and I was able to shorten two of them. My answer with the least number of steps appears below, but how could I determine whether it is the most-efficient?
You have three unmarked containers. Their volumes are 6 units, 10 units and 15 units. The 6-unit and 10-unit containers are empty. The largest container is full of a desirable, liquid beverage. Transfer liquid between the containers such that you measure exactly 2 units of beverage for yourself to drink, while leaving exactly 8 units in the 10-unit container and 5 units in the 6-unit container.
I proceeded based on the following:
Containers may not be changed in any way (eg: markings may not be added, no container may be placed inside another, additional "containers" may not be used, etc). Each time liquid is poured somewhere else, it counts as a step.
?
[imath]\;[/imath]
You have three unmarked containers. Their volumes are 6 units, 10 units and 15 units. The 6-unit and 10-unit containers are empty. The largest container is full of a desirable, liquid beverage. Transfer liquid between the containers such that you measure exactly 2 units of beverage for yourself to drink, while leaving exactly 8 units in the 10-unit container and 5 units in the 6-unit container.
I proceeded based on the following:
Containers may not be changed in any way (eg: markings may not be added, no container may be placed inside another, additional "containers" may not be used, etc). Each time liquid is poured somewhere else, it counts as a step.
Code:
0 0 15
6 0 9
6 9 0
0 9 6
6 3 6
0 3 12
3 0 12
3 10 2
3 10 0
0 10 3
6 4 3
6 0 7
0 6 7
6 6 1
2 10 1
2 0 11
0 2 11
6 2 5
0 8 5
5 8 0
?
[imath]\;[/imath]