Pouring between jugs: track each state within capacity
Track the amounts in two jugs after each pour while checking that neither jug exceeds its capacity.
The video could not load. Check your connection and try again, or download it directly.
Download video
Open Chinese transcript
- 5升杯开始装满,3升杯开始为空,用状态对写成五、零。
- 把大杯倒入小杯,直到3升杯正好装满;小杯得到3升。
- 大杯原有5升,倒出3升后剩2升,所以状态变成二、三。
- 接着把3升杯倒空,不是倒回大杯;大杯仍是2升,状态变成二、零。
- 题目问大杯剩多少,因此答案是2升。每一步都没有超过杯子容量。
- 状态对能防止把两只杯混淆;若倒水规则改变,就要重新追踪。
Sources for this explanation
Logical thinking
Record the ordered states (5,0), then (2,3), then (2,0), keeping the 5-litre jug first each time.
Worked example
A 5-litre jug is full and a 3-litre jug is empty. Pour into the smaller jug until it is full, then empty the smaller jug. How much remains in the 5-litre jug?
The 5-litre jug has 2 litres left. Filling the 3-litre jug changes the state from (5,0) to (2,3), and emptying it gives (2,0).
Try one question
4-2=2 litres.