top of page

Liquid water pouring puzzles

Water pouring puzzles (also called water jug problems or measuring puzzles) are a class of puzzle involving a finite collection of water jugs of known integer capacities (in terms of a liquid measure such as liters or gallons).

Initially each jug contains a known integer volume of liquid, not necessarily equal to its capacity. Puzzles of this type ask how many steps of pouring water from one jug to another (until either one jug becomes empty or the other becomes full) are needed to reach a goal state, specified in terms of the volume of liquid that must be present in some jug or jugs.

Three jugs problem

You are at the side of a river. You are given a 3 litre jug and a 5 litre jug. Both the jugs are initially empty. The jugs don’t have markings to allow measuring smaller quantities. You have to use the jugs to measure 4 litres of water. Determine the minimum no of operations to be performed to obtain 4 litres of water in one of jug.


The operations you can perform are:

  1. Empty a Jug

  2. Fill a Jug

  3. Pour water from one jug to the other until one of the jugs is either empty or full.

Each of steps 1, 2 and 3 are counted as one operation that we perform

Mobile devices does not support flash game. 

Google chrome does not support flash by default. Click here to change settings

Three jugs problem (higher level)

Google chrome does not support flash by default. Click here to change settings

Three jugs problem (limited water source)

Google chrome does not support flash by default. Click here to change settings

Three jugs problem

Measure

litres of water   

# of steps->

New

game->

Restart

bottom of page