Today's (Optional) Daily Puzzle
Main Story Below
Sudoku has its roots in magic squares, square grids filled by consecutive integers with the magical property that the sum of each row, column, and main diagonal is equal.
It may be hard, but you don't have to be a magician to solve this 3x3 magic square. Click once to drag and once again to drop. When the square is complete, check below for a button leading to the next section.
Fortunately, 18th century mathematician Leonard Euler devised a more straightforward scheme. No numbers involved, latin squares are also square grids with the latin property that all rows and columns had the same letters. In other words, no letter could appear twice in the same row or column.
Shapes are happy when they're in other shapes; get them inside the squares. Remember, no two in the same row or column. (Sorry, the cute shapes only live inside this box.)
Sudoku proper first materialized not in Japan but in a 1979 edition of Dell Pencil Puzzles and Word Games. Solvers had to place the numbers 1-9 on a 9x9 grid so that each row, column, and 3x3 box had no repetitions. For now we'll keep it simple (stupid?) with this 4x4.
You can hit a number key to quickly get the corresponding piece, and hit the r key over a set piece to quickly remove it.
Here's a simple tutorial showing some of the basic ideas you should have when solving a sudoku puzzle.
Here you can play around with generating and solving 9x9 puzzles; the slider below controls the number of hints given when you generate a new puzzle. (Caution: values below 30 will cause some delay.)
Sudoku doesn't use arithmetic at all, so we can get rid of the numbers. Try thinking with colors instead!
Perhaps sudoku with colors is a little too weird. How about random shapes?
If there were a Solve button or a Hint button, then this wouldn't be the World's Hardest Puzzle!
How to play: Fill in all empty cells with the 9 symbols, so that they don't appear more than once in each row, column and inside 3x3 block.
Jurors Caught Playing Sudoku During Trial
AFTER 105 witnesses and three months of evidence, a drug trial costing $1 million was aborted yesterday when it emerged that jurors had been playing Sudoku since the trial's second week. In the District Court in Sydney, Judge Peter Zahra discharged the jury after hearing evidence from two accused men, one of their solicitors and the jury forewoman, who admitted that she and four other jurors had been diverting themselves in the jury box by playing the popular numbers game. More than 20 police gave evidence in the case, in which the two accused faced a common charge of conspiracy to manufacture a commercial quantity of amphetamines. One faced further firearms and drug possession indictments. The prosecution and defence were due to deliver final addresses to the jury this week. But last week, as one of the accused was giving evidence, he saw the jury forewoman playing what he thought was Sudoku. His co-accused saw it too, and the defence counsel, Adam Morison and Michael Coroneos, made a joint application for a discharge. Yesterday Judge Zahra took unsworn evidence from the forewoman in which she confirmed the accused men's suspicions. She said four or five jurors had brought in the Sudoku sheets and photocopied them to play during the trial and then compare their results during meal breaks. She admitted to having spent more than half of her time in court playing the game. The trial, which started on March 4, has cost more than $1 million, including counsels' fees, staff wages and court running costs for 60 days of hearings. Judge Zahra, who had previously commended the jury for its apparent diligence, told the forewoman that the Sudoku players had let down their fellow jurors and all involved in the trial. Mr Morison said it was "extraordinary that 105 witnesses, including 20 police, had been in the witness box and not seen what was happening". He called on the NSW Sheriff's Office to update its guidelines to inform jurors that it was unacceptable to play games during a trial.
The Most Difficult Sudoku?
Those who find our number puzzles a bit of a doddle may wish to sharpen their pencils for the ultimate test: what is claimed to be the world's hardest sudoku. The Everest of numerical games was published by Arto Inkala, a Finnish mathematician, on his website and is specifically designed to be unsolvable to all but the sharpest minds. On the difficulty scale by which most sudoku grids are graded, with one star signifying the simplist and five stars the hardest, this puzzle would score an eleven, he explained. Sudoku is a familiar challenge to newspaper readers and puzzle enthusiasts, requiring each vertical line, horizontal line and nine-square box to contain every number from one to nine. While that might sound simple, the particular difficulty in this version lies in the number of deductions you have to make in order to fill in a single number on the grid. Instead of being able to spot where a number goes based solely on the boxes that have already been filled in, most moves will face you with two or more spaces where a number could fit. Only one of these is correct, but to find it you must examine all possible options for your next move and perhaps the move after that, continuing in the same vein until all but one potential route results in a dead end. Mr Inkala said the most difficult parts of the grid require you to think ten moves ahead, exploring a series of permutations at each stage in order to eliminate all routes other than the right one. He added: "It is difficult to say if any one [puzzle] is the hardest or not, because I believe the hardest one is not yet discovered. "I am not sure if it is impossible to make, but there are so many possibilities to formulate that [I think] the most difficult one has not yet been found."
The Minimum Sudoku
In 2012 Gary McGuire proved that there needs to be at least 17 clues for a Sudoku puzzle to have a single solution. In other words, any puzzle with under 17 clues can be solved by two people who can get different but equally valid solutions. Puzzles with multiple solutions lose some of the appeal of single-soution puzzles; guessing is necessary at some point, which clashes with how people generally believe a puzzle should be solved. In the extreme case, what do you think it means to solve an empty grid?
Sudoku as a Verification Code
When images are transimitted over a network, they can be tampered with to erase or falsify information (for example, changing the printed charges on an invoice). The familiar defense is to use another image as a watermark, but a team of researchers came up with a way to authenticate images using a sudoku grid. They create a filled 4x4 sudoku grid, and then tile it to create a map of numbers the same size as the image. Each pixel value in the image is adjusted so that it (mod 4 + 1) equals the value in the corresponding box in the sudoku map, and then the image is sent. The receiver just has to tile the image they receive and make sure that the pixel values in each tile fit the rules of sudoku; if they don't, then they know that the image has been corrupted or tampered with over the network!
My Life Is Sudoku
Sometimes I wonder why I enjoy sudoku so much.
I love mind games, I love Sudoku.
No matter how hard the puzzle is, I can play you just as well, Suoku. We're so similar. I love playing games with people just as much as you. I love order, and you're so orderly. I love logic, and you're thinking is so clear to me. I love strategy, I'm envious of your challenges. I love numbers and patters, you give me just what I like.
There's so many qualities in you that I have found I admire in myself as well. You know how to get people addicted to you, so fixated on figuring you out, so interested to solve you, they all want to be the one to complete you.
You fit me, and I fit you. Just like the numbers placed so carefully planned in your 9x9 mind.
You're just like me, Sodoku. I'm just like you.
-Anonymous, October 2013
The "Sudoku Effect"
One thing any avid sudoku player knows is how hard it is to rectify errors once they've been discovered; unfortunately, these kinds of errors pop up in real life. The ECTS system in Europe has allowed degree programs to be split into thematic modules. Theoretically students should be able to take different modules at different unviersities and be able to turn in the ECTS credits they've earned for each module for a degree. The problem is that the credit values for each module have to sum up to a certain number, like 180 for Bachelor's degrees. One university accidently offered the same course in two different modules (let's call them A and B), and students pursuing a certain degree had to take both modules. When students complained, planners removed the course from one module A, but now module A had 2 credits too little. They tried to compensate by making the course worth four points, so that module B had 2 extra credits to compensate. Sadly, this didn't solve the problem because students who were only required to take one of the two now ended up having 2 credits too much or too little; literally hundreds of man-hours were lost trying to figure out the solution.
My secret vice is Sudoku puzzles. Can't stop playing them. My parents are accountants. I blame them entirely.
-Lisa Gardner
Odds vs Evens
The odd-even effect refers to the phonomenon that people tend to work with even numbers better than odd numbers. One hypothesis is that mentally representing odd numbers is simply more difficult than doing the same for evens. Researchers had previously tested this using tasks that involved "quantitative processing" (arithmetic, for example), but such experiments would only answer, "Is it harder to use odd numbers in numerical processing?", and not, "Is it harder to think about odd numbers in general?". So to test the hypothesis at its core, one group turned to Sudoku, which generally uses numbers but no arithmetic. Participants were given a puzzle that only used even numbers as its symbols and one that only used odd numbers. The odd-even effect showed up as participants did more accurately on the even puzzle than the odd puzzle, supporting the idea that a number like 13 is harder to think about than a number like 12.
train is coming soon
enjoy a quick game and wait
train has passed me by
Simple and Slow
There exists only 6,670,903,752,021,072,936,960 valid, filled 9x9 sudoku grids. Therefore, to solve any puzzle all you have to do is start with one of the possible grids and check if the clues match up. If they do, then you have the solution, and if they don't, simply try another one. If you've checked all the grids without finding a match, then you know the puzzle doesn't have one. If you have a good computer that can check 1000 grids per second, then at most this would only take you 200 billion years!
Better and Faster
Programs will often use a "backtracking" algorithm to solve sudoku puzzles: empty squares are filled one by one with numbers which may or may not be correct. If at some point there's a contradiction, the program will backtrack by removing one or more of the numbers it had placed and trying different numbers instead. While this is incredibly tedious for humans, computers can do this amazingly quickly; the solver this newspaper uses can solve most sudoku puzzles in a few milliseconds. On the other hand, humans
want to avoid backtracking as much as possible. As stated, it's tedious, and also hard to do with pencil and paper. To this end we have a variety of strategies to determine the correct number for a single square, and generally we apply them in order from the simplest (like those shown in the tutorial) to the most complicated strategies like X-Wings and Swordfish. Only when all of these strategies have been exhausted do we resort to backtracking and guessing.
Miscellaneous Stuff
This playable page is by Elijah Agbayani with guidance from Hesam Samimi
and valuable feedback from Evelyn Eastmond, both of CDG Labs.
It's inspired in part by the Parable of The Polygons, created by Vi Hart and Nicky Case, from whom we stole adapted the draggable pieces (and the cute shapes too),
and in part by my good friend Ryan Kumala, who gave me the idea for a newspaper layout.
References/Related Info by Article