
In the
mathematics of Sudoku
Mathematics can be used to study Sudoku puzzles to answer questions such as "How many filled Sudoku grids are there?", "What is the minimal number of clues in a valid puzzle?" and "In what ways can Sudoku grids be symmetric?" through the use o ...
, the Sudoku graph is an
undirected graph
In discrete mathematics, particularly in graph theory, a graph is a structure consisting of a set of objects where some pairs of the objects are in some sense "related". The objects are represented by abstractions called '' vertices'' (also call ...
whose
vertices represent the cells of a (blank) Sudoku puzzle and whose
edges represent pairs of cells that belong to the same row, column, or block of the puzzle. The problem of solving a Sudoku puzzle can be represented as
precoloring extension on this graph. It is an
integral
In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
Cayley graph
In mathematics, a Cayley graph, also known as a Cayley color graph, Cayley diagram, group diagram, or color group, is a Graph (discrete mathematics), graph that encodes the abstract structure of a group (mathematics), group. Its definition is sug ...
.
Basic properties and examples
On a Sudoku board of size
, the Sudoku graph has
vertices, each with exactly
neighbors. Therefore, it is a
regular graph
In graph theory, a regular graph is a Graph (discrete mathematics), graph where each Vertex (graph theory), vertex has the same number of neighbors; i.e. every vertex has the same Degree (graph theory), degree or valency. A regular directed graph ...
. The total number of edges is
.
For instance, the graph shown in the figure above, for a
board, has 16 vertices and 56 edges, and is 7-regular.
For the most common form of Sudoku, on a
board, the Sudoku graph is a 20-regular graph with 81 vertices and 810 edges.
The second figure shows how to count the neighbors of each cell in a
board.
Puzzle solutions and graph coloring
Each row, column, or block of the Sudoku puzzle forms a
clique
A clique (AusE, CanE, or ; ), in the social sciences, is a small group of individuals who interact with one another and share similar interests rather than include others. Interacting with cliques is part of normative social development regardles ...
in the Sudoku graph, whose size equals the number of symbols used to solve the puzzle. A
graph coloring
In graph theory, graph coloring is a methodic assignment of labels traditionally called "colors" to elements of a Graph (discrete mathematics), graph. The assignment is subject to certain constraints, such as that no two adjacent elements have th ...
of the Sudoku graph using this number of colors (the minimum possible number of colors for this graph) can be interpreted as a solution to the puzzle. The usual form of a Sudoku puzzle, in which some cells are filled in with symbols and the rest must be filled in by the person solving the puzzle, corresponds to the
precoloring extension problem on this graph.
Algebraic properties
For any
, the Sudoku graph of an
Sudoku board is an
integral graph
In the mathematical field of graph theory, an integral graph is a graph whose adjacency matrix's spectrum consists entirely of integers. In other words, a graph is an integral graph if all of the roots of the characteristic polynomial of its adjac ...
, meaning that the
spectrum
A spectrum (: spectra or spectrums) is a set of related ideas, objects, or properties whose features overlap such that they blend to form a continuum. The word ''spectrum'' was first used scientifically in optics to describe the rainbow of co ...
of its
adjacency matrix
In graph theory and computer science, an adjacency matrix is a square matrix used to represent a finite graph (discrete mathematics), graph. The elements of the matrix (mathematics), matrix indicate whether pairs of Vertex (graph theory), vertices ...
consists only of integers. More precisely, its spectrum consists of the
eigenvalue
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
s
*
, with multiplicity
,
*
, with multiplicity
,
*
, with multiplicity
,
*
, with multiplicity
,
*
, with multiplicity
, and
*
, with multiplicity
.
It can be represented as a
Cayley graph
In mathematics, a Cayley graph, also known as a Cayley color graph, Cayley diagram, group diagram, or color group, is a Graph (discrete mathematics), graph that encodes the abstract structure of a group (mathematics), group. Its definition is sug ...
of the
abelian group
In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is commu ...
.
Related graphs
The Sudoku graph contains as a subgraph the
rook's graph, which is defined in the same way using only the rows and columns (but not the blocks) of the Sudoku board.
The 20-regular 81-vertex Sudoku graph should be distinguished from a different 20-regular graph on 81 vertices, the
Brouwer–Haemers graph
In the mathematical field of graph theory, the Brouwer–Haemers graph is a 20- regular undirected graph with 81 vertices and 810 edges.
It is a strongly regular graph, a distance-transitive graph, and a Ramanujan graph. Although its construc ...
, which has smaller cliques (of size 3) and requires fewer colors (7 instead of 9).
References
{{reflist, refs=
[{{citation
, last1 = Gago-Vargas , first1 = Jesús
, last2 = Hartillo-Hermoso , first2 = Maria Isabel
, last3 = Martín-Morales , first3 = Jorge
, last4 = Ucha-Enríquez , first4 = Jose Maria
, editor1-last = Ganzha , editor1-first = Victor G.
, editor2-last = Mayr , editor2-first = Ernst W.
, editor3-last = Vorozhtsov , editor3-first = Evgenii V.
, contribution = Sudokus and Gröbner bases: Not only a ''divertimento''
, doi = 10.1007/11870814_13
, pages = 155–165
, publisher = Springer
, series = Lecture Notes in Computer Science
, title = Computer Algebra in Scientific Computing, 9th International Workshop, CASC 2006, Chisinau, Moldova, September 11–15, 2006, Proceedings
, volume = 4194
, year = 2006, hdl = 11441/23605
, hdl-access = free
]
[{{citation
, last1 = Herzberg , first1 = Agnes M. , author1-link = Agnes M. Herzberg
, last2 = Murty , first2 = M. Ram , author2-link = M. Ram Murty
, issue = 6
, journal = ]Notices of the American Mathematical Society
''Notices of the American Mathematical Society'' is the membership journal of the American Mathematical Society (AMS), published monthly except for the combined June/July issue. The first volume was published in 1953. Each issue of the magazine ...
, mr = 2327972
, pages = 708–717
, title = Sudoku squares and chromatic polynomials
, url = https://www.ams.org/notices/200706/tx070600708p.pdf
, volume = 54
, year = 2007
[{{citation
, last1 = Klotz , first1 = Walter
, last2 = Sander , first2 = Torsten
, issue = 1
, journal = Electronic Journal of Combinatorics
, mr = 2651734
, page = Research Paper 81, 13pp
, title = Integral Cayley graphs over abelian groups
, url = https://www.combinatorics.org/Volume_17/Abstracts/v17i1r81.html
, volume = 17
, year = 2010, doi = 10.37236/353
, doi-access = free
]
[{{mathworld, title=Brouwer–Haemers Graph, id=Brouwer-HaemersGraph, mode=cs2]
[{{citation
, last1 = Rosenhouse , first1 = Jason , author1-link = Jason Rosenhouse
, last2 = Taalman , first2 = Laura , author2-link = Laura Taalman
, pages = 128–130
, publisher = Oxford University Press
, title = Taking Sudoku Seriously: The math behind the world's most popular pencil puzzle
, title-link = Taking Sudoku Seriously
, year = 2011]
[{{citation
, last = Sander , first = Torsten
, issue = 1
, journal = Electronic Journal of Combinatorics
, mr = 2529816
, page = Note 25, 7pp
, title = Sudoku graphs are integral
, url = https://www.combinatorics.org/Volume_16/Abstracts/v16i1n25.html
, volume = 16
, year = 2009, doi = 10.37236/263
, doi-access = free
]
Application-specific graphs
Parametric families of graphs
Regular graphs
Sudoku