Constraint satisfaction problems
Step 6 of 13 in Classical AI · Build · Medium
Some problems are about assigning values that satisfy constraints (sudoku, timetables). Backtracking plus constraint propagation (AC-3) solves them far faster than brute force.
Build it
Sudoku solver
Backtracking with AC-3 and minimum-remaining-values ordering.
Done when: Solves a 'hard' sudoku in under a second; backtrack count reported.
Resources
- Wikipedia: Constraint satisfaction problem Article
- Berkeley CS188 Course
- Red Blob Games: A* Article
- AIMA (Russell & Norvig) Book
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map