• vote
    24
    0 starsdarrellp | Shared With: Everyone - May 21 2008 | sudoku math puzzles

    Mike was asking how many essentially different sudoku grids there are. Here's the answer...

    Showing 1 - 6 of 6 comments
    • royleban - May 22 2008

      This does not make sense to me. If they allow relabeling and permutations, it seems to me that all Sudoku answer grids are the same, so the answer is 1.

      If the question is how many different Sudoku puzzles there are, then there are a number of things they haven't stated. What is the range of the number of givens? Are there requirements on the givens? (like symmetry) As an example, take a Sudoku puzzle and add another given or a pair, for symmetry) and you have a new puzzle, albeit one with the same answer.

      I can make some guesses as to all the things they're not stating, but any of my guesses lead me to the conclusion that the answer, if relabeling and permutations are allowed, is a lot lower, perhaps orders of magnitude lower, than they are suggesting.

    • darrellp - May 22 2008

      I gotta say, I was a little surprised by the size of the number. I've looked at their paper and they use Burnside's lemma with some funny business regarding relabelling which I'm not sure I believe - I'll have to think about it a bit to convince myself.

      However, even though my initial take was the same as yours - there's only one solution, that turns out not to be the case. And whether they're wrong or right, their heart is in the right place - i.e., they really are considering exactly what you or I would call all essentially different solutions as you can see by reading their paper at http://www.afjarvis.staff.shef.ac.uk/sudoku/russell_jarvis_spec2.pdf. Whether or not their fast play with relabelling is valid there definitely is more than one effectively different solution. For instance, the following solution grid:

      123 | 456 | 789
      456 | 789 | 123
      789 | 123 | 456
      ---------------
      234 | 567 | 891
      567 | 891 | 234
      891 | 234 | 567
      ---------------
      345 | 678 | 912
      678 | 912 | 345
      912 | 345 | 678

      has 147, 369 and 582 in some permutation for every vertical "mini-column" within a subsquare. Any symmetry/relabelling you apply will leave either all mini-rows or all mini-columns with identical sets in this way. This is most definitely not a characteristic of every sudoku solution so there is more than one solution after allowing for all symmetries and relabellings.

      Given that, I find the number surprisingly large, but I'd have to think carefully to refute it. Incidentally, there is a good artilcle in this month's American Mathematical Monthly which describes various sudoku solution grids in terms of linear algebra over finite fields. That's where I found the reference for this web page.

    • mike - May 22 2008

      @Roy - They are counting unique SOLUTIONS, not PUZZLES. I do think it's fair so say that re-labeling and row/column/block permutations are essentially just recasting the same Sudoku into another form.

      The reason the answer isn't "1" - is that the perumutations that are allowed are quite limited - swapping whole rows (columns) within a block and swapping a whole row (column) of blocks. You can't reach arbitrary re-ordering of the elements of the grid with such a limited set of transformations.

    • darrellp - May 22 2008

      @Mike - Also reflections, rotations and relabellings. But these are exactly the set of symmetries they are calling "equivalent" in the number they give. Whether the number is accurate is another question, but that's what it's purported to be.

    • royleban - May 23 2008

      Good explanation, Darrell. When I was in college (and two courses shy of a math major), I might have been able to follow their math. Now, I don't know if I could. It reminds me a bit of the mathematical papers around Rubik's cube back in the '70s and '80s. I could understand them then, but would probably struggle now.

      Interestingly, this also explains a significant failure with some sudoku generators, which generate solutions by swapping rows and columns. It's fast and simple but will not generate all possibilities. My own generator uses a fairly complex random algorithm.

    • darrellp - May 24 2008

      Well, I can't say that I'm not struggling with the article but even if I don't catch everything, there was some interesting stuff in the MAA article. There's a preprint on the web that I couldn't fave for some reason but sent to Mike. Google "Cameron sudoku" if you're interested (cameron as you might guess is noe of the authors).

    You must be Darrell's friend before you can comment on this Fave.
    Send Darrell a friend request or a personal message instead.

Related Faves from darrellp

  • vote
    3
    0 starsdarrellp | Shared With: Everyone - Mar 18 2009 | car video humor
    PG PORN: Helpful Bus

    One of the funniest things I've seen in a while. PG-porn is a satire on porn described as "for people who love everything about port except the sex". They pick up sexy girls and "help them" by...taking them to their destinations!

  • vote
    3
    0 starsdarrellp | Shared With: Everyone - Feb 23 2009 | silverlight, microsoft, patterns, UX
    Round Edges : Introducing Quince - A UX Design Pattern Explorer

    I can't dot the original silverlight page, but follow the link to Quince. It's very cool.

    Quoted: Howdy folks!  I'm really happy to announce that Infragistics has launched a really cool (if I do say so myself) new tool for you.  It's all based around the idea of design patterns, which most of us are familiar with, but it is focused in on

  • vote
    3
    0 starsdarrellp | Shared With: Everyone - Feb 17 2009 | images, panorama, stitcher, photos
    Microsoft Image Composite Editor - Microsoft Research

    This worked incredibly well for me. I dropped 5 huge images onto it. I had stitched them together by hand and it took a couple of hours. I dropped them into this ( you just drop them as a group - no extra information) and within seconds a perfect panorama popped up and a cropper ready to crop it to eliminat the extra space around the edges. VERY nice.

    Quoted: An application to stitch multiple source images into a seamless panorama.

  • vote
    1
    0 starsdarrellp | Shared With: Everyone - Feb 17 2009 | windows, free, shell
    xplorer² Windows File Manager (Explorer replacement)

    I've used xplorer2 now for a while and find it well worth the price and a big jump up from the regular Windows Explorer.

  • vote
    1
    0 starsdarrellp | Shared With: Everyone - Feb 06 2009 | one, video
    Thumbnailclick to play

    In the spirit of the Giant Steps animation, another cool animation to some very cool music. I think the Giant Steps one was a bit better, but this is pretty nice too.

  • vote
    2
    0 starsdarrellp | Shared With: Everyone - Jan 07 2009 | blue man group, translation, weird
    WHAT IS THIS PAGE ANYWAY????

    I googled "Blue Man Group" and got this page. It is REALLY weird. At first I thought it was some sort of really bad translation but after reading it, things seem to be so disjointed that this doesn't seem to make any sense either. I'm really a bit stymied about what this might be. Any ideas?

    Sample sentence:

    "This use, advanced twice on cool hand luke, has been forced gold movies. Would however it be comprehensive if their professional task was therefore the best georgia team not. darren stephens blue man group."

  • vote
    4
    0 starsdarrellp | Shared With: Everyone - Dec 16 2008 | cars ergonomics
    Miss the Floor-Mounted Dimmer Switch?

    The lame reason that automakers moved the dimmer switch from the floor to the steering column. I've wondered for a long time why they would move it from the floor where it was operated with a left foot that has nothing else to do (at least in an automatic) to a steering column where your hand is involved in the rather important job of STEERING THE CAR!!!

  • vote
    5
    0 starsdarrellp | Shared With: Everyone - Dec 11 2008 | girls, twins
    Meet the Ikki twins. - By Troy Patterson - Slate Magazine

    I've never seen this show but it can't be half as good as this scathing review.

    Quoted: The septic new dating show A Double Shot at Love With the Ikki Twins (MTV, Tuesdays at 10 p.m. ET) follows on the fuck-me heels of A Shot at Love With Tila Tequila, a single-elimination tournament wherein skanks of both sexes vied for the heart of a modera

  • vote
    38
    0 starsdarrellp | Shared With: Everyone - Dec 08 2008 | funny humor
    ze's page :: zefrank.com

    Hilarious, great stuff, great links...great on every dimension imaginable. Okay, that's a bit over the top, but pretty damn good.

  • vote
    1
    0 starsdarrellp | Shared With: Everyone - Dec 08 2008 | talks, video, ted
    Ze Frank's nerdcore comedy | Video on TED.com

    This guy is hilarious! Watch this TED entry!!!

    Quoted: TED Talks <p>Performer and web toymaker Ze Frank delivers a hilarious nerdcore standup routine, then tells us what he&rsquo;s seriously passionate about: helping people create and interact using simple, addictive web tools.</p>