3 ms·
Indeed anything with constraints is usually a great use case for Prolog. I particularly like this version in ECLiPSe which is specialized on constraint programm
by kriro 10y ago
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 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.