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.
I haven't benchmarked it but it is pretty intuitive to read which is very important for these types of problems.