Problem #PRU-102974

Algorithm Theory Problems Discrete Mathematics

Problem

There is a 12 litre barrel filled with water, and two empty barrels (one is 5 litres in volume and the other is 8 litres). Using these barrels, try to

a) divide the water into 2 parts with volumes: 3 litres and 9 litres;

b) divide the water into 2 parts with equal volume.