My solution agrees with your findings:
$ perl min_steps.pl 3 7 11 5 steps: S->Y Y->Z Z->X S->Y Y->Z $ perl min_supply.pl 3 7 11 Required supply: 11 6 steps: S->Y Y->Z Z->X X->S S->Y Y->Z
In reply to Re^3: Challenge: N Jugs Problem
by ikegami
in thread Challenge: N Jugs Problem
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |