Can i use python to CSP? -


how can make constraint solver programing (csp) based algorithm can solve futoshiki puzzle.

its there code this? have search on google didn't find anything.

a) stackoverflow not site ask examples of programs. site answer questions problems existing program.

b)that said, can point tutorials.

you didn't find anything? here first 3 results got google:

  1. python-constraint module allows csp programming. following verbatim site:

constraint import * problem = problem() problem.addvariable("a", [1,2,3]) problem.addvariable("b", [4,5,6]) problem.getsolutions() [{'a': 3, 'b': 6}, {'a': 3, 'b': 5}, {'a': 3, 'b': 4}, {'a': 2, 'b': 6}, {'a': 2, 'b': 5}, {'a': 2, 'b': 4}, {'a': 1, 'b': 6}, {'a': 1, 'b': 5}, {'a': 1, 'b': 4}]

  1. numberjack similar. seems embeding.

    numberjack modelling package written in python constraint programming. python benefits large , active programming community, numberjack therefore perfect tool embed cp technology larger applications.

  2. this tutorial python-constraints package (number 1).
finally, here paper csps talks futoshiki problems.

good luck.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -