aimacode / aima-julia

Julia implementation of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
MIT License
126 stars 50 forks source link

Add csp.jl and its respective Base.Test tests. #5

Closed mikhail-j closed 7 years ago

mikhail-j commented 7 years ago

@norvig This pull request covers map coloring, N-Queens, and the Zebra puzzle constraint satisfaction problems.

I have also added a new test for solving the Zebra puzzle using solve_zebra().

norvig commented 7 years ago

Looks good! -- it doesn't matter that this CSP solver finds different solutions from the book, or the Python solver. As long as the solution is a valid solution, that's all that counts.