Lurker News

Comments (464) 216 threads

Show all comments

Showing thread 6 of 216

going_ham3 replies#
This puzzle is so cool because it revolves around casual graphs in classical planning problem! One can use heuristics based search to come up with optimal solutions. I really like this innovative approach to the design.

However, one edge from house to tree wasn't clear at first because, I thought of it as logical or while it was about logical and. Other than that, pretty awesome work!!
Edit:: Scrolling down the comments someone seems to already implemented a graph search. That is pretty quick: https://news.ycombinator.com/item?id=32885309

7thaccount1 reply#
I'd love to see the formulation for this problem written out in proper form that can be fed to a solver like MiniZinc or CPLEX or whatever type of solver can handle it.
7thaccount1 reply#
It looks like Hakan K (has a super cool website where he solves all kinds of optimization problems for fun) was able to solve it using the Picat language in a very small amount of code with a solution (not sure if optimal):

http://hakank.org/picat/dogbunny_puzzle.pi
His website is a treasure trove for these kinds of problems and worth studying.

hakank3 replies#
The solution is 26 steps and that should be the optimal solution.

Continue this thread — 3 replies

jonnycomputer1 reply#
Yeah the edge with two conditions was a little confusing;

(1) and
(2) or
(3) At bone to go up, at flower to go down [or the converse?]
Was able to figure it out through experimentation, but the signage doesn't make it obvious.

convolvatron1 reply#
some kind of visual gate or a schematic-toggle-switch kind of thing would help
PebblesRox#
Or just one label that says "Somebody on bone and flower."

This gives me the idea to make variations of this puzzle to play with my 5yo using pencil and paper. It would be a fun way to teach the difference between AND and OR.
Plus I'll get to see the puzzles he comes up with, once he realizes he can make his own!

quantumfan1738#
I didn't have a problem with that edge.