Slashdot Mirror


Google Goggles Solves Sudoku

mikejuk writes "Ever been frustrated when you can't solve a Sudoku? Well, now there's an app for that. It is just one more capability in the latest version of Google Goggles. All you have to do is point your phone's camera at a Sudoku puzzle, take a snapshot, and pattern recognition and a bit of game logic sorts out the answer. Have you ever had the feeling that AI is getting to be just a little too commonplace?"

206 comments

  1. better-it-than-me? by intellitech · · Score: 1

    No, better-at-it-than-you!

    --
    vos nescitis quicquam, nec cogitatis quia expedit nobis ut unus moriatur homo pro populo et non tota gens pereat.
    1. Re:better-it-than-me? by vux984 · · Score: 1

      No it was fine the first time. "better-it-than-me".

      You've never heard the expression "Better him than me." ?

      In this case "him" is an "it" ("google goggles"), so its "Better it than me.", as in "better that it have to figure out sudoko, than for me to have to figure out sudoko".

      Of course, its possible that the author just messed it up, and meant what you said, but it is hardly self evident that is so.

    2. Re:better-it-than-me? by Golddess · · Score: 1

      In this case "him" is an "it" ("google goggles"), so its "Better it than me.", as in "better that it have to figure out sudoko, than for me to have to figure out sudoko".

      If that's the case, then what's the point? Sudoku is a game. Having a computer tell you what to write in the spaces makes me wonder why you're bothering at all (unless you're using it as a learning tool).

      --
      "I'm not sure I like the fugnutish tone you used in your post!" -RogL (608926)-
  2. No by Anonymous Coward · · Score: 0

    No, not really.

    1. Re:No by cayenne8 · · Score: 1
      I've been looking around.

      How come there isn't a version of Goggles for iPhone yet?

      --
      Light travels faster than sound. This is why some people appear bright until you hear them speak.........
    2. Re:No by dargon · · Score: 1

      Grab the base google app for iPhone, it has goggles built into it

    3. Re:No by dissy · · Score: 0

      Download "Google Mobile App"

      When you are on the search screen, the top has a text box for search, as well as a mic icon and a camera icon, for voice and goggles search respectively.

  3. Sudoku porn by Quiet_Desperation · · Score: 2

    Ever been frustrated when you can't solve a Sudoku

    No. Never been unable to solve one. :)

    1. Re:Sudoku porn by Anonymous Coward · · Score: 0

      Yes, I have. I then wrote a program to solve it (unoptimized, naive) and it told me, after 6 hours of calculation, that there were 8 possible solutions.

      That was in a printed, paid-for magazine too.

    2. Re:Sudoku porn by Yold · · Score: 2

      after 6 hours of calculation

      Holy moley, my unoptimized naive (backtracking) solution written in C would solve the hardest puzzles in under 30 seconds, on my 900mhz netbook no less. What language did you write it in (not trolling here)?

    3. Re:Sudoku porn by Anonymous Coward · · Score: 0

      I'm going to assume that he brute-forced the entire grid to find all possible answers. There's no way why anything like that should take six hours.

    4. Re:Sudoku porn by JonySuede · · Score: 1

      backtracking is not that naive
      naive is usually a full deep first space search

      --
      Jehovah be praised, Oracle was not selected
    5. Re:Sudoku porn by slim · · Score: 3, Interesting

      Holy moley, my unoptimized naive (backtracking) solution written in C would solve the hardest puzzles in under 30 seconds, on my 900mhz netbook no less. What language did you write it in (not trolling here)?

      We had a little office competition to see who could write the fastest solver, back when the Sudoku craze kicked off.

      I think all our solutions came up with a solution in a fraction of a second; but I don't think any of them would have found all the solutions to a grid which had more than one. Indeed I bet some of the algorithms would have stalled on such a grid -- since one of us limited himself to applying the kind of rules that a human might apply.

      (He was able to programmatically classify grids into difficulty levels, by counting how many of the rules were necessary to solve it)

    6. Re:Sudoku porn by digitig · · Score: 2

      No. Never wanted to solve one. Now, if they can do an app that solves cryptic crosswords...

      --
      Quidnam Latine loqui modo coepi?
    7. Re:Sudoku porn by Zebedeu · · Score: 1

      That's because their generator used the naive way of generating a Sudoku puzzle: create a random complete puzzle from scratch and then start deleting random boxes.

      I know that because back in the time I tried to do a generator myself. Turns out there's more to it than that.

    8. Re:Sudoku porn by Anonymous Coward · · Score: 0

      I think Prolog is ideally suited for solving these problems. All you have to do is specify the game rule logic, the backtracking is already part of the interpreter.

      (Not the GP AC.)

    9. Re:Sudoku porn by stealth_finger · · Score: 1

      Ever been frustrated when you can't solve a Sudoku

      No. Never been unable to solve one. :)

      No, never tried to solve one. :p

      --
      Wanna buy a shirt?
      https://www.redbubble.com/people/stealthfinger/shop?asc=u
    10. Re:Sudoku porn by maxwell+demon · · Score: 1

      Actually, the most naive implementation would just randomly fill the fields and then check whether it solves the puzzle, repeating until it found the solution. :-)

      --
      The Tao of math: The numbers you can count are not the real numbers.
    11. Re:Sudoku porn by Anonymous Coward · · Score: 0

      No. Never been unable to solve one. :)

      http://www.kristanix.com/sudokuepic/worlds-hardest-sudoku.php

      There you go.

    12. Re:Sudoku porn by FatdogHaiku · · Score: 1

      What language did you write it in (not trolling here)?

      klingon#

      --
      You have the right to remain sentient. If you give up the right to remain sentient, you will be elected to public office
    13. Re:Sudoku porn by perryizgr8 · · Score: 1

      my highly unoptimized c code can do that in milliseconds. on a fucking ancient 800mhz core duo.

      --
      Wealth is the gift that keeps on giving.
    14. Re:Sudoku porn by gknoy · · Score: 1

      Somehow, I am both intrigued and frightened at the prospect of Klingon dialects of Perl.

    15. Re:Sudoku porn by Quiet_Desperation · · Score: 1

      They're fun for a while, but once you figure out the techniques it gets old fast.

    16. Re:Sudoku porn by Quiet_Desperation · · Score: 1

      D'oh. Blocked at my work!

    17. Re:Sudoku porn by Hognoxious · · Score: 1

      Never been unable to, but then I've never solved one either.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    18. Re:Sudoku porn by adamdoyle · · Score: 1

      Actually, the most naive implementation would just randomly fill the fields and then check whether it solves the puzzle, repeating until it found the solution. :-)

      And that really could take six hours (or more) to compute.

    19. Re:Sudoku porn by UnknownSoldier · · Score: 1

      Yeah, no kidding.  This is a Sudoku solver in less then 100 lines of C code that will solve any (solvable) board.

      /. sucks ... breaking this posting up into multiple posts...

          #include <stdio.h> // gcc -DLOG=0 sudoku.c -O2 -o sudoku.exe
          #include <string.h> // memset

          typedef struct Board
          {
              char cell[9][9];
          } Board;

          void Print( Board* board )
          {
              int x, y;
              for( y = 0; y < 9; y++ ) {
                  if (y && (y%3 == 0)) printf("---+---+---\n");
                  for( x = 0; x < 9; x++ ) {
                      if (x && (x%3 == 0)) printf("!");
                      printf( "%c", board->cell[y][x] ? '0' + board->cell[y][x] : ' ' );
                  }
                  printf("\n");
              }
              printf( "\n" );
          }

          int GetInvalidMoves( Board* board, int x, int y ) // bitmask of invalid moves
          {
              int cx, cy, wx, wy, bMask = 0;
              cy = y; for( cx = 0; cx < 9; cx++ ) // horizontal
                  bMask |= (1 << board->cell[cy][cx]);
              cx = x;    for( cy = 0; cy < 9; cy++ ) // vertical
                  bMask |= (1 << board->cell[cy][cx]);
              wx = x - (x % 3); // 3x3 block
              wy = y - (y % 3);
              for( cy = 0; cy < 3; cy++ )
                  for( cx = 0; cx < 3; cx++ )
                      bMask |= (1 << board->cell[wy+cy][wx+cx]);
              return bMask;
          }

          int TotalEmptyCells( Board* board )
          {
              int x, y, nEmpty = 0;
                  for( y = 0; y < 9; y++ )
                      for( x = 0; x < 9; x++ )
                          if ( ! board->cell[y][x] ) // empty = !full
                              nEmpty++;
              return nEmpty;
          }

    20. Re:Sudoku porn by UnknownSoldier · · Score: 1

      Part 2 of the solver since /. sucks for "junk characters"

          int Solve( Board* board ) // Recursive Brute-Force Solver
          {
              Board temp = *board;
              int nCells = TotalEmptyCells( &temp );
              int x, y, n;
              if( !nCells ) // trivial case - solved if no empty // if zero cells remaining
                  return 1;
              for( y = 0; y < 9; y++ ) // while we have empty cells,
                  for( x = 0; x < 9; x++ )
                      if( ! temp.cell[y][x] ) // Find first empty // empty = !full
                      {
                          int bInvalidMoves = GetInvalidMoves( &temp, x, y );
                          for( n = 1; n <= 9; n++ ) // iterate the empty cell with all possible candidates
                          {
                              if( ! (bInvalidMoves & (1 << n)) ) {
                                  temp.cell[y][x] = n;
      if( LOG ) printf("[%d,%d]=%c ", x+1,y+1,'0'+n);
                                  if( Solve( &temp ) ) {
                                      *board = temp; // propogate solution back to caller
                                      return 1;
                                  }
                              }
                          }
      if( LOG ) printf("\n");
                          return 0; // No valid configurations for this board
                      }
              return !printf( "No empty cells! Couldn't find solution for this board.\n" );
          }

          void Input( Board* board )
          {
              memset( (void*)board, 0, sizeof( Board ) ); // Clear()
              char *p = &board->cell[0][0];
              while (p <= &board->cell[8][8]) {
                  int c = getchar();
                  if ((c == '-') || (c == '_'))
                      p++;
                  else if ((c >= '0') && (c <= '9'))
                      *p++ = c - '0';
              }
          }

      int main( int nArg, char *aArg[] )
      {
          Board board;
          Input( &board );
          Print( &board );
          Solve( &board );
          Print( &board );
      }

    21. Re:Sudoku porn by oreaq · · Score: 1

      The language doesn't really matter. Have a look at Peter Norvig's sudoku solver for a very elegant, small, and really fast implementation in python.

    22. Re:Sudoku porn by Jaxoreth · · Score: 1

      Holy moley, my unoptimized naive (backtracking) solution written in C would solve the hardest puzzles in under 30 seconds, on my 900mhz netbook no less.

      My solver takes less than half a second on 9x9 puzzles and finishes 16x16 ones in less than five seconds, running on an 800MHz PowerPC in Mac OS 9. It's written in Perl.

      Then again, it's far from naive. Mostly it alternates between ruling out possible answers and deducing answers by elimination of other possibilities. When that runs out, it checks for saturation -- if cell A must be either 1 or 2 and cell B must also be either 1 or 2, then 1 and 2 are spoken for within any group containing A and B and can be ruled out for other cells in those groups. Then it checks every intersection of a box and a row or column -- any answers that can't be assigned outside the intersecting cells of one group can't be assigned to the other group outside the intersection either.

      Finally, if that leads to a dead end, it looks for a cell with only two possible answers, and tries both hypothetically. If one leads to a contradiction, it's ruled out; otherwise, the new information obtained from each path is compared and anything deduced from each path independently is added to the original data set, using the logic that ((P -> Q) ^ (~P -> Q)) implies Q regardless of P. If necessary this could be generalized to cells with more than two possible answers, but I haven't encountered a puzzle where this was necessary.

      This solver works on any NxN sudoku (where N is square), at least theoretically since after 25x25 you run out of letters. Goggles only recognizes 9x9, it seems.

      --
      In general, it is safe and legal to kill your children. -- POSIX Programmer's Guide
  4. who needs to think? by starblazer · · Score: 1

    Lazyness abounds....

    1. Re:who needs to think? by BrokenHalo · · Score: 1

      Sometimes it seems as if the best and likeliest future for every member of the human race might be to shove a stick wand mixer through the top of everybody's skull to puree their brains, which can then be ingested though a straw, since that's all they're good for.

      Let's face it: sudoku is purely a way to waste time. If you can't solve it, then put it down and find something else to do. I personally don't see why that should be so hard.

      If we are so fucked that we have to have an app to waste time for us, then we might just as well never get out of bed.

  5. Just like "Sudoku Grab" on the iPhone has done for by Anonymous Coward · · Score: 5, Informative

    The developer of Sudoku Grab for the iPhone - which solves Sudokus via the camera - has a blog post explaining how he did this (in June 2009.)

    http://sudokugrab.blogspot.com/2009/07/how-does-it-all-work.html

  6. So...? by Anonymous Coward · · Score: 0

    What's so exciting about this? Sudoku solvers have been around for ages. Personally I have even programmed one myself when I was 16...

    Also, I'm sure Goggles isn't the first app to have this functionality.

    1. Re:So...? by Tetsujin · · Score: 1

      What's so exciting about this? Sudoku solvers have been around for ages. Personally I have even programmed one myself when I was 16...

      Also, I'm sure Goggles isn't the first app to have this functionality.

      Yes. The Goggles, they do nothing that we haven't seen before.

      --
      Bow-ties are cool.
  7. Need more AI by krou · · Score: 2

    Have you ever had the feeling that AI is getting just a little be too commonplace?

    Could do with some more English AI apps, if you ask me.

    --
    'If Christ had tweeted the sermon on the mount, it might have lasted until nightfall.' - John Perry Barlow
    1. Re:Need more AI by somersault · · Score: 4, Funny

      Something makes me think that you don't really believe the quote in your signature.

      --
      which is totally what she said
    2. Re:Need more AI by krou · · Score: 1, Flamebait

      Funny thing is, if I don't believe it, that makes me imperfect, so ... ;)

      --
      'If Christ had tweeted the sermon on the mount, it might have lasted until nightfall.' - John Perry Barlow
    3. Re:Need more AI by PPH · · Score: 1

      Have you ever had the feeling that AI is getting just a little be too commonplace?

      That's the final straw! If you slobs can't even watch your grammar, we can do without you.

      -- SkyNet

      --
      Have gnu, will travel.
    4. Re:Need more AI by Tetsujin · · Score: 1

      Have you ever had the feeling that AI is getting just a little be too commonplace?

      That's the final straw! If you slobs can't even watch your grammar, we can do without you.

      -- SkyNet

      Hey, I'm not sure if I think what you're doing is right.

        -- John Henry

      --
      Bow-ties are cool.
    5. Re:Need more AI by Anonymous Coward · · Score: 0

      Died with a sudoku in his hand.

    6. Re:Need more AI by CapOblivious2010 · · Score: 1

      Seems to me that "SkyNet" would be the perfect name for an airline's on-board wifi system... yet oddly no one seems to use that name!

  8. we hath defeated the purpose by tverbeek · · Score: 4, Insightful

    OK, it's cool technology, but this is almost as pointless as Homer Simpson's book of already-solved crossword puzzles.

    --
    http://alternatives.rzero.com/
    1. Re:we hath defeated the purpose by Anonymous Coward · · Score: 0

      OK, it's cool technology, but this is almost as pointless as Homer Simpson's book of already-solved crossword puzzles.

      You should have mentioned his book of already-solved sudoku (from the same episode) since it's more on topic.

    2. Re:we hath defeated the purpose by tverbeek · · Score: 1

      Too on-the-nose.

      --
      http://alternatives.rzero.com/
    3. Re:we hath defeated the purpose by Ginger+Unicorn · · Score: 2

      now that's a contemporary reference...

      --
      (1.21 gigawatts) / (88 miles per hour) = 30 757 874 newtons
    4. Re:we hath defeated the purpose by Anonymous Coward · · Score: 1

      Solving Sudoku is trivial. The pattern recognition to read the puzzle is a bit more intriguing.

    5. Re:we hath defeated the purpose by Anonymous Coward · · Score: 0

      I don't know... it's so day-before-yesterday.

    6. Re:we hath defeated the purpose by elashish14 · · Score: 1

      Why? Sometimes it's good to solve problems just for the sake of intellectual curiosity. Why do we even do Sudoku puzzles in the first place if there's nothing to be gained from solving them? And I mean, if you're, say, driving to work in the morning while solving the Sudoku (or maybe just taking the train), and then you arrive and have to go to work and just want to know what the solution is - well now you can have it and get on with your day (of course, having admitted bitter defeat and succumbing to puzzle-solving mortality).

      And I think there's a lot that could potentially be gained from solving Sudoku via AI. What if more complex or heuristic problems could be modeled as solving a sudoku puzzle? And I can't imagine there's nothing to be gained in other fields - case studies and thought experiments in algorithms, threading, and so on. I can't imagine it was that hard to implement, just some signal processing to create the puzzle in memory and then applying some generic sudoku AI to solve it. And in the end, I guess the developers just wanted to have some fun and see what they could do. So no, I don't think it's totally useless

      --
      I have left slashdot and am now on Soylent News. FUCK YOU DICE.
    7. Re:we hath defeated the purpose by Anonymous Coward · · Score: 0

      Well the app could also check your answer or give you hints (instead of the full answer) when you get stuck.

    8. Re:we hath defeated the purpose by xtracto · · Score: 1

      Weell... I remember back when I lived in the UK some newspapers gave free wine bottles to the first persons who solved Sudokus =o)...

      --
      Ubuntu is an African word meaning 'I can't configure Debian'
    9. Re:we hath defeated the purpose by Zebedeu · · Score: 1

      Pointless? It's all over the web.
      Ok, maybe just the geek web, but still, at the very least it was a great marketing move.

    10. Re:we hath defeated the purpose by FrootLoops · · Score: 1

      My aunt likes Sudokus but isn't terribly good at them. I could see her enjoying a hint every now and then without having to wait for the next day's paper or type it in to a computer. Then again, there's no way she'd use this setup without me or someone like me getting her into smart phones.

    11. Re:we hath defeated the purpose by wootcat · · Score: 1

      True.

      There's another app in the App Store that I think is far better than the Goggles version. It allows you to grab any printed Sudoku puzzle. The app then converts it and allows you to work on the puzzle on your iPhone. Great for those times you have a newspaper that isn't yours, or you are needing to leave for work and won't be taking the paper with you.

      I really don't see the point of the Goggles version. I rarely (if ever) want to be given a complete finished grid. At most all I ever want are hints that lead me to solving it myself.

      --
      I'm really a low 5-digit Slashdotter, but this ID is where I am now.
    12. Re:we hath defeated the purpose by antdude · · Score: 1

      Was that the same crossword puzzle book that was in the last new episode? :)

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    13. Re:we hath defeated the purpose by Anonymous Coward · · Score: 0

      sounds like your aunt is a retard

    14. Re:we hath defeated the purpose by drinkypoo · · Score: 1

      And I think there's a lot that could potentially be gained from solving Sudoku via AI.

      Exactly what I was thinking. The value of logic puzzles is applying the structures you've built in your brain to other situations. Your brain says "hey this looks familiar" and BANGO you compute a near-optimal result and nip off to the pub to celebrate.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    15. Re:we hath defeated the purpose by jeremyp · · Score: 1

      Sudoku is too easy to be a useful AI exercise. In fact, once you take into account all the symmetries including the fact that if you swap any two digits everywhere on the grid, you have the same puzzle (e.g. if you tur all the 2's into 5's and all the 5's into 2's), there are only about 45,000 different solved grids.

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  9. Sudoku by TheSpoom · · Score: 2

    I think I remember hearing during my CS university days that solving Sudoku was relatively easy compared to actually coming up with puzzles that satisfied the rules of Sudoku.

    --
    It's better to vote for what you want and not get it than to vote for what you don't want and get it.
    - E. Debs
    1. Re:Sudoku by timeOday · · Score: 1

      Solving Sudoku is easy compared to the visual processing they're doing to recognize the puzzle from an image in the first place. I wonder how robust it is.

    2. Re:Sudoku by Monkeedude1212 · · Score: 2

      They probably didn't do the image processing from scratch, they probably used a pre-existing image comparison tool to check for something like

      ###
      ###
      ###

      Then chopped each square into its own, verified the symbol, and filled their arrays and got Cracking.

    3. Re:Sudoku by timeOday · · Score: 1

      Yeah, probably. But try implementing like that sometime, it isn't easy to make it really work well.

    4. Re:Sudoku by drosboro · · Score: 2

      I think I remember hearing during my CS university days that solving Sudoku was relatively easy compared to actually coming up with puzzles that satisfied the rules of Sudoku.

      True enough... although it's not really that hard to generate puzzles that satisfy the rules of Sudoku, either. What is a bit more challenging is coming up with interesting puzzles that solve the rules of sudoku, as is assigning a difficulty rating to them. I still haven't found a Sudoku app (including my own, unfortunately!) that generates puzzles as interesting as a skillfully hand-created puzzle. Some are better than others (one hopes mine is on the upper end, of course), but it's still hard to write an algorithm for making really good Sudoku puzzles.

    5. Re:Sudoku by Anonymous Coward · · Score: 0

      I red a blog post from the guy who did this on the iPhone a while back. His algorithm was basically:
      1. convert image to grey-scale
      2. use flood fill to identify dark and light regions
      3. detect edges to find the squares
      4. use an neural net for OCR
      5. run sudoku solver on extracted puzzle.

      I'd expect this app does basicly the same thing (me even have been written by the same guy).

    6. Re:Sudoku by slim · · Score: 1

      Some are better than others (one hopes mine is on the upper end, of course), but it's still hard to write an algorithm for making really good Sudoku puzzles.

      You sound like you know what you're talking about. Sudokus which claim to be hand-created do generally seem more satisfying to solve. I assume, though, that creating them is machine-assisted in some way. Am I right? I'm imagining some sort of interactive grid editor which shows you the ramifications of your number placement, tells you when you've constrained the grid to a single solution, etc.

    7. Re:Sudoku by maxwell+demon · · Score: 1

      (me even have been written by the same guy).

      You're an AI which has been written by the same guy who wrote the iPhone Sudoku solver?

      --
      The Tao of math: The numbers you can count are not the real numbers.
    8. Re:Sudoku by slim · · Score: 2

      They probably didn't do the image processing from scratch, they probably used a pre-existing image comparison tool to check for something like

      Google Goggles is build around a pretty sophisticated image processing/classification engine. It takes an arbitrary snapshot, and recognises barcodes, QR codes, book/CD/DVD covers, product logos etc., and directs you to the appropriate Google search results.

      With this, they've just added a class of image, and a service to handle it. It's a fun way to raise awareness of Goggles for them, I guess.

    9. Re:Sudoku by drosboro · · Score: 1

      Hmm. I haven't heard of any software like that... but it sounds like that would be the way to go. When I was researching sudoku generation for my application, it looked to me like most of the "experts" were really just using pen and paper, working "backwards" from the solution to a puzzle. It would be really useful to have a program that would tell you things like "to solve this puzzle, you'll need to use 2 X-wings and a swordfish, and this squares can be solved right off the bat by simple elimination".

      I haven't heard of such an app, but it would be an interesting challenge. Unfortunately, I suspect the market would be a bit on the small side.

    10. Re:Sudoku by DMUTPeregrine · · Score: 1

      SudoCUE is/was (no longer developed it seems) about the best sudoku app around. It generates some excellent puzzles, can check for a unique solution, and has a nice way to rate difficulty. It also has an optimizer which can remove clues to make a puzzle harder, and can preserve symmetry. And SudoCUE does exactly what you wanted, it can list all techniques needed to solve the puzzle.

      --
      Not a sentence!
    11. Re:Sudoku by harl · · Score: 1

      Solving sudoku is a trivial problem. High school level.

      8 queens

      --
      I find being offended by me offensive.
    12. Re:Sudoku by KevinIsOwn · · Score: 1

      Indeed, solving Sudoku is extremely simple. Break out your favorite constraint programming solver and a couple for loops and a bunch of all-different constraints later, you're done. This scales to any size sudoku puzzle and is rather fast.

    13. Re:Sudoku by TaoPhoenix · · Score: 1

      The web is a wonderful place!

      Try this site for solving by named strategies.

      http://www.sudokuwiki.org/sudoku.htm

      --
      My first Journal Entry ever, in 8 years! http://slashdot.org/journal/365947/aphelion-scifi-fantasy-horror-poetry-webzine
  10. solving Soduku by 56ker · · Score: 2, Insightful

    I thought the fun was in trying to solve it yourself, not through having a machine give you the correct answer.

    1. Re:solving Soduku by ILMTitan · · Score: 2

      I always thought the fun failed because it was easier to tell a computer how give you the correct answer than to solve it yourself.

    2. Re:solving Soduku by courteaudotbiz · · Score: 1

      I totally agree with you. But sometimes, when you're stuck and can't find another number, it would be cool that this app just gives you a hint, instead of solving the entire sudoku.

    3. Re:solving Soduku by MancunianMaskMan · · Score: 5, Insightful

      go get your coat and hand in your geek card at the door. The fun is in writing the program that solves the puzzle

    4. Re:solving Soduku by Stooshie · · Score: 2

      Given your sig, are you being sarcastic?

      --
      America, Home of the Brave. ... .and the Squaw.
    5. Re:solving Soduku by wondafucka · · Score: 1

      I thought the fun was in trying to solve it yourself, not through having a machine give you the correct answer.

      No, the fun is developing an algorithm to process the image and then another one to solve it. Who cares if it robs the end user of enjoyment or purpose.

    6. Re:solving Soduku by sexconker · · Score: 1

      I totally agree with you. But sometimes, when you're stuck and can't find another number, it would be cool that this app just gives you a hint, instead of solving the entire sudoku.

      But if you make a mistake, you're fucked unless the OCR is smart enough to distinguish between the givens and your entries, and account for any scribbling, crossing out, etc. you've done).

    7. Re:solving Soduku by Anonymous Coward · · Score: 0

      I wrote a simulating annealing program to solve this back in the day. Made sure it worked on my test suite of evil examples and never touched a Sudoku puzzle since.

      CS

    8. Re:solving Soduku by agm · · Score: 1

      As a software developer, it's more fun to look at Sudoku as a different sort of puzzle: how do I get a computer to solve it? Even if it's just using a brute force approach there is something satisfying about writing software in a low level language that solves these kinds of puzzles.

    9. Re:solving Soduku by IrquiM · · Score: 1

      You obviously haven't been stuck in the middle of a puzzle!

      --
      This is blinging
    10. Re:solving Soduku by Intron · · Score: 1

      go get your coat and hand in your geek card at the door.
      The fun is in writing the program that solves the puzzle

      Too easy. 12 lines of lisp. The true geek writes the program that generates the puzzles.

      --
      Intron: the portion of DNA which expresses nothing useful.
  11. Stunning by spywhere · · Score: 1

    I just tried it with a Sudoku puzzle of "Evil" difficulty, and my iPhone 3gs solved it in about five seconds.
    I grew up on Asimov, Clarke, and Heinlein, but this is truly science fiction.

    1. Re:Stunning by Anonymous Coward · · Score: 0

      Yikes, that is evil.

      Seriously, five seconds is a *long time* for a computer. Any computer.

    2. Re:Stunning by peragrin · · Score: 3, Insightful

      What AI though? Sudoku is pattern recongintion. It doesn't take an AI to solve one. There is more processing spent on image analysis than actual problem solving.

      When I think AI I think of some that can create on it's own. Not learn, not solve but create.

      --
      i thought once I was found, but it was only a dream.
    3. Re:Stunning by geekoid · · Score: 1

      most real intelligences can't create, I'm not sure why you have such lofty ideals for an artificial one.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    4. Re:Stunning by Tetsujin · · Score: 1

      I just tried it with a Sudoku puzzle of "Evil" difficulty, and my iPhone 3gs solved it in about five seconds.

      I grew up on Asimov, Clarke, and Heinlein, but this is truly science fiction.

      Science Fiction? Really?

      I mean, in terms of visual recognition the pattern of the puzzle is pretty rigidly structured - a grid of numbers, probably with lines. If the image recognition can deal with things like working around the user's attempts to solve the puzzle, that's pretty good - but there are much more impressive image recognition feats out there. (Maybe Kinect is a good example?)

      In terms of problem solving... The problem is an easy one for a computer program to attack, and the problems aren't very large.

      --
      Bow-ties are cool.
    5. Re:Stunning by Anonymous Coward · · Score: 0

      So if I created a program to **create** (read: generate) sudoku puzzles, would that be considered "AI"? By your definition, of course ;)

    6. Re:Stunning by mr_gorkajuice · · Score: 1

      False. It may not always be pretty, but I do not know a single person who can't create a doodle.

    7. Re:Stunning by Moryath · · Score: 1

      "Real stupidity beats artificial intelligence every time.
              Terry Pratchett, Hogfather"

      AI, in general, isn't what most people think it is. You can make a stupidly-hard-to-beat game where the opponent plays "perfectly" against you, with perfect timing and unencumbered by the physical constraints of a controller, and you get what happens in most of the Street Fighter series (or about any other fighting game), where the "hardest difficulty level" or end-boss is unbeatable, seems to always get off the perfect shot, block, tech hit, avoidance roll, etc, until you start abusing a game-breaking technique or bug yourself to beat the game. That's actually pretty easy.

      What's harder is making a game AI that acts somewhat seemingly like real opponents, that makes real mistakes and leaves openings for the player to work with while not feeling like you're just handing them the game.

      Of course, on most systems (Nintendo's underpowered consoles most of all), the designers don't even bother, they just code in whatever the AI they want and the altered difficulty levels give the enemy bigger guns, more health/armor, or just drop even more enemies in a level to chew through. Or else the difficulty levels leave the enemy alone, but screw with the player's health bar and damage output to much the same effect.

      As we start dropping "AI" into other frontiers, it doesn't get much better. Translation AI is still relatively poor, able to handle some word-for-word translations passably but being lousy the moment you come across colloquialisms, figures of speech, neologisms, parallel synonyms, malapropisms, simply typos, failures of homonym (there/their/they're, our/hour, its/it's, principle/principal). There's a reason it's so easy to tell when you get a tech call response that's outsourced to somewhere in Asia - most of them know just enough Engrish to try to translate word-for-word what they want to say, and so they come up with constructions like "Tech support welcomes you, may I please know the problem you have today" that could just as easily come out of Babelfish or Google Translate.

      For pure problem-solving and pattern-matching, AI's proceeding slowly. Maps and GPS routing have their benefits but are certainly not perfect yet. "Automatic response answers" chat stuff is best tossed in the garbage bin, usually right next to a company's crappily written FAQ page.

    8. Re:Stunning by ceoyoyo · · Score: 1

      Image analysis counts as AI under the more generous definitions. Learning counts under most definitions.

      Creating is easy. There are lots of programs that "create" music, or art, or whatever.

    9. Re:Stunning by circletimessquare · · Score: 1

      "computers are useless. they can only answer questions"

      -pablo picasso

      --
      intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
    10. Re:Stunning by ClickOnThis · · Score: 1

      What AI though? Sudoku is pattern recongintion. It doesn't take an AI to solve one. There is more processing spent on image analysis than actual problem solving.

      Precisely. The hardest part of the problem is processing the image into a Sudoku matrix in the computer memory. After that, solving the puzzle is trivial, for a computer anyway.

      Just for fun, I once wrote a C program to solve Sudoku puzzles input via the keyboard. It was maybe one or two dozen lines long.

      --
      If it weren't for deadlines, nothing would be late.
    11. Re:Stunning by peragrin · · Score: 1

      Most of today's AI's are dumber than chimpanzees. A chimp can figure out if you want a termite then you need a stick. Today's AI couldn't come up with a stick unless it was programed into them and even only stumble on that answer randomly.

      Computer AI either have to play with inhuman reflexes or by cheating(adjusting environment settings to suit them). That isn't an AI. It is a computer.

      --
      i thought once I was found, but it was only a dream.
    12. Re:Stunning by ceiling9 · · Score: 1

      Creativity is often just finding a solution to an NP-hard problem, for example writing a song. Most people can tell if a song is enjoyable to listen to or not, but they can't necessarily write their own. They can listen to many songs and determine which are most pleasing. A songwriter has the special ability of assembling a song that meets the requirements of being pleasing by some method that is more efficient than simply testing each combination of random notes. Sudoko is similar, it is easy to verify that a given solution is correct. One solution method would be to keep testing different combinations of numbers until a solution is found, but there are more efficient methods using some heuristics based on the other numbers present, or experience from solving previous puzzles. The question might be whether there is something fundamentally more intelligent about things that humans create - songs, literature, etc, compared to a series a numbers in a Sudoko puzzle.

    13. Re:Stunning by Anonymous Coward · · Score: 0

      Sudoku can be solved in a fraction of a second by standard constrained search. There is no problem solving needed at all.

    14. Re:Stunning by Trogre · · Score: 1

      Detective Del Spooner: Human beings have dreams. Even dogs have dreams, but not you, you are just a machine. An imitation of life. Can a robot write a symphony? Can a robot turn a... canvas into a beautiful masterpiece?
      Sonny: Can *you*?

      --
      "Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
  12. it really works, its quite amazing by circletimessquare · · Score: 5, Funny

    i had a meeting with my boss today and he gave me a list of new requirements for extending the inhouse app. i pointed my cell phone at my notes from the meeting, it snapped a picture of my poor handwriting and the list of new requirements, i sent the picture to google goggles, i went to lunch, and when i came back google goggles was busy writing jquery code and extending the xslt transforms we use. i may even get a raise. thanks google goggles

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
    1. Re:it really works, its quite amazing by I8TheWorm · · Score: 1

      goggles is pretty slick... but my $.02, I use Evernote for that and it does the same.

      A not so strange coincidence, I'm working on jquery mobile at the moment... love those guys.

      --
      Saying Android is a family of phones is akin to saying Linux is a family of PCs.
    2. Re:it really works, its quite amazing by ziggyzaggy · · Score: 2

      I tried that, but instead of a solution the google goggles sent a Terminator that killed my boss. Now my company is outsourcing our whole department, to google. thanks a lot, google goggles.

    3. Re:it really works, its quite amazing by Monkeedude1212 · · Score: 2

      You think that's impressive?

      I've been having trouble satisfying my girlfriend in the bedroom. Tried everything, hours of foreplay, tools, toys, you name it! Then Google came along and changed everything. I simply took a picture of her lying naked on my bed with my cell phone, uploaded the picture to Google, and went to go grab some chinese food. By the time I got halfway through the Schezwan Chicken, she was having multiple orgasms! Thanks to Google, my relationship has never been better!

    4. Re:it really works, its quite amazing by Stooshie · · Score: 1

      Make it so Number One!

      --
      America, Home of the Brave. ... .and the Squaw.
    5. Re:it really works, its quite amazing by Abstrackt · · Score: 2

      Dude, that's because you left the phone on vibrate.

      --
      They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance. - Terry Pratchett
    6. Re:it really works, its quite amazing by Anonymous Coward · · Score: 0

      I think I really messed up. I took a picture of Chuck Norris, sent it to Goggles and went to lunch. When I got back Google had crashed.

    7. Re:it really works, its quite amazing by takowl · · Score: 1

      thanks google goggles

      ...thoggles.

    8. Re:it really works, its quite amazing by antdude · · Score: 1

      More like stole your app ideas for them to use. Then, you get fired for leaking out work's confidential information!

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  13. There is no need for logic... by Anonymous Coward · · Score: 0

    I never understood the appeal of sudoku.

    Sudoku puzzles are so simple that a simple brute-force approach is quick & easy. Sudoku was one of those programing 101 assignments from a while back.

    1. Re:There is no need for logic... by tukang · · Score: 1

      Sudoku is an np-c problem (actually the hitting set problem or graph coloring problem), so it's "hard" by definition. It may be easy to brute force a small grid but the problem gets exponentially more difficult as you increase the grid size and brute-force quickly becomes extremely slow.

    2. Re:There is no need for logic... by slim · · Score: 1

      Sudoku is an np-c problem (actually the hitting set problem or graph coloring problem), so it's "hard" by definition. It may be easy to brute force a small grid but the problem gets exponentially more difficult as you increase the grid size and brute-force quickly becomes extremely slow.

      This is true, but it's just as NP complete whether you solve it by hand or by computer. Nobody's going to be publishing grids so large that a human can't solve it in reasonable time -- so it will always be easily solvable by a computer.

      I'd say that the optimal algorithm is a bit more refined than "brute force" (which so me suggests "try every solution until it passes"). Prolog almost does it for you -- define the constraints in code, and off it goes into a depth-first search for the solution.

  14. i like this trend by mapkinase · · Score: 1

    Next it will have my cake and simultaneously eat it. Sometimes I already feel that my computer does not need me, it can get busy or really busy by itself.

    --
    I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
    1. Re:i like this trend by DrData99 · · Score: 1

      The cake is a lie!

    2. Re:i like this trend by Anonymous Coward · · Score: 0

      The goggles, they do nothing!

  15. Sudokus by Monkeedude1212 · · Score: 1

    While I do enjoy a good Sudoku while on a long flight or perhaps while on the train, I've never understood everyone else's insatiable fascination with them. From a programming perspective, it's an easy puzzle to solve. All you need to know is the various techniques for solving a square. Though also from a computing standpoint, you could quite easily brute force your way through it in a few minutes, no doubt. And like the famous Rubiks Cube - you COULD essentially do it if you had enough memory to preform the pattern recognition, as there are truly only so many ways things can line up, once you look at them abstractly and not as individual numbers. Then you can have it rotated any of the 4 ways but basically, this is not that hard of an App to write, I'm wondering which approach it is they took.

    I find it more fun to do with something less easy to work with. Most people think that Sudoku is a math puzzle because its often associated with numbers, but thats not really the case as you can do it with any 9 unique identifiers. I personally like a rainbow ROYGTBPVM of colours instead of numbers, it adds a bit of flavour to the challenge and lets me use up all those old school supplies. Not that I ever have them with me whenever I travel, but someone had the idea to throw one of those Sudoku puzzle books in a stocking one year and I pull it out on occaison when the power goes out and I need that mental interaction that video games provide.

    1. Re:Sudokus by kmdrtako · · Score: 1

      ...it's an easy puzzle to solve....

      I presumed that the point was to activate the part of your brain that does things with numbers.

      It's not so much that it needs to be an easy or hard puzzle to solve, just doing things with numbers---

      Or has that been debunked now?

    2. Re:Sudokus by Monkeedude1212 · · Score: 5, Informative

      It's not even to do with numbers, it's just unique identifiers.

      You could do it with animals. 1 = cow, 2 = sheep, so one so forth. I like to do it with colours, red, blue, yellow, etc. You could do it with Letters, ABCD...

      There is no addition, subtraction, no real computation done with any of the numbers. The only rules are that there has to be 1 of every 9 symbol in each box and each row, and that rule will enforce the subsets that most other people apply (no two identical symbols in the same row or box).

    3. Re:Sudokus by Anonymous Coward · · Score: 0

      http://www.youtube.com/watch?v=uTzjC4yTAqU that's how this works... without ocr

    4. Re:Sudokus by slim · · Score: 2

      Most people think that Sudoku is a math puzzle because its often associated with numbers, but thats not really the case as you can do it with any 9 unique identifiers.

      Well, set theory isn't to (necessarily) do with numbers, and it's still maths.

      Sudoku's a lot easier for a human to solve when the nine symbols happen to be numbers (or anything else with a well defined order), because you frequently count through the symbols to see which ones are missing.

      Kakuro FTW, by the way.

    5. Re:Sudokus by tlhIngan · · Score: 1

      I presumed that the point was to activate the part of your brain that does things with numbers.

      It's not so much that it needs to be an easy or hard puzzle to solve, just doing things with numbers---

      Or has that been debunked now?

      It's not a number puzzle. It's a logic and reasoning puzzle.

      People do crosswords too, and I'm sure there's also ways to have those solved by computers.

      Last I heard a few months ago, Sudoku was being investigated as a possible way to transmit data or other thing as well - the math behind it is apparently quite interesting.

      And people's facination isn't that computers make it trivially easy to solve, but just it's an interesting way to while away a few minutes of time that doesn't require staring at a screen. Computers can solve sudokus that are impossibly hard (by brute forcing, usually) for humans (the harest sudokus that are solvable are nowhere near how hard they can be).

    6. Re:Sudokus by maxwell+demon · · Score: 3, Interesting

      Most people think that Sudoku is a math puzzle because its often associated with numbers, but thats not really the case as you can do it with any 9 unique identifiers.

      Most people think math means it has to be associated with numbers, but that's not really the case. Numbers just turn out to be a great tool which can be applied to a wide range of mathematical problems. But the problems themselves are often not defined in terms of numbers.

      I'd consider Sudoku a math puzzle, even without numbers. You have a set of symbols (and yes, from a mathematical standpoint, your colors are symbols as well) and a set of places (being arranged in a square grid), and the task is to find a mapping from the places to the symbols so that for certain subsets of the set of places (rows, columns, subsquares) each symbol appears exactly once (or to say it more mathematically, for each of those subsets the restriction of the searched-for function to that subset is bijective). It's a well-defined mathematical problem.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    7. Re:Sudokus by xtracto · · Score: 1

      That's why I prefer Killer Sudoku, it introduces arithmetical complexity to the typical Sudoku game.

      --
      Ubuntu is an African word meaning 'I can't configure Debian'
    8. Re:Sudokus by FrootLoops · · Score: 1

      I'd like to think the GP meant "the part of your brain that does things with logic".

    9. Re:Sudokus by Monkeedude1212 · · Score: 1

      I suppose I see it as more of a logic problem , and while you could say that the foundations of logic are based on mathematics, I like to keep them seperate to help with parsing exactly whats going on.

      One does not even need to understand addition to do a Sudoku, but you need to understand addition to do just about anything in Mathematics.

    10. Re:Sudokus by Anonymous Coward · · Score: 0

      I think the GGP meant "part of your brain."

    11. Re:Sudokus by the_one(2) · · Score: 1

      Sudoku is a variant of the graph-coloring problem which most certainly qualifies as CS and CS probably qualifies as math. Graph-coloring (and sudoku) is NP-complete btw.

    12. Re:Sudokus by harl · · Score: 1

      Sudoku is just 8 queens.

      --
      I find being offended by me offensive.
    13. Re:Sudokus by azgard · · Score: 1

      Wrong. It's graph coloring. Admittedly, 8 queens is also instance of graph coloring, but different one.

    14. Re:Sudokus by harl · · Score: 1

      So it is 8 queens then.

      --
      I find being offended by me offensive.
  16. Seriously? by weltbrand · · Score: 1

    Can't believe this... Pretty cool.

  17. It's not AI by Anonymous Coward · · Score: 0

    It's just a parlor trick to impress your non-techie friends with. Even programming from scratch, it's not hard to write a program that can recognize printed numbers. Call me when it can actually learn!

  18. wharrgarbl by dsanfte · · Score: 1

    Be common too place to the whatsit?

    --
    occultae nullus est respectus musicae - originally a Greek proverb
  19. I am torn by Conspiracy_Of_Doves · · Score: 1

    Ok, its pretty amazing that this kind of thing is possible, but what is the point in using it? If you are going to just have your phone solve the puzzle for you, why bother picking up the sudoku in the first place?

    1. Re:I am torn by thesandtiger · · Score: 1

      This application is nothing terribly exciting, but the idea of being able to take a picture on a cheap mobile device, that device being able to analyze the picture for content, decide it's a certain kind of thing, and then attempt to analyze and solve that kind of problem is pretty neat.

      I could see applications of this that would examine, say, a pile of items and an empty space and then suggest an ideal packing strategy to fit them all most efficiently. Or, as someone who does a lot of "some assembly required" type projects, I could see IKEA wanting to use something like this where people could buy a thing, lay out the parts, take a picture of that part layout with their phone, and get video instructions showing them how to put it all together, in sequence, along with common mistakes. (Can you guess that I've broken or otherwise fucked up a number of IKEA assemblies?)

      Lots of potential for ubiquitous real-time assessment and analysis of visual data, but yes, sudoku isn't terribly exciting.

      --
      Since I can't tell them apart, I treat all ACs as the same person.
    2. Re:I am torn by bickerdyke · · Score: 1

      That's what I ask myself too...

      Why pick up a sudoku in the first place?

      I prefer the weekly crossword puzzle in "Die Zeit". That is still fun even if you use google/wikipedia to solve it.

      --
      bickerdyke
    3. Re:I am torn by maxwell+demon · · Score: 1

      I prefer the weekly crossword puzzle in "Die Zeit". That is still fun even if you use google/wikipedia to solve it.

      Actually a program to solve that would clearly qualify as AI.

      --
      The Tao of math: The numbers you can count are not the real numbers.
  20. Ken Ken - have you tried it? by Anonymous Coward · · Score: 0

    Now that's a math puzzle :)

  21. "AI is getting just a little be too commonplace?" by John+Hasler · · Score: 1

    It isn't AI. AI is whatever it is that machines can't do yet.

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  22. Re:"AI is getting just a little be too commonplace by slim · · Score: 1

    It isn't AI. AI is whatever it is that machines can't do yet.

    It's a funny old term, AI. So much so that someone coined the term "machine intelligence" to mean what AI used to mean.

    In pursuing machine intelligence, computer scientists developed a load of techniques which came to be generally useful for other purposes. LISP and Prolog came out of this. As it happens, Prolog is a very good choice of language if you ever want to write a Sudoku solver. And LISP is a good choice of language if you want to write an image recognition algorithm which processes photographs of Sudoku grids (which is the impressive part of this).

  23. Accuracy? by Cwix · · Score: 1

    I just tried it on my phone and it had trouble recognizing some of the printed numbers. So It did the sudoku puzzle without all of the clues. It gave a correct answer for what it recognized, but it placed the wrong numbers in the places that it had left out a clue so the back of the book answer was wrong. It found the correct answer on the second try but it still dropped a clue on that one also.

    --
    You are entitled to your own opinions, not your own facts.
    1. Re:Accuracy? by Metrathon · · Score: 1

      i tried it on the puzzle in my newspaper - got a good shot of it but there were many numbers not filled in from the original puzzle and so the solution had nothing to do with the intended problem... The image recognition made the same mistakes on subsequent trials which surprises me.

  24. Hey! by LoudMusic · · Score: 1

    Hey that's cheating!

    Oh right, that's what Google is for.

    --
    No sig for you. YOU GET NO SIG!
  25. Maybe You Could... by GreenSeven · · Score: 1

    Have your phone solve the puzzle before you start, don't look at it, solve it yourself and then use the phone to check your answer?? Just trying to think of how this is useful... But really, most of the time the puzzles come with the answer anyways...

    --
    The Copper Tribe - Office Software Solutions
    1. Re:Maybe You Could... by Tetsujin · · Score: 1

      Have your phone solve the puzzle before you start, don't look at it, solve it yourself and then use the phone to check your answer?? Just trying to think of how this is useful... But really, most of the time the puzzles come with the answer anyways...

      If it were a puzzle in a newspaper or something, the answer might not appear until the next issue.

      Mostly I think the purpose of something like this is to impress onlookers with the power of one's (software-augmented) mighty Sudoken attack. It's also a testbed for future cybernetic implant versions.

      --
      Bow-ties are cool.
    2. Re:Maybe You Could... by icebraining · · Score: 1

      Checking if the rules are met isn't very difficult or time consuming; it probably takes less time than launching the app, taking the picture N times until it successfully recognizes it and wait for it to solve.
      Besides, are all sudoku puzzles required to have only one solution? You might find a good solution that doesn't match the Goggles' one.

    3. Re:Maybe You Could... by slim · · Score: 1

      Have your phone solve the puzzle before you start, don't look at it, solve it yourself and then use the phone to check your answer??

      As with all NP-complete problems (by definition!) checking your answer is easy. It involves counting from 1 to 9, 27 times. In reality, if you've screwed it up, you'll find out in the course of solving it.

    4. Re:Maybe You Could... by maxwell+demon · · Score: 1

      With Sudoku, it's trivial to check if you have a solution, without being given the solution to compare with. Just check whether your alledged solution follows the rules. This is as easy as counting to 9 and checking the number is there, for each row, column and subsquare (actually you can even omit some).

      --
      The Tao of math: The numbers you can count are not the real numbers.
  26. Gentoo already did it by korgitser · · Score: 1

    Portage can solve sudokus in no time. Can't find the link now but just make ebuilds of the squares.

    --
    FCKGW 09F9 42
    1. Re:Gentoo already did it by Anonymous Coward · · Score: 0

      Portage can solve sudokus in no time. Can't find the link now but just make ebuilds of the squares.

      I think you mean Debian.

      Though, it's completely missing the point: The fun part of this is the fact you just need to snap a quick picture without having to enter the values manually.

  27. It is also fun by RingDev · · Score: 1

    Writing an application that can solve any Soduku you give it.

    Both can be enjoyable.

    -Rick

    --
    "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
  28. when I can snap a picture of my chess board... by jbuck · · Score: 1

    ...and goggles gives me it's next move, I'll be impressed.

    --
    -whoa, I'm jones'ing for a sig right about now...
    1. Re:when I can snap a picture of my chess board... by slim · · Score: 1

      When I can snap a picture of my chess board and goggles gives me it's next move, I'll be impressed.

      Like with Sudoku, this can be divided into two problems: recognising the board, and solving the puzzle.

      Choosing a reasonable chess move is something computers can already do well -- although it's much harder than Sudoku -- so that's fine.

      It doesn't feel as if recognising a chess board is too far off, for a well chosen chess set in good lighting. I'd be surprised if someone hadn't already done it. Obviously it could already work well on the kind of board diagram you get in newspaper chess columns. One that would work on any old chess set in any lighting, from a dumb user's choice of angle -- that sounds hard.

    2. Re:when I can snap a picture of my chess board... by FrootLoops · · Score: 1

      Harder than hard, sometimes it'd be impossible with a single picture. The user might cover up one piece (say, a pawn) with another (say, a king) from their bad angle choice. Depending on the other pieces you might not be able to infer the location of the covered pawn. Similarly a bishop could probably be blocked by a queen, which is even worse.

      Sometimes *I* have trouble figuring out what piece is what on a chess set, like in this random crystal set. Because I know it's probably early-game I can figure out which piece is what after looking at it for a bit, but still, that one would be horrible to feed a chess board recognizer.

  29. Machine Vision is the only 'AI' here... by Vornzog · · Score: 1

    [quote]Have you ever had the feeling that AI is getting just a little be too commonplace?[\quote]

    I wrote a 'human' version of a sudoku solver on vacation a couple of years ago - on the flight between two Hawaiian islands. It would have been easier/shorter to write the recursive solver that will solve any sudoku board, but I wanted to write code that works the puzzle similar to how I do it by hand. There wasn't much there deserving of being called 'AI'.

    The only thing vaguely AI about this is the 'Machine Vision' needed to recognize a sudoku board and ocr the numbers. I'm no AI expert, but since the board is a well-defined grid and the numbers are printed in a clean, bold, large computer font, it seems to me that most machine vision researchers could hack together to code to do this in an afternoon, made mostly from pre-existing code they had lying around anyway.

    Don't get me wrong - I love my Android phone, I'm drooling at the prospect of upgrading to a faster one in the next year or so, Google Goggles is a sweet app (it impressed the hell out of my non-technical, non-gadget-loving sister, and that is hard to do), etc, etc.

    But this isn't AI - this is sophomore algorithms homework, graduate-level (but not at all new) machine vision, and decent camera phone hardware. This isn't revolutionary, and it almost doesn't qualify for evolutionary. It comes closer to being inevitable. But think of how much more productive we can all be now that computers will solve all those pesky sudokus for us!

    --

    -V-

    Who can decide a priori? Nobody.
    -Sartre

  30. Re:"AI is getting just a little be too commonplace by Chapter80 · · Score: 1

    It isn't AI. AI is whatever it is that machines can't do yet.

    I'm glad you said that. So many people react immediately with "This isn't AI!", and you defined AI perfectly.

  31. Is This Really AI & Developed By Eugene Varsha by ClockEndGooner · · Score: 1

    I think the question at the end of the post, "... AI is getting just a little bit too commonplace?" isn't relevant to using AI to solve a Sudoku puzzle. I thought part of the definition of AI was the ability for a system and/or application to dynamically adapt and learn and apply new rules based on previous input criteria and patterns where no known patterns exist? (http://en.wikipedia.org/wiki/Artificial_intelligence). Since each valid Sudoku puzzle should have one and only one solution, there are different well defined algorithms and or approaches to solve a Sudoku puzzle solely on the correct application of logical rules, does this really count as AI?

    Nonetheless, I wonder if the Google Goggle Sudoku Solver was implemented by Eugene Varshavsky? ( Fraud Suspected At Sudoku Championship: http://www.npr.org/templates/story/story.php?storyId=114215648) {:-)

  32. a future scenario by thrillseeker · · Score: 1

    A well dressed man infiltrates a Google data center after yet another night of single malt, high stakes card games, playing with gadgets, and a roll in the hay with an exotic lass. Needing to take down the center for not complying with his archaic sense of 'dishonor' in not forcing carriers to update their damn software, he quickly sketches out an unsolvable Sudoku puzzle, snaps a picture with his Galaxy S from Verizon still stuck on crappy Android 2.1, and sends it off to be (un)solved by the data center's machines. Alarms go off, geeks panic, and the magic smoke begins to leak out of everything. With a chuckle, he heads back to the hay wagon ...

  33. NP-complete by toxonix · · Score: 1

    The AI part is image recognition of the grid and clues. That's interesting, but it's been done already. I'd like to know how they implemented the solver. The Soduku problem is considered NP-complete. Which is just about the only thing that is interesting about the puzzle. I've never bothered to solve one myself, since I don't think there is anything to learn from it. Actually implementing a solver might be an interesting waste of time though.

  34. Fully-automated Sudoku solution by Tetsujin · · Score: 2

    1: Set up a cron job on the home machine to periodically check Amazon for new Sudoku books and buy them
    2: Build a package receiving conveyor to bring the packages in once delivered.
    3: On the conveyor, set up imaging sensors to analyze the package, and robot arms to remove the packaging.
    4: Once the book is freed from its packaging, remove its binding.
    5: Move the individual pages through a paper-feed system. Along the paper-feed system there will be an examination station in which lights will illuminate the page as the phone takes a picture of the puzzle and solves it. The page is then inverted and any puzzles on the opposite side are also solved.
    6: Once each page is solved, it is no longer needed: the pages are deposited in paper recycling.

    From there, the operator just needs to take the bin out to the curb every week... I love Sudoku!

    --
    Bow-ties are cool.
    1. Re:Fully-automated Sudoku solution by Ksevio · · Score: 1

      Should probably add a step where the pages are run through a printer where the answers are printed back on the page. Then you could just have the printer output directly to the recycling.

    2. Re:Fully-automated Sudoku solution by ustolemyname · · Score: 1

      Wouldn't it be simpler to just copy the solutions pages at the back?

    3. Re:Fully-automated Sudoku solution by hellkyng · · Score: 1

      Because step 7 wasn't "Profit!" I have to assume your solution is not commercially viable, please re-submit using appropriate meme for consideration. Also your solution reeks of completeness, a bit of uncertainty ( Step 6. ????) would further your cause.

    4. Re:Fully-automated Sudoku solution by Tetsujin · · Score: 1

      Wouldn't it be simpler to just copy the solutions pages at the back?

      But then I wouldn't have the fun of delegating the responsibility of the task of solving the problem.

      --
      Bow-ties are cool.
    5. Re:Fully-automated Sudoku solution by Tetsujin · · Score: 1

      Because step 7 wasn't "Profit!" I have to assume your solution is not commercially viable, please re-submit using appropriate meme for consideration. Also your solution reeks of completeness, a bit of uncertainty ( Step 6. ????) would further your cause.

      That joke dates back to, what, 1998? I am not so in love with the Underpants Gnomes joke that I will do constant callbacks of it.

      --
      Bow-ties are cool.
  35. The Bus Pants Utilization by Anonymous Coward · · Score: 0

    Hey! Google stole this from last weeks episode of The Big Bang Theory. I'm tellin.

  36. Re:"AI is getting just a little be too commonplace by mr_gorkajuice · · Score: 1

    Indeed. By that logic, I'd claim AI got too commonplace by the time I could carry an electronic device capable of multiplication.

  37. Re:"AI is getting just a little be too commonplace by Anonymous Coward · · Score: 0

    by Google Goggles (2) on Tuesday January 11, @11:23AM

    It isn't AI. AI is whatever it is that machines can't do yet.

    I prefer the term "Artificial Person" myself.

  38. Old technology, but very neat. by impossiblefork · · Score: 1

    This feels like the sort of logic oriented AI from the 1970s that involved expert systems, LISP, prolog and constraint satisfaction problems (a sudoku solver even used to be a mandatory assignment in a class on programming paradigms) and the OCR-part is, I think, not very novel either.

    Taken all-together the thing does however look very polished and I suspect that we'll see much more like it in the future once the average programmer becomes more familiar with older research.

  39. Seriously? That's the source? by csagedy · · Score: 1

    Is there a particular reason this links to the bowels of the web instead of, oh I don't know, the official Google blog on the subject?

  40. Nothing new, Sudoku Grab for iOS already does this by EMR · · Score: 1

    The Sudoku Grab for the iphone has done this for quite some time..

    Nothing new here, move long.

  41. Wow. Great. by Fishbulb · · Score: 1

    Having a computer solve a mental exercise is like sending your robot to the gym to lift weights.

    1. Re:Wow. Great. by rockypg · · Score: 1

      Getting a computer to solve a mental exercise is often times a greater and more fulfilling mental exercise.

  42. Re:Just like "Sudoku Grab" on the iPhone has done by slim · · Score: 1

    I'm sure I've also seen a demo of an AR sudoku solver, which superimposes the solution onto video of the grid.

  43. Old news for iPhone by Anonymous Coward · · Score: 0

    Sudoku Magic has been doing this since early 2009: http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=322457381

    Still pretty neat, though!

  44. Re:Is This Really AI & Developed By Eugene Var by maxwell+demon · · Score: 1

    If it were true AI, I guess after pointing it to too many Sudokus it would refuse to solve yet another one due to boredom. :-)

    --
    The Tao of math: The numbers you can count are not the real numbers.
  45. Re:"AI is getting just a little be too commonplace by Anonymous Coward · · Score: 0

    I'm sorry, we're only granting one (1) non-human species person status this year.
    You'll have to fight it out with the dolphins.

  46. Prolog by Anonymous Coward · · Score: 1

    Prolog is fantastic for this class of problems:

    See this excerpts from Seven Languages in Seven Weeks for the source code of a Sudoku solver in Prolog.

  47. AI is getting to be just a little too commonplace? by Anonymous Coward · · Score: 0

    [quote] Have you ever had the feeling that AI is getting to be just a little too commonplace? [quote]

    Does it please you to believe that AI is getting to be just a little too common place?

    Tell me more.

  48. linked above by toby · · Score: 1

    ...and mod'd +5 informative by some incredible AI.

    http://tech.slashdot.org/comments.pl?sid=1945980&cid=34836230

    --
    you had me at #!
  49. Now do that for competitive facebook grinders by fleeped · · Score: 1

    .. So that people cheat, others get frustrated by the cheats, all lose interest and maybe MAYBE some of them find something more interesting and productive to do.

  50. Doesn't help when you are stuck by John+Marter · · Score: 1

    Unless the app works better than demonstrated in the video this is not helpful for when you are stuck. By that time the puzzle is partially filled in and possible with wrong answers. In the video this was used only on a blank puzzle. And giving the answer would not be ideal. Better would be if it tells you which squares you need to erase. Or gives a hint for just one square.

  51. pattern recognition? by toby · · Score: 1

    Usually search with backtracking.

    --
    you had me at #!
  52. AI by Tom · · Score: 1

    Have you ever had the feeling that AI is getting to be just a little too commonplace?"

    Uh, no?

    Finding the solution to stuff that requires no creativity, lateral thinking, ethical judgement or other human qualities is what computers are freaking for. It frees our minds to tackle the tasks that computers suck at. Have we taken a time machine back to the 60s and are now all afraid that computers will replace us all?

    --
    Assorted stuff I do sometimes: Lemuria.org
  53. Nothing new, Sudoku Grab for iOS already mentioned by toby · · Score: 1

    This post has been above for quite some time. http://tech.slashdot.org/comments.pl?sid=1945980&cid=34836230

    --
    you had me at #!
  54. Re:Is This Really AI & Developed By Eugene Var by Siberwulf · · Score: 1

    I was wondering the same thing. This isn't AI. This is OCR with a Sodoku solver. Tell me that it solves the puzzle without knowing it's a Sodoku, and we'll drop the AI word.

  55. Re:Just like "Sudoku Grab" on the iPhone has done by Java+Pimp · · Score: 1

    Cool. But neither of these fill in the puzzle automatically once it has the solution.

    --
    Ascalante: Your bride is over 3,000 years old.
    Kull: She told me she was 19!
  56. Is this really AI? by wrencherd · · Score: 1

    Just asking, but isn't the point of sudoku that it is solvable using only discrete logic?

    Is it reading the digits and grid what qualifies this system as "intelligent"?

  57. Re:"AI is getting just a little be too commonplace by Jane+Q.+Public · · Score: 1

    "Have you ever had the feeling that AI is getting to be just a little too commonplace?"

    Precisely. There is nothing "AI" about this, in fact it's relatively simple. It's just a bit of OCR and some iterative math. Big deal.

    A lot more often, I get the "feeling" that AI simply doesn't exist. I really despise the way the phrase is so often misused today.

  58. Re:Just like "Sudoku Grab" on the iPhone has done by Charliemopps · · Score: 1

    But no one noticed because iPhone users don't play Sudoku.

    Now the WholeFoods app was big news: http://www.wholefoodsmarket.com/iphone/
    Then there's the Volvo app: http://www.commutegreener.com/
    Then there's the Berkly app: http://www2.haas.berkeley.edu/News/Newsroom/2010-2011/100907iphone.aspx

  59. Re:Just like "Sudoku Grab" on the iPhone has done by harl · · Score: 1

    An article on how he did it? Is that really necessary? It's a trivial problem.

    Sudoku is the 8 queens algorithm; a stable of introduction to programming. Writing a program to solve sudoku is a high school level problem.

    --
    I find being offended by me offensive.
  60. Not AI! by Anonymous Coward · · Score: 0

    Since when is "AI" a synonym for "generic computer program". I'm pretty sure this "AI" is merely following a fixed algorithm.

  61. ObGrammarPolice by harl · · Score: 1

    That should be staple ya dork.

    --
    I find being offended by me offensive.
  62. Re:Doodle by TaoPhoenix · · Score: 1

    Whoever Adrian Monk was modeled after.

    --
    My first Journal Entry ever, in 8 years! http://slashdot.org/journal/365947/aphelion-scifi-fantasy-horror-poetry-webzine
  63. Re:Frontiers by TaoPhoenix · · Score: 1

    I still have a pet theory that "if we really cared" we could have strong AI in about 5 years - we're just coming into the hardware specs needed.

    However, we don't care, because it's a racial fear to have machines that can out-think us in "ordinary" things.

    Same goes with the chat bot contests - if a serious team went to work, they'd build in defensive routines designed to slam the usual cheapos. "I took a plane to Hawaii but they airline didn't have any boats." "I screwed the Queen of England into a light socket." "What's bigger, a dreadnought or the economy of Zimbabwe?"

    Same with translation, comps ought to be awesome at that - just build slang lists at the phrase level into the grammar parsing. But with only teams of 3-10 guys at a time, no wonder we can't make progress. We need a team of 400 and give them 7 years to do it.

    --
    My first Journal Entry ever, in 8 years! http://slashdot.org/journal/365947/aphelion-scifi-fantasy-horror-poetry-webzine
  64. In the news today by wesleyjconnor · · Score: 1
    Google extends their free app with cool functionality / Apple allows people to use their phone on a different provider....

    im not trolling (the universal sign of trolling) but I found this interesting

  65. Re:Songs by TaoPhoenix · · Score: 1

    Not all songs are NP-hard. Once again, we just haven't really bothered to make killer algorithms.

    On a numerical note scale for a single octave, get the comp to play around with stuff like 666155455432432541 and pretty soon you have a song. That example was a mash of about 4 different top hit songs.

    --
    My first Journal Entry ever, in 8 years! http://slashdot.org/journal/365947/aphelion-scifi-fantasy-horror-poetry-webzine
  66. Obligatory mention... by ysth · · Score: 1
  67. Re:Frontiers by Anonymous Coward · · Score: 0

    Same goes with the chat bot contests - if a serious team went to work, they'd build in defensive routines designed to slam the usual cheapos. "I took a plane to Hawaii but they airline didn't have any boats." "I screwed the Queen of England into a light socket." "What's bigger, a dreadnought or the economy of Zimbabwe?"

    How does that make you feel?

  68. Re:Just like "Sudoku Grab" on the iPhone has done by TheLink · · Score: 1

    What Word Lens does is more interesting than a sudoku solver: http://www.youtube.com/watch?v=h2OfQdYrHRs

    --
  69. Hardly new by 1s44c · · Score: 1

    This is hardly new. I've been using OCR on and off for decades. I wrote a sudoku solver for 9x9 and 16x16 puzzles around 10 years ago and put it on the web for nothing when I realized that some slimeballs were charging to use a web based version.

    I'll bet a whole load of slashdotters had more fun writing sudoku solvers than manually solving the puzzles.

  70. On the NP-completeness of Sudoku by jonaskoelker · · Score: 1

    Graph-coloring (and sudoku) is NP-complete btw.

    True. However, the argument emphatically isn't

    Graph coloring is NP-complete. Sudoku is graph-coloring. Therefore, Sudoku is NP-complete. ... because "is" is used in two different senses in the two first occurences.

    Consider the set of all 9-colourable graphs. There's a map, mapping every soluble sudoku instance to a 9-colourable graph. However, this map doesn't need to be surjective; there might be 9-colourable graphs that do not correspond to sudoku instances (for instance, by not having exactly 81 nodes).

    The NP-completeness of the problem "is this graph an element of the set of 9-colourable graphs" doesn't directly translate to a statement about any subset of the set of 9-colourable graphs. For example, the empty set is such a subset, and deciding membership of the empty set is rather easy.

  71. Re:Just like "Sudoku Grab" on the iPhone has done by Anonymous Coward · · Score: 0

    Which bit of "via the camera" are you unable to read?

  72. Obligatory TBBT reference by azgard · · Score: 1

    Can it solve differential equations too? And recognize shoe vendors?

  73. "I'm sorry, Dave, I just can't agree with that" by TheLoneGundam · · Score: 1

    "I'm sorry, Dave, I just can't agree with the idea that AI is getting too commonplace"

  74. defeats the purpose. by RockDoctor · · Score: 1
    All properly constructed sudoku have a unique solution.

    The challenge is in finding that solution.

    If dealing with 3-sudoku (i.e. 3^3x3^2 grids), you should be able to solve it, if slowly.

    4-sudoku (i.e. 4^2x4^2 grids) require either abnormal memory capabilities, or good record-keeping.

    Does anyone have a source of 5-sudoku? I feel the need for a challenge.

    --
    Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  75. Google googles... by vikstar · · Score: 1

    was written so that millions of chicks would send in pics of their breasts to search for comparisons. In terms of pics sent in to compare the sizes of body parts, most google engineers didn't not get what they were after.

    --
    The question of whether a computer can think is no more interesting than the question of whether a submarine can swim.