Try legal digits in an empty cell, propagate row-column-box constraints, and backtrack from contradictions.
Core idea
Select an empty cell, try digits that do not appear in its row, column, or box, and recurse. A contradiction proves the latest choice must be undone.
Read the visualization
The active cell highlights every rejected digit and accepted placement. Backtracking removes a tentative value, while fixed clues remain visually distinct throughout the search.
2
3
4
3
4
1
2
2
4
2
3
Load the puzzle and identify the empty cells that require choices.
Time: Worst O(9^m). Space: O(m). Constraint checks and good cell ordering drastically reduce the search below the m-empty-cell bound.
Invariant: Every placed digit satisfies all three local constraint sets, so only future cells can make a partial board impossible.
Where it fits
Sudoku is a compact constraint-satisfaction example. Bit masks, most-constrained-cell ordering, and exact cover dramatically reduce the practical search.