News for hackers. Stuff that matters.
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...
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.

Re:Using Simulated Annealing to Solve Logic Puzzles by nurettin on Monday July 18, 2016 @12:31PM (#12116100)
This is the best prolog solution I've seen for this kind of puzzle. Other solutions all had to define a bunch of primitives for neighborhood constraints.
Re:Using Simulated Annealing to Solve Logic Puzzles by osense on Monday July 18, 2016 @11:55AM (#12115813)
Very concise and easy to read, I like it :)