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?"
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.
No, not really.
Ever been frustrated when you can't solve a Sudoku
No. Never been unable to solve one. :)
Lazyness abounds....
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
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.
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
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/
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
I thought the fun was in trying to solve it yourself, not through having a machine give you the correct answer.
Video Game cheats, hints a
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.
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
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.
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.
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.
Can't believe this... Pretty cool.
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!
Be common too place to the whatsit?
occultae nullus est respectus musicae - originally a Greek proverb
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?
Technoli
Now that's a math puzzle :)
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.
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).
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.
Hey that's cheating!
Oh right, that's what Google is for.
No sig for you. YOU GET NO SIG!
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
Portage can solve sudokus in no time. Can't find the link now but just make ebuilds of the squares.
FCKGW 09F9 42
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
...and goggles gives me it's next move, I'll be impressed.
-whoa, I'm jones'ing for a sig right about now...
[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
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.
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) {:-)
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 ...
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.
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.
Hey! Google stole this from last weeks episode of The Big Bang Theory. I'm tellin.
Indeed. By that logic, I'd claim AI got too commonplace by the time I could carry an electronic device capable of multiplication.
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.
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.
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?
The Sudoku Grab for the iphone has done this for quite some time..
Nothing new here, move long.
Having a computer solve a mental exercise is like sending your robot to the gym to lift weights.
I'm sure I've also seen a demo of an AR sudoku solver, which superimposes the solution onto video of the grid.
Sudoku Magic has been doing this since early 2009: http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=322457381
Still pretty neat, though!
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.
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.
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.
[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.
...and mod'd +5 informative by some incredible AI.
http://tech.slashdot.org/comments.pl?sid=1945980&cid=34836230
you had me at #!
.. 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.
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.
Usually search with backtracking.
you had me at #!
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
This post has been above for quite some time. http://tech.slashdot.org/comments.pl?sid=1945980&cid=34836230
you had me at #!
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.
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!
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"?
"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.
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
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.
Since when is "AI" a synonym for "generic computer program". I'm pretty sure this "AI" is merely following a fixed algorithm.
That should be staple ya dork.
I find being offended by me offensive.
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
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
im not trolling (the universal sign of trolling) but I found this interesting
http://www.awfullybigmoustache.com
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
Sudoku: The Pointless Puzzle
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?
What Word Lens does is more interesting than a sudoku solver: http://www.youtube.com/watch?v=h2OfQdYrHRs
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.
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.
Which bit of "via the camera" are you unable to read?
Can it solve differential equations too? And recognize shoe vendors?
"I'm sorry, Dave, I just can't agree with the idea that AI is getting too commonplace"
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"
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.