ArticleslgStudy

computer science

Sudoku

Sudoku is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Sudoku rather than just read about it. In short: Sudoku (; Japanese: 数独, romanized: sūdoku, lit. 'digit-single'; originally called Number Place) is a logic-based, combinatorial number-placement puzzle. In classic sudoku, the objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 subgrids that compose the grid (also called "boxes", "blocks", or "regions") contains all of the digits from 1 to 9.

Sudoku — main illustration
Sudoku — illustration

Key takeaways

  • Sudoku belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Sudoku to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Sudoku from memory before moving on to harder problems.

Reference excerpt

Sudoku (; Japanese: 数独, romanized: sūdoku, lit. 'digit-single'; originally called Number Place) is a logic-based, combinatorial number-placement puzzle. In classic sudoku, the objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 subgrids that compose the grid (also called "boxes", "blocks", or "regions") contains all of the digits from 1 to 9. The puzzle setter provides a partially completed grid, which, for a well-posed puzzle, has a single solution. Although single-digit numbers are conventionally used as the nine symbols in the puzzle, the puzzle would be the same if other symbols were used, as no calculations are applied to the numbers when solving a conventional sudoku puzzle. French newspapers featured similar puzzles in the 19th century, and the modern form of the puzzle first appeared in 1979 puzzle books by Dell Magazines under the name Number Place. However, the puzzle type only began to gain widespread popularity in 1984 when it was published by the Japanese puzzle company Nikoli as "Suuji wa dokushin ni kagiru" (the numbers must be single), and in 1986 Maki Kaji (鍜治 真起, Kaji Maki), the president and co-founder of Nikoli, shortened the name to sudoku, where "su" is number and "doku" is single. In newspapers outside of Japan, it first appeared in The Conway Daily Sun (of North Conway, New Hampshire) in September 2004, and then The Times (of London) in November 2004, both using puzzles generated by a computer program written by the former Hong Kong judge Wayne Gould, who had encountered the puzzles when visiting Tokyo.

History

Predecessors Number puzzles appeared in newspapers in the late 19th century, when French puzzle setters began experimenting with removing numbers from magic squares. Le Siècle, a Paris daily, published a partially completed 9×9 magic square with 3×3 subsquares on November 19, 1892. It was not a sudoku because it contained double-digit numbers and required arithmetic instead of sudoku logic to solve, but it shared key characteristics: each row, column, and subsquare added up to the same number. On July 6, 1895, Le Siècle's rival, La France, refined the puzzle so that it was almost a modern sudoku and named it carré magique diabolique ("diabolical magic square"). It simplified the 9×9 magic square puzzle so that each row, column, and broken diagonals contained only the numbers 1–9, but did not mark the subsquares. Although they were unmarked, each 3×3 subsquare did indeed comprise the numbers 1–9, and the additional constraint on the broken diagonals led to only one solution. These weekly puzzles were a feature of French newspapers such as L'Écho de Paris for about a decade, but disappeared about the time of World War I.

Modern sudoku

The modern sudoku was most likely designed anonymously by Howard Garns, a 74-year-old retired architect and freelance puzzle constructor from Connersville, Indiana, and first published in 1979 by Dell Magazines as Number Place (the earliest known examples of modern sudoku). The New York Times puzzle editor Will Shortz discovered in 2005 that Garns' name was always present on the list of contributors in issues of Dell Pencil Puzzles and Word Games that included Number Place and was always absent from issues that did not, resulting in the discovery of his role in the puzzle's invention. Garns died in 1989 before getting a chance to see his creation as a worldwide phenomenon. Whether or not Garns was familiar with any of the French newspapers listed above is unclear. The puzzle was introduced in Japan by Maki Kaji (鍜治 真起, Kaji Maki), president of the Nikoli puzzle company, in the paper Monthly Nikolist in April 1984 as Sūji wa dokushin ni kagiru (数字は独身に限る), which can be translated as "the digits must be single", or as "the digits are limited to one occurrence" (In Japanese, dokushin means an "unmarried person"). According to a 2007 article by the BBC, Kaji had come across the puzzle in the Dell puzzle books published in the United States. Kaji created the abbreviated name sudoku (数独), by taking only the first kanji of compound words to form a shorter version. Nikoli claims to hold trademark rights to the name "sudoku" in Japan, and some other publishers use the name Number Place (ナンバープレース, Nanbāpurēsu) or, more informally, a shortening of the two words, Num(ber) Pla(ce) (ナンプレ, Nanpure). The puzzles are now published in mainstream Japanese periodicals, such as the Asahi Shimbun, as well as in puzzle books.

Spread outside Japan In 1997, the recently retired Hong Kong judge Wayne Gould saw a sudoku puzzle book in a Tokyo bookshop. Over six years, he developed a computer program to produce the puzzles and rate their difficulty. The first newspaper outside of Japan to publish a sudoku puzzle was The Conway Daily Sun (of North Conway, New Hampshire), which published a puzzle by Gould in September 2004. Gould's wife Gayle was a professor of linguistics at the local university. Gould pitched the idea of publishing sudoku puzzles to newspapers, offering the puzzles for free in exchange for the newspapers' attributing them to him and linking to his website for solutions and other puzzles. Knowing that British newspapers have a long history of publishing crosswords and other puzzles, he promoted sudoku to The Times in Britain, which launched it on November 12, 2004 (calling it Su Doku). The first letter to The Times regarding Su Doku was published the following day on November 13 from Ian Payn of Brentford, complaining that the puzzle had caused him to miss his stop on the tube. Sudoku puzzles rapidly spread to other newspapers as a regular feature. The rapid rise of sudoku in Britain from relative obscurity to a front-page feature in national newspapers attracted commentary in the media and parody (such as when The Guardian's G2 section advertised itself as the first newspaper supplement with a sudoku grid on every page). Recognizing the different psychological appeals of easy and difficult puzzles, The Times introduced both, side by side, on June 20, 2005. From July 2005, Channel 4 included a daily sudoku game in their teletext service. On August 2, the BBC's programme guide Radio Times featured a weekly "Super Sudoku" with a 16×16 grid.

… excerpt ends here. Continue reading the full article.

Illustrations

Sudoku illustration
Sudoku illustration
Sudoku: From La France newspaper, July 6, 1895: The puzzle instructions read, "Use the numbers 1 to 9 nine times each to complete the grid in such a way that the horizontal, vertical, and two main diagonal lines all add up to the same total."
From La France newspaper, July 6, 1895: The puzzle instructions read, "Use the numbers 1 to 9 nine times each to complete the grid in such a way that the horizontal, vertical, and two main diagonal lines all add up to the same total."
Sudoku: Sudoku board game with two-sided black-red tiles
Sudoku board game with two-sided black-red tiles
Sudoku: The world's first live TV sudoku show, held on July 1, 2005, Sky One
The world's first live TV sudoku show, held on July 1, 2005, Sky One

Worked examples

Example 1 — a first encounter with Sudoku

Start with the simplest possible case. Write down what Sudoku claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Sudoku before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Sudoku ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Sudoku

In research
Sudoku appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Sudoku in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Sudoku is common in secondary-school and first-year university syllabi. It links to neighbouring topics Abstract strategy games, Computer-assisted proofs, Japanese games, so understanding it makes those chapters shorter.
In everyday life
Look for Sudoku outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Sudoku” →

How to study Sudoku in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Sudoku means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Sudoku out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Sudoku in simple terms?

Sudoku (; Japanese: 数独, romanized: sūdoku, lit. 'digit-single'; originally called Number Place) is a logic-based, combinatorial number-placement puzzle. In classic sudoku, the objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 subgrids that compose t…

Why does Sudoku matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Sudoku?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Sudoku.

Tags

  • Abstract strategy games
  • Computer-assisted proofs
  • Japanese games
  • Latin squares
  • Logic puzzles
  • NP-complete problems
  • Paper-and-pencil games
  • Puzzles
  • Sudoku

Keep exploring