

Google Goggles Solves Sudoku 206
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?"
better-it-than-me? (Score:2)
Re: (Score:2)
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.
Re: (Score:2)
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).
Sudoku porn (Score:3)
Ever been frustrated when you can't solve a Sudoku
No. Never been unable to solve one. :)
Re: (Score:3)
Re: (Score:2)
Never been unable to, but then I've never solved one either.
Re: (Score:3)
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)?
Re: (Score:2)
backtracking is not that naive
naive is usually a full deep first space search
Re:Sudoku porn (Score:4, 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)
Re: (Score:2)
What language did you write it in (not trolling here)?
klingon#
Re: (Score:2)
Somehow, I am both intrigued and frightened at the prospect of Klingon dialects of Perl.
Re: (Score:2)
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.
Re: (Score:2)
my highly unoptimized c code can do that in milliseconds. on a fucking ancient 800mhz core duo.
Re: (Score:2)
They're fun for a while, but once you figure out the techniques it gets old fast.
Re: (Score:2)
D'oh. Blocked at my work!
Just like "Sudoku Grab" on the iPhone has done for (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
Re: (Score:2)
I'm sure I've also seen a demo of an AR sudoku solver, which superimposes the solution onto video of the grid.
Re: (Score:2)
Cool. But neither of these fill in the puzzle automatically [tiltedtwister.com] once it has the solution.
Need more AI (Score:3)
Could do with some more English AI apps, if you ask me.
Re:Need more AI (Score:5, Funny)
Something makes me think that you don't really believe the quote in your signature.
Re: (Score:2, Flamebait)
Re: (Score:2)
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
Re: (Score:2)
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
we hath defeated the purpose (Score:5, Insightful)
OK, it's cool technology, but this is almost as pointless as Homer Simpson's book of already-solved crossword puzzles.
Re: (Score:3)
Re: (Score:2)
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 puzzl
Re: (Score:2)
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.
Re: (Score:2)
Re: (Score:2)
Was that the same crossword puzzle book that was in the last new episode? :)
Re: (Score:2)
Too on-the-nose.
Sudoku (Score:3)
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.
Re: (Score:2)
Re: (Score:3)
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.
Re: (Score:2)
Re: (Score:3)
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.
linked above (Score:2)
...and mod'd +5 informative by some incredible AI.
http://tech.slashdot.org/comments.pl?sid=1945980&cid=34836230 [slashdot.org]
Re: (Score:3)
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
Re: (Score:2)
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.
Re: (Score:2)
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
solving Soduku (Score:3, Insightful)
Re: (Score:2)
Re: (Score:2)
Re:solving Soduku (Score:5, Insightful)
Re: (Score:3)
It is also fun (Score:2)
Writing an application that can solve any Soduku you give it.
Both can be enjoyable.
-Rick
Re: (Score:2)
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.
Re: (Score:2)
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.
Stunning (Score:2)
I grew up on Asimov, Clarke, and Heinlein, but this is truly science fiction.
Re:Stunning (Score:4, 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.
Re: (Score:2)
most real intelligences can't create, I'm not sure why you have such lofty ideals for an artificial one.
Re: (Score:2)
"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 al
Re: (Score:2)
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.
Re: (Score:2)
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.
Re: (Score:2)
"computers are useless. they can only answer questions"
-pablo picasso
Re: (Score:2)
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.
pattern recognition? (Score:2)
Re: (Score:2)
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 v
it really works, its quite amazing (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
Re: (Score:2)
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.
Re: (Score:2)
Re: (Score:3)
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!
Re: (Score:3)
Re: (Score:2)
Re: (Score:2)
thanks google goggles
Re: (Score:2)
More like stole your app ideas for them to use. Then, you get fired for leaking out work's confidential information!
i like this trend (Score:2)
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.
Sudokus (Score:2)
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 th
Re: (Score:3)
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.
Re: (Score:3, Interesting)
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
Re: (Score:2)
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.
Re:Sudokus (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).
Re: (Score:2)
Re: (Score:2)
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 beh
wharrgarbl (Score:2)
Be common too place to the whatsit?
"AI is getting just a little be too commonplace?" (Score:2)
It isn't AI. AI is whatever it is that machines can't do yet.
Re: (Score:2)
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
Re: (Score:2)
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.
Accuracy? (Score:2)
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.
Hey! (Score:2)
Hey that's cheating!
Oh right, that's what Google is for.
Machine Vision is the only 'AI' here... (Score:2)
[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 V
a future scenario (Score:2)
Fully-automated Sudoku solution (Score:3)
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!
Re: (Score:2)
Re: (Score:2)
Nothing new, Sudoku Grab for iOS already does this (Score:2)
The Sudoku Grab for the iphone has done this for quite some time..
Nothing new here, move long.
Nothing new, Sudoku Grab for iOS already mentioned (Score:2)
This post has been above for quite some time. http://tech.slashdot.org/comments.pl?sid=1945980&cid=34836230 [slashdot.org]
Wow. Great. (Score:2)
Having a computer solve a mental exercise is like sending your robot to the gym to lift weights.
AI (Score:2)
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?
Re: (Score:2)
Re: (Score:2)
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.
Re: (Score:2)
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.
Re: (Score:2)
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 requir
Re: (Score:2)
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.
Re: (Score:2)
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.
Re: (Score:2)
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.
Re: (Score:2)
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.
Re: (Score:2)
How come there isn't a version of Goggles for iPhone yet?
Re: (Score:2)
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 w
Re: (Score:2)
Sometimes *I* have trouble figuring out what piece is what on a chess set, like in this random crystal set [replacements.com]. Because I know it's probably early-game I can figure out
Re: (Score:2)