30 Sep '16, 11pm

Liquid water pouring puzzles solver

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.

Full article: http://www.rubyflow.com/p/ta4zz4-liquid-water-pouring-puz...

Tweets

Bridge and torch problem solver

rubyflow.com 01 Oct '16, 7pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

This Water Sommelier Actually Makes a Living From Tasting Water

This Water Sommelier Actually Makes a Living Fr...

highsnobiety.com 03 Oct '16, 10pm

A sommelier generally deals with wine, but evidently the occupation is not solely limited to the alcoholic beverage. Accor...