Re:Using Simulated Annealing to Solve Logic Puzzles
by osense on Monday July 18, 2016 @03:40AM
(#12113683)
Another fun way to solve this is using Logic programming, e.g. http://baptiste-wicht.com/posts/2010/09/solve-einsteins-ridd...
[ Parent
| on HN ]
Re:Using Simulated Annealing to Solve Logic Puzzles
by kriro on Monday July 18, 2016 @05:03AM
(#12113932)
Indeed anything with constraints is usually a great use case for Prolog. I particularly like this version in ECLiPSe which is specialized on constraint programming with Prolog:
https://gist.github.com/JuanitoFatas/2227711
I haven't benchmarked it but it is pretty intuitive to read which is very important for these types of problems.