in reply to Re^2: Challenge: N Jugs Problem
in thread Challenge: N Jugs Problem

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