News for hackers. Stuff that matters.
Re:Show HN: Water Pouring Problem Simulation by thecynh on Tuesday November 15, 2016 @08:56AM (#12957955)
I wonder how many people tried the "5 and 3 gallon canister, target is 4 gallons" from Die Hard 3 … I know I did!

Context: https://www.youtube.com/watch?v=BVtQNK_ZUJg

Re:Show HN: Water Pouring Problem Simulation by fyquah95 on Tuesday November 15, 2016 @09:04AM (#12958017)
Adding this video to the page, thanks for sharing!
Re:Show HN: Water Pouring Problem Simulation by 33a on Tuesday November 15, 2016 @08:32AM (#12957788)
You can solve this problem faster using the extended Euclidean algorithm.
Re:Show HN: Water Pouring Problem Simulation by fyquah95 on Tuesday November 15, 2016 @08:41AM (#12957858)
Does the algorithm yield the exact path to the target volume?
Re:Show HN: Water Pouring Problem Simulation by jfroma on Tuesday November 15, 2016 @09:15AM (#12958107)
It will be nice to have a list with all steps at the end
Re:Show HN: Water Pouring Problem Simulation by bbcbasic on Thursday November 17, 2016 @02:10AM (#12975092)
Intuitively, to be possible I think the target amount has to be divisible by the gcf of the two jugs.
Re:Show HN: Water Pouring Problem Simulation by fuzzythinker on Tuesday November 15, 2016 @02:20PM (#12961251)
Thought it is real water pouring simulation..