Sudoku's Hidden Rule (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
I really dislike using uniqueness. Not because it feels like cheating. Every time it becomes relevant it just feels inelegant. I love spotting a swordfish, Y-wing or empty rectangle. But uniqueness feels lazy and anticlimactic. In all other cases I simply find using every advantage to reason about the puzzle and deriving constraints exhilarating. But uniqueness somehow feels like it's not about the structure of the puzzle. It gives me the same feeling as bifurcation. There I can clearly tell why I dislike it: it usually feels like brute force rather than elegant logic. Not sure why I feel similarly about uniqueness.
I remember in one of the Cracking the Cryptic videos Simon said he was sure uniqueness wasn't required for the current puzzle because a setter of this caliber wouldn't design a puzzle to rely on it. Which is why I was really surprised to find that one of the puzzles in the Classic Sudoku app from CTC used uniqueness this way.
Replies (12)
Replies (3)
Replies (3)
Replies (2)
If you do not rely on uniqueness you can check the other trivial constraints (nine rows, nine columns, etc), solve the sudoku, and then you know that it was well-constructed. If you use the property that it is well-constructed to solve it, your solution no longer showed that the Sudoku is well-constructed
Many problems in the real world have zero or many solutions, it feels artificial to me to leverage the fact that there must be a single valid solution to reach a solution.
If such a thing is not possible, the reasoning is not actually circular.
Replies (2)
Replies (1)
You are correct to suspect that there's an impossibility result here but it requires a stronger logical model than Sudoku can provide or something. (The theorem is called Löb’s theorem, and says that if a logic can prove “if P is provable, then P is true” then it can prove P, as long as it was sophisticated enough to start with.)
For example, consider the following situation:
2,3 - 2,3
1,2,3 - 2,3 - 1,3
1,2,3 - X - 1,3
Then
2 - 3
3 - 2 - 1
1 - X - 3
and
2 - 3
1 - 2 - 3
3 - X - 1
are both possible solutions, but applying the unique rectangles deduction in the article would only lead us to the second solution.
Replies (1)
3-2
2-3-1
1-X-3
This solution looks identical to the first one from the perspective of the rest of the puzzle. Nothing can force a single solution. Since sudoku designers/publishers have an unwritten rule that solutions are unique, one can assume that neither of those are the solution. Something somewhere else in the puzzle will force the 1s to be placed in order to create your second solution.
Replies (2)
Replies (1)
Replies (1)
Continue this thread (1 replies) →
Replies (5)
Replies (3)
This is a number puzzle.
Replies (1)
Replies (1)
"There are seemingly no ways to survive, the protagonist still finds one" is a satisfying narrative.
"There are two potential ways to survive, but one of them has to be fake, the protagonist chooses one to the best of his ability, but we don't learn until later if he's right" is a satisfying narrative.
"There are two potential ways to survive, both are perfectly good, the protagonist chooses one of them and the story never comes back to this choice" is a waste of pages.
Continue this thread (1 replies) →
Replies (1)
I can’t remember any story where it was a mystery with multiple possible outcomes, but they wrote a ton of those books so it is possible.
Continue this thread (2 replies) →
I think it's satisfying when a puzzle subverts expectations. This is something that only works once in a blue moon though.
I dislike uniqueness so much I refuse to use unique numbers in rows, columns or blocks. It's a complete grid of ones for me.
Replies (1)
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?
Replies (3)
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 )
Replies (1)
It also means just trying something is often faster than thinking about the right move when you're stuck. That just feels wrong.
Replies (1)
Accordingly, all sudokus have a single valid solution set. I have no problem with that.
Replies (2)
Replies (1)
Unfortunately, I probably can't share it with anyone because of how it was made and how it works, but it's definitely made it easier for me to play some great puzzles.
I also dislike uniqueness as a rule, and I think the CTC hosts have expressed on several occasions that they'll generally refuse to use it unless the puzzle is truly otherwise unsolvable. I think they're a bit more tolerant of bifurcation, but only if the contradiction emerges quickly, and double bifurcation isn't nice. I get the impression that bifurcation is used more in competitive play because it can sometimes be faster than trying to spot something the "intended" way.
---
My app can't play all the puzzles, because some of them have unusually large grids that have impossibly small tap targets on phones. But otherwise, any puzzles that don't work are just down to bugs on my end.
I'm curious if anyone else solves their sudoku without pencil marking?
Replies (2)
I started without pencil marking (because I didn't know enough to know it could help), then added pencil marking, and eventually stopped pencil marking for the most part. But that means I won't be able to solve some puzzles. So I'll sometimes decide to use pencil marking just to have a different experience, though not often; I don't find it to be as fun.
Forgoing pencil marking means I have to be willing to re-derive options repeatedly when I can't remember them, and makes for much more of a mental workout and an active experience. With pencil marking, it becomes a mostly mechanical process: good for passing time, but with less of a payoff at the end.
As in, for a great puzzle the setter laid out one or two paths for the solver, and part of the solve is teasing out that plan the setter had in mind. Or, also fun, finding a way through that maybe the setter didn't anticipate.
With that in mind, you know that uniqueness wasn't in the setter's plan, and so using it becomes a bit rude let's say, since you're opting out of that conversation.
edit: someone else posted it in another comment: https://sudokupad.app/dwa3x2ld09
It seems like, at least in the example, there is not much gained. You could reason conditionally, if this puzzle has uniqueness then the 123 is a 1 and the rest falls into place fairly easily, or it's not unique then everything still falls into place fairly easily (with less constraint).
And so you just look at it with a 1 in that place and see if everything drops out of it, and if not you write down one of the non-unique solutions.
Maybe this is only if this comes up at the end of a puzzle, rather than early on?