I love sudoku, especially variant sudoku, and for years I've had a daily habit of solving puzzles through the Cracking the Cryptic apps.
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.
In the sudoku community I'm aware of people usually avoid puzzles which require uniqueness to solve. However every once in a while a puzzle relies on it and it can be quite fun. Here is one I remember really enjoying which provides a 'lore' reason for why the uniqueness constraint applies this time --- the puzzle explains that you are given a photocopy with the colors missing and you have to use uniqueness to figure out what the intended colors (for the variant rules) are.
The same rule exists in many of Simon Tatham's puzzles, an open source Android app. My choice depends on a puzzle. For Dominosa, I chose to use the uniqueness rule because it's often the only visible clue, and it feels unnatural to ignore it and look elsewhere for minutes. At the same time, I chose to ignore the uniqueness rule for Keen, because I can almost always find another clue elsewhere on the board.
Interesting, it's similar for me. I don't really play those two puzzles, but I do use uniqueness in Map, where it tends to stare you in the face while I dislike using it in Tracks.
I welcome the link to Cracking The Cryptic, which is a great channel — you can share in their excitement like you might share in Francis Borgeois's beautiful, joyful love of trains.
If you do not believe me, I give you: the Miracle Sudoku video:
I’ve talked with folks who won’t use these kinds of uniqueness techniques or others like “guess and check”. More well known is Simon Anthony from Cracking the Cryptic who eschews uniqueness techniques in his solving videos unless the rules explicitly state something about uniqueness.
I mentioned this in another comment but this is why I was so surprised that their own Classic Sudoku app includes a puzzle which is designed to use uniqueness as part of the solve.
I really cannot explain it logically, but unlike every other obscure technique uniqueness just feels wrong. I think it might have to do with wanting the puzzle to contain logic which clearly shows its one unique solution without having to trust it to have one?
It's almost like a magic trick which requires you to understand the trick or you won't be fooled. It feels backwards.
> why is there stigma in using them when it's what's need to solve regular sudokus?
This isn't a standard Sudoku solving technique. You can have a Sudoku problem where 1) there's a unique solution if you assume there's a unique solution and 2) there are multiple solutions if you do not assume there's a unique solution
To give a comparison, the equation:
x^2 = a
has an infinite number of solutions. Now, if you assume there's a unique solution to the equation, you get x = a = 0. You're only able to get the unique solution by assuming there's a unique solution
It's analogous to using proof by contradiction in mathematics. A direct proof is more elegant and usually more illuminating. But then there's the quote from David Hilbert: "Taking the principle of excluded middle from the mathematician would be the same, say, as proscribing the telescope to the astronomer or to the boxer the use of his fists."
> It's analogous to using proof by contradiction in mathematics.
Well, the argument here is:
1. The solution is unique.
2. If [this square had value X], the solution wouldn't be unique.
3. Therefore, [this square does not have value X].
That isn't a proof by contradiction. It's just contraposition: step 2 says P ⟶ Q, step 1 says ¬Q, and our conclusion in step 3 says ¬P. You can do the whole thing constructively. The relevant proof (that from any implication you can derive the contrapositive) is the 7th exercise in session 4 at https://incredible.pm/ . Classical reasoning starts in session 5. (And the principle of a proof by contradiction is the fourth exercise there, sort of. You could make a strong argument that the principle of a proof by contradiction is inherent in the definitional choice that equates "P ⟶ ⊥" with "¬P".)
Sudoku has a much more direct equivalent of the concept of proof by contradiction. A sudoku proof by contradiction is just trial and error: "If this square is 3, then... [a constraint is violated]. Therefore, this square isn't 3."
Even that is still just contraposition, though, because the rules of sudoku tell you what the constraints are and guarantee that they aren't violated. You don't need to assume the law of the excluded middle when it's given to you explicitly.
I think contradiction versus contraposition is often a matter of style or taste. I don’t think “this can be expressed as contraposition, therefore it’s not contradiction” is valid.
But I operate at a high school level, so I could be wrong.
I'm not sure that explains it. In mathematics I've never understood the feelings against proof by contradiction. It is essentially just reasoning for why the opposite couldn't work.
But using uniqueness in sudoku feels really cheap and anticlimactic. It gives me the same empty feeling as solving through bifurcation
I really like proof by contradiction. I still clearly remember in college when we worked through the proof that the reals are uncountably infinite, which was a proof by contradiction. When we got to the end, the final piece was so surprising and delightful to me that I actually went home from class and called my mom just to gush about it (and she tactfully listened and was happy for me even though I'm sure she doesn't care about math). Proof by contradiction feels to me like a plot twist that turns the story on its head and leaves you in awe at what you just witnessed.
> If we assume the puzzle is valid, then we can also assume that no deadly pattern can ever exist in the puzzle since it has one and only one solution.
With that assumption, then you can color code[1] the sudoku and see this a little better than with the numerical indicators.
Making new Sudoku puzzles is a more fun exercise with computers than solving them.
You can turn Sudoku-making into a graph coloring problem instead of a tabular version of it.
All the material remains, it’s just moved around. But assuming it’s not a joke question, doesn’t it depend on the width of the hole? From pole to pole means L is the diameter of the sphere and, I assume the hole is a cylinder so
volume_of_sphere - volume_of_cylinder
(4/3)π(L/2)³ - πLr²
where r is cylinder radius or half the width of the hole. I can’t see an easy simple form so I asked WolframAlpha to simplify it and it doesn’t get nicer.
The depth of the hole, from one rim to the other, is the width of the band.
If the hole was very very wide, that depth, from rim to rim, is more clearly not the same as the diameter of the sphere.
I tossed my OG comment off rapidly, perhaps I could have phrased it better .. although I was recalling it from first year high school calculus in the mid 1970s.
The reason that uniqueness fast-tracks you is that you can assume the drill has infinitesimal diameter and thus the resulting shape is just a sphere with radius L/2.
Some years back, on a plane, I tried a sudoku game on the integrated entertainment system. I was irritated to find out that I had a seemingly valid solution, but the game refused to consider it solved.
Turns out it was a problem with more than one solution. Once I realized that, the game app immediately left distaste in my mouth, and started feeling like low-quality slop.
After the flight, I immediately checked if sudokus with more than one solution are generally considered valid, and felt vindicated to find out that indeed, they _should_ have only one. The game app was indeed not only buggy, but the puzzle selection/design was also sloppy.
As the article says the rule is “hidden” so to me it feels that for a digital sudoku puzzle it is ok to have multiple solutions, as long as the program check dynamically that the solution is valid (check all row/columns/3x3 all contains each numbers). For a paper sudoku of course you can only print one solution otherwise it quickly gets messy.
love it. I think sudoku users have deliberated a lot of these patterns like x-wing, y-wing. Shameless plug for a one-hand version of sudoku i made https://apps.apple.com/us/app/one-hand-sudoku-logic-puzzle/i... I was sick if having to use both hands in train and while putting my toddler to sleep.
In Sudoku competitions filling out the numbers quickly is the goal and players use these techniques and also try random numbers to see if they work.
If you’re playing on your own, solving the sudoku may be more satisfying, in which case you can’t assume uniqueness because proving uniqueness is part of proving the solution.
I've used this "unspoken" rule for many years, and often had a hard time explaining it to others.
I often called it "No two solutions", meaning that the puzzle was not allowed to have two solutions.
Personally, I prefer solving sudoku on paper. Just my preference.
So I've done a lot of sudoku appearing in newspapers. I found that many of the "harder", maybe they were called "5 star" newspaper sudoke, would fall to this rule of "No two solutions", so I generally avoid using it, unless the puzzle is _really- hard, and I can't find any other way.
EDIT: I found this image from when I was emailing a friend about this.
And yet the Sudoko in my daily paper occasionally breaks that rule and has multiple solutions ..... while it's annoying I consider both solutions valid
I don't doubt your experience, but with all the Sudoku's I've played, if I end up with a degenerate solution, I know that I've made a mistake somewhere along the line.
What do you mean by degenerate? A system of variables can be exactly determined, overdetermined or underdetermined.
If the sudoku has an answer, it certainly can't be overdetermined. Assuming that, if you spot a contradiction, you know _you_, the solver, made a mistake somewhere.
However, if you have no contradiction at all (each rule checks out: no duplicate numbers on rows, columns and within the 3x3 blocks), yet the answer is different from the "correct" one, you know that the system was underdetermined, and the sudoku had a flawed design, i.e. it wasn't "valid" to begin with.
Interesting, I've built up an intuition on sudoku over the years but have never used such a rule. Intuitively, I understand that sudokus must be unique (so that it's solvable without guessing), but how does one utilize this rule to solve puzzles?
This is one such puzzle. Clicking on the 'Solve Path', you'll see the path with it. It is possible to still solve it with some more advanced techniques if rules 8 and 21 are unselected ... being able to solve it with the 'WXYZ-Wing'.
It gets to the situation where box 9 has a [[14],[14]] pair and box 8 has a [[14],[1439]] pair. That forces box 8 to not have [[14], [14]], and so the second cell in question must be a [39] because a 1 or a 4 will cause it to fail uniqueness.
This happens again with boxes 4 and 6 with a box 4 having [[158],[158]] and box 6 having [[15],[15]] forcing a 1 into one of those two cells and removing 1 from the other cells in box 4.
Sorry it's a pastebin'd image, re-creating it in text seemed, tedious 8-)
Also, I also didn't find this rule to be intuitive. I just happened to stumble across a few instances where the conclusion was made obvious to me, and so I started using it when necessary.
Is this just a shortcut? Or did puzzles end up in a state where you had to use it? For instance, the linked image doesn’t need this logic, since neither 6 nor 7 can go in R1C4, so it must be a 9 regardless.
Yes, the image is just an example. Others aren't so obvious.
And I think it would be fair to call this a shortcut.
As I mentioned, after discovering it, I tried not to use it unless I could find no other way to solve the puzzle. It felt a little like cheating to me (just my personal impression).
But I "think", there is always another way. It's just that sometimes it was beyond me.
Some sudoku are REALLY hard 8-)
I've looked at some of the the championship trial games and found it amazing that anyone could solve them...
I love sudoku, especially variant sudoku, and for years I've had a daily habit of solving puzzles through the Cracking the Cryptic apps.
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.
In the sudoku community I'm aware of people usually avoid puzzles which require uniqueness to solve. However every once in a while a puzzle relies on it and it can be quite fun. Here is one I remember really enjoying which provides a 'lore' reason for why the uniqueness constraint applies this time --- the puzzle explains that you are given a photocopy with the colors missing and you have to use uniqueness to figure out what the intended colors (for the variant rules) are.
https://sudokupad.app/dwa3x2ld09 (Photocopied #4 "Group Theory" by Gabriel Kammer)
The same rule exists in many of Simon Tatham's puzzles, an open source Android app. My choice depends on a puzzle. For Dominosa, I chose to use the uniqueness rule because it's often the only visible clue, and it feels unnatural to ignore it and look elsewhere for minutes. At the same time, I chose to ignore the uniqueness rule for Keen, because I can almost always find another clue elsewhere on the board.
Interesting, it's similar for me. I don't really play those two puzzles, but I do use uniqueness in Map, where it tends to stare you in the face while I dislike using it in Tracks.
I welcome the link to Cracking The Cryptic, which is a great channel — you can share in their excitement like you might share in Francis Borgeois's beautiful, joyful love of trains.
If you do not believe me, I give you: the Miracle Sudoku video:
https://www.youtube.com/watch?v=yKf9aUIxdb4
It's about a Sudoku puzzle with additional chess-piece-style restrictions, that starts off with a seemingly impossibly empty board.
If you don't share his glee as he goes about it, you may be a bit dead inside.
These are just standard sudoku techniques aren't they?
why is there stigma in using them when it's what's need to solve regular sudokus?
From another direction, are there people who solve sudoku's without the idea that the puzzle has 1 solution? That seems very boring.
Yeah I'm totally confused by this
I’ve talked with folks who won’t use these kinds of uniqueness techniques or others like “guess and check”. More well known is Simon Anthony from Cracking the Cryptic who eschews uniqueness techniques in his solving videos unless the rules explicitly state something about uniqueness.
I mentioned this in another comment but this is why I was so surprised that their own Classic Sudoku app includes a puzzle which is designed to use uniqueness as part of the solve.
I really cannot explain it logically, but unlike every other obscure technique uniqueness just feels wrong. I think it might have to do with wanting the puzzle to contain logic which clearly shows its one unique solution without having to trust it to have one?
It's almost like a magic trick which requires you to understand the trick or you won't be fooled. It feels backwards.
> why is there stigma in using them when it's what's need to solve regular sudokus?
This isn't a standard Sudoku solving technique. You can have a Sudoku problem where 1) there's a unique solution if you assume there's a unique solution and 2) there are multiple solutions if you do not assume there's a unique solution
To give a comparison, the equation:
has an infinite number of solutions. Now, if you assume there's a unique solution to the equation, you get x = a = 0. You're only able to get the unique solution by assuming there's a unique solution
It's analogous to using proof by contradiction in mathematics. A direct proof is more elegant and usually more illuminating. But then there's the quote from David Hilbert: "Taking the principle of excluded middle from the mathematician would be the same, say, as proscribing the telescope to the astronomer or to the boxer the use of his fists."
> It's analogous to using proof by contradiction in mathematics.
Well, the argument here is:
1. The solution is unique.
2. If [this square had value X], the solution wouldn't be unique.
3. Therefore, [this square does not have value X].
That isn't a proof by contradiction. It's just contraposition: step 2 says P ⟶ Q, step 1 says ¬Q, and our conclusion in step 3 says ¬P. You can do the whole thing constructively. The relevant proof (that from any implication you can derive the contrapositive) is the 7th exercise in session 4 at https://incredible.pm/ . Classical reasoning starts in session 5. (And the principle of a proof by contradiction is the fourth exercise there, sort of. You could make a strong argument that the principle of a proof by contradiction is inherent in the definitional choice that equates "P ⟶ ⊥" with "¬P".)
Sudoku has a much more direct equivalent of the concept of proof by contradiction. A sudoku proof by contradiction is just trial and error: "If this square is 3, then... [a constraint is violated]. Therefore, this square isn't 3."
Even that is still just contraposition, though, because the rules of sudoku tell you what the constraints are and guarantee that they aren't violated. You don't need to assume the law of the excluded middle when it's given to you explicitly.
I think contradiction versus contraposition is often a matter of style or taste. I don’t think “this can be expressed as contraposition, therefore it’s not contradiction” is valid.
But I operate at a high school level, so I could be wrong.
I'm not sure that explains it. In mathematics I've never understood the feelings against proof by contradiction. It is essentially just reasoning for why the opposite couldn't work.
But using uniqueness in sudoku feels really cheap and anticlimactic. It gives me the same empty feeling as solving through bifurcation
I really like proof by contradiction. I still clearly remember in college when we worked through the proof that the reals are uncountably infinite, which was a proof by contradiction. When we got to the end, the final piece was so surprising and delightful to me that I actually went home from class and called my mom just to gush about it (and she tactfully listened and was happy for me even though I'm sure she doesn't care about math). Proof by contradiction feels to me like a plot twist that turns the story on its head and leaves you in awe at what you just witnessed.
> If we assume the puzzle is valid, then we can also assume that no deadly pattern can ever exist in the puzzle since it has one and only one solution.
With that assumption, then you can color code[1] the sudoku and see this a little better than with the numerical indicators.
Making new Sudoku puzzles is a more fun exercise with computers than solving them.
You can turn Sudoku-making into a graph coloring problem instead of a tabular version of it.
[1] - https://notmysock.org/code/sudoku/
The assumption of solution uniqueness and or existence can fast track other puzzles, eg.
A hole of depth (or length) L is drilled through a sphere from pole to pole aligned and centred about an axis. What volume of material remains ?
All the material remains, it’s just moved around. But assuming it’s not a joke question, doesn’t it depend on the width of the hole? From pole to pole means L is the diameter of the sphere and, I assume the hole is a cylinder so
volume_of_sphere - volume_of_cylinder
(4/3)π(L/2)³ - πLr²
where r is cylinder radius or half the width of the hole. I can’t see an easy simple form so I asked WolframAlpha to simplify it and it doesn’t get nicer.
What am I missing?
There's a more concrete illustration here: https://en.wikipedia.org/wiki/Napkin_ring_problem
So we need to know the height of the resulting band, or, equivalently, the width of the drill.
I think the original question was asked/worded incorrectly, unless I'm missing something?
The depth of the hole, from one rim to the other, is the width of the band.
If the hole was very very wide, that depth, from rim to rim, is more clearly not the same as the diameter of the sphere.
I tossed my OG comment off rapidly, perhaps I could have phrased it better .. although I was recalling it from first year high school calculus in the mid 1970s.
L is the height of the drill/resulting band.
The reason that uniqueness fast-tracks you is that you can assume the drill has infinitesimal diameter and thus the resulting shape is just a sphere with radius L/2.
I play a lot of Sudoku. (I claim it's for both relaxation and to keep my brain working).
Just created a multiplayer version to play with my daughter.
I have not implemented solving hints yet and some of the "easy" problems can be challenging.
Maybe it would be fun to make a non unique version...
Some years back, on a plane, I tried a sudoku game on the integrated entertainment system. I was irritated to find out that I had a seemingly valid solution, but the game refused to consider it solved.
Turns out it was a problem with more than one solution. Once I realized that, the game app immediately left distaste in my mouth, and started feeling like low-quality slop.
After the flight, I immediately checked if sudokus with more than one solution are generally considered valid, and felt vindicated to find out that indeed, they _should_ have only one. The game app was indeed not only buggy, but the puzzle selection/design was also sloppy.
As the article says the rule is “hidden” so to me it feels that for a digital sudoku puzzle it is ok to have multiple solutions, as long as the program check dynamically that the solution is valid (check all row/columns/3x3 all contains each numbers). For a paper sudoku of course you can only print one solution otherwise it quickly gets messy.
love it. I think sudoku users have deliberated a lot of these patterns like x-wing, y-wing. Shameless plug for a one-hand version of sudoku i made https://apps.apple.com/us/app/one-hand-sudoku-logic-puzzle/i... I was sick if having to use both hands in train and while putting my toddler to sleep.
In Sudoku competitions filling out the numbers quickly is the goal and players use these techniques and also try random numbers to see if they work.
If you’re playing on your own, solving the sudoku may be more satisfying, in which case you can’t assume uniqueness because proving uniqueness is part of proving the solution.
AKA the Highlander rule: There can be only one.
The NYT dominos game often does not have a unique solution and it bothers me so.
Haven't played in years but I thought this was just standard puzzle solving.
kinda intuitive and obvious but nice
Very interesting to see this pop up now.
I've used this "unspoken" rule for many years, and often had a hard time explaining it to others.
I often called it "No two solutions", meaning that the puzzle was not allowed to have two solutions.
Personally, I prefer solving sudoku on paper. Just my preference.
So I've done a lot of sudoku appearing in newspapers. I found that many of the "harder", maybe they were called "5 star" newspaper sudoke, would fall to this rule of "No two solutions", so I generally avoid using it, unless the puzzle is _really- hard, and I can't find any other way.
EDIT: I found this image from when I was emailing a friend about this.
This is how I've typically used this rule:
https://nullimage.org/6xvubQNs7D4zMteBvDRBGm#k=KACWzJ3qsPnoY...
And yet the Sudoko in my daily paper occasionally breaks that rule and has multiple solutions ..... while it's annoying I consider both solutions valid
I don't doubt your experience, but with all the Sudoku's I've played, if I end up with a degenerate solution, I know that I've made a mistake somewhere along the line.
What do you mean by degenerate? A system of variables can be exactly determined, overdetermined or underdetermined.
If the sudoku has an answer, it certainly can't be overdetermined. Assuming that, if you spot a contradiction, you know _you_, the solver, made a mistake somewhere.
However, if you have no contradiction at all (each rule checks out: no duplicate numbers on rows, columns and within the 3x3 blocks), yet the answer is different from the "correct" one, you know that the system was underdetermined, and the sudoku had a flawed design, i.e. it wasn't "valid" to begin with.
Interesting, I've built up an intuition on sudoku over the years but have never used such a rule. Intuitively, I understand that sudokus must be unique (so that it's solvable without guessing), but how does one utilize this rule to solve puzzles?
In my own "writing a Sudoku solver" explorations, I've used https://www.sudokuwiki.org/ for guides for the algorithms.
https://www.sudokuwiki.org/Unique_Rectangles is the one that covers the unique solution rectangles with examples.
https://www.sudokuwiki.org/sudoku.htm?bd=0008060002000100740...
This is one such puzzle. Clicking on the 'Solve Path', you'll see the path with it. It is possible to still solve it with some more advanced techniques if rules 8 and 21 are unselected ... being able to solve it with the 'WXYZ-Wing'.
It gets to the situation where box 9 has a [[14],[14]] pair and box 8 has a [[14],[1439]] pair. That forces box 8 to not have [[14], [14]], and so the second cell in question must be a [39] because a 1 or a 4 will cause it to fail uniqueness.
This happens again with boxes 4 and 6 with a box 4 having [[158],[158]] and box 6 having [[15],[15]] forcing a 1 into one of those two cells and removing 1 from the other cells in box 4.
I found this image from when I was emailing a friend about this.
This is how I've typically used this rule:
https://nullimage.org/6xvubQNs7D4zMteBvDRBGm#k=KACWzJ3qsPnoY...
Sorry it's a pastebin'd image, re-creating it in text seemed, tedious 8-)
Also, I also didn't find this rule to be intuitive. I just happened to stumble across a few instances where the conclusion was made obvious to me, and so I started using it when necessary.
Is this just a shortcut? Or did puzzles end up in a state where you had to use it? For instance, the linked image doesn’t need this logic, since neither 6 nor 7 can go in R1C4, so it must be a 9 regardless.
Yes, the image is just an example. Others aren't so obvious.
And I think it would be fair to call this a shortcut.
As I mentioned, after discovering it, I tried not to use it unless I could find no other way to solve the puzzle. It felt a little like cheating to me (just my personal impression).
But I "think", there is always another way. It's just that sometimes it was beyond me.
Some sudoku are REALLY hard 8-)
I've looked at some of the the championship trial games and found it amazing that anyone could solve them...