Using CSP algorithm with Forward Checking for solving Sudoku Puzzle
Variable Class :
- For holding data of each variable such as its Value and Domain.
State Class:
- For holding data of each state.
ProblemTree Class:
- Search through all available digit (the domain of variable) for the next empty spot in the table.
A naive approach is to only check the first empty spot in table if there is no value in its domain then it backtracks
But with Forward Checking it checks the next empty spot after the first one, if the variable we had chosen for the first empty spot left us with no choice for the second blank spot then it backtracks
- Soheil Changizi ( @cocolico14 )
This project is licensed under the MIT License - see the LICENSE file for details