Nature | From the blog

# Mathematician claims breakthrough in Sudoku puzzle

Puzzles must have at least 17 clues to have a valid solution.

Corrected:

## Article tools

Rights & Permissions

An Irish mathematician has used a complex algorithm and millions of hours of supercomputing time to solve an important open problem in the mathematics of Sudoku, the game popularized in Japan that involves filling in a 9X9 grid of squares with the numbers 1–9 according to certain rules.

Gary McGuire of University College Dublin shows in a proof posted online on 1 January1 that the minimum number of clues — or starting digits — needed to complete a puzzle is 17; puzzles with 16 or fewer clues do not have a unique solution. Most newspaper puzzles have around 25 clues, with the difficulty of the puzzle decreasing as more clues are given.

Gary McGuire

A sudoku puzzle needs at least 17 clues to be solvable.

The emerging consensus among mathematicians at a conference in Boston, Massachusetts, on 7 January was that McGuire’s proof is probably valid and an important advance in the growing field of Sudoku maths.

“The approach is reasonable and it’s plausible. I’d say the attitude is one of cautious optimism,” says Jason Rosenhouse, a mathematician at James Madison University in Harrisonburg, Virginia, and the co-author of a newly released book on the maths of Sudoku.

The rules of Sudoku require puzzlers to fill out a 9X9 grid with the numbers 1–9 so that no digit is repeated within the same column, row, or 3X3 subgrid. The clues are the numbers that are filled in to begin with, and enthusiasts have long observed that although there are some puzzles with 17 clues, no one has been able to come up with a valid 16-clue puzzle. That led to the conjecture that 16-clue puzzles with unique solutions simply do not exist. A potential way to demonstrate that could be to check all possible completed grids for every 16-clue puzzle, but that would take too much computing time. So McGuire simplified the problem by designing a 'hitting-set algorithm'. The idea behind this was to search for what he calls unavoidable sets, or arrangements of numbers within the completed puzzle that are interchangeable and so could result in multiple solutions. To prevent the unavoidable sets from causing multiple solutions, the clues must overlap, or 'hit', the unavoidable sets. Once the unavoidable sets are found, it is a much smaller—although still non-trivial—computing task to show that no 16-clue puzzle can hit them all.

Having spent two years testing the algorithm, McGuire and his team used about 7 million CPU hours at the Irish Centre for High-End Computing in Dublin, searching through possible grids with the hitting-set algorithm. “The only realistic way to do it was the brute force approach,” says Gordon Royle, a mathematician at the University of Western Australian in Perth who had been working on the problem of counting 17 clue puzzles using different algorithms. “It’s a challenging problem that inspires people to push computing and mathematical techniques to the limit. It’s like climbing the highest mountain.”

A consequence of the approach taken is that it will take some time for others to get enough computing time to check the proof, says Laura Taalman, a mathematician also at James Madison University, who co-authored the book Taking Sudoku Seriously: The Math Behind the World’s Most Popular Pencil Puzzle with Rosenhouse. Taalman notes that the book, which came out last week, is already outdated: it says that the problem remains open and that whoever solves it will be a “rock star.”

McGuire says that his approach may pay off in other ways. The hitting-set idea that he developed for the proof has been used in papers on gene-sequencing analysis and cellular networks, and he looks forward to seeing if his algorithm can be usefully adapted by other researchers. “Hopefully this will stimulate more interest,” he says.

But he says that, ironically, as he dedicated more of his time to the maths of the conundrum, he spent less time enjoying the puzzle. “I still find it a nice way to relax now and then but to be honest I prefer doing the crossword,” he says.

Journal name:
Nature
DOI:
doi:10.1038/nature.2012.9751

# Corrections

Corrected:

The authors used about 7 million hours of CPU time and not 700 million as originally stated in the story.

# References

1. et al. arXiv preprint http://arxiv.org/abs/1201.0749 (2011).

For the best commenting experience, please login or register as a user and agree to our Community Guidelines. You will be re-directed back to this page where you will see comments updating in real-time and have the ability to recommend comments to other users.

### Commenting is currently unavailable.

What matters in science — and why — free in your inbox every weekday.

## Listen

### Nature Podcast

Our award-winning show features highlights from the week's edition of Nature, interviews with the people behind the science, and in-depth commentary and analysis from journalists around the world.

## Science jobs from naturejobs

• ### South China Normal University sincerely invite oversea talented scholars to apply for the Recruitment Program for Young Professionals

South China Normal University

• ### Postdoctoral Research Associate

The Scripps Research Institute - Florida

• ### Worldwide Search for Talent at City University of Hong Kong

City University of Hong Kong

• ### Assistant Professor - Immunobioengineering

University of Toronto

• ### Associate / Full Professor - Immunobioengineering

University of Toronto