Hacker News new | ask | show | jobs
by bee_rider 4 days ago
(I don’t know anything about Sudoku so sorry if this is a dumb question).

Could a Sudoku puzzle be designed such that you do have to use uniqueness? Is “you never have to use uniqueness” a statement about the rules of the puzzle, or an observation about how people tend to design them?

3 comments

It's a logical statement, given a Sudoku grid, I can enumerate all solutions using a backtracking solver and count the solutions.

Now, in practice people don't solve which backtracking, they use increasingly clever logical reasoning steps. You can technically solve any problem with sufficiently clever reasoning steps (because you could in principle capture in your brain 'if I consider all options this is the solution), in practice people have a limit, and this varies from player to player.

So you could have a Sudoku which can be solved with uniqueness, and which no human player can solve without using uniqueness, but I haven't seen one.

( Random comment for interested parties, this is literally my area of research: https://github.com/stacs-cp/demystify-rs )

Yes, I have seen a handful of very interesting puzzles where the setter explicitly intends for uniqueness to be used in solving. It can be satisfying in that context.
I imagine it's possible to do on a "plain" sudoku, though I've never encountered it, but there are definitely variant sudokus where it's necessary to rely on uniqueness. eg. https://www.youtube.com/watch?v=tDNr_ZVPJNU