CHAPTER 4
Implementing “Unique”
The “unique” strategy looks for candidates that are unique within a unit. This happens when all other candidates for the same number are removed from the unit (see Figure 4-1).
Figure 4-1. “Unique” within a row
If Solver, while applying another strategy, happens to remove the candidates for 5 from cells 7 and 8 of Figure 4-1, the 5 in cell 4 becomes unique within the row and, as a result, the candidates for 4 and 8 in cell 4 can be removed.
To be consistent, the name of this strategy should have been hidden single, ...
Get Sudoku Programming with C now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.