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

  1. 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

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map