Resolution of Sudokus Using Groebner Basis

  • Maria Rosario Gonzalez-Dorrego Universidad Aut´onoma de Madrid, Madrid, Spain

Abstract

We study the resolution of sudokus and generalized sudokus using Groebner basis. Let x_1, ..., x_81 the 81 squares which form the sudoku, arranged from left to right and from top to bottom. Its solution will be (a_1, ...,a_81), where a_i is the number in the square associated to the variable x_i.$ Let $S$ be a sudoku with preassigned data {c_{i}}_{iin L}, for Lsubset {1, ..., 81}. All the necessary information to solve the sudoku is contained in the algebraic set mathbb V (I+<{x_{i}-c_{i}}_{iin L}>). We shall use Groebner basis to find a solution and give a SAGE code for that purpose.

Author Biography

Maria Rosario Gonzalez-Dorrego, Universidad Aut´onoma de Madrid, Madrid, Spain

Gonzalez-Dorrego Maria Rosario: Departamento de Matem´aticas Universidad Autonoma de Madrid; Ciudad Universitaria de ´ Cantoblanco, 28049 Madrid, SPAIN mrosario.gonzalez@uam.es

References

1. A. Delgado Latournerie, “Bases de Groebner y aplicaciones,” Masters’ Thesis UAM, Madrid, Spain,
2016.
2. R. Hartshorne, Algebraic Geometry (Graduate Texts in Mathematiics), 52, Springer-Verlag, 1977; doi:
10.1007/978-1-4757-3849-0.
3. G McGuire, B. Tugemann, G. Civario, “There is no 16-clue Sudoku: Minimum Number of Clues Problem,” arXiv: 1201.0749 [cs.DS], Jan. 2012.
4. “Mathematics of Sudoku” in Wikipedia, Wikimedia Foundation, [Online]. Available: https://en.
wikipedia.org/wiki/Mathematics-of-Sudoku-Minimum-number-of-givens.
5. “Magic Squares in Sudoku Grids,” in Puzzling, Stack Exchange Inc. [Online]. https://puzzling.
stackexchange.com/questions/6195/magic-squares-in-sudoku-grids?rq=1.
Published
2018-06-29
How to Cite
Gonzalez-Dorrego, M. R. (2018). Resolution of Sudokus Using Groebner Basis. Computer Tools in Education, (3), 5-21. https://doi.org/10.32603/2071-2340-3-5-21
Section
Algorithmic mathematics and mathematical modelling