Skip to content

cenowador/sudoku-solver-gms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Solver

A simple backtracking based Sudoku puzzle Solver

What's Sudoku?

Sudoku is a very old game with simple rules: you must fill a x square with integer numbers going from 1 to N² withouth having it repeated across the row, column or quadrant (NxN square).

Why Sudoku?

Sudoku is a well known NP-complete problem when generalized to variable NxN. It's true that a fixed sized Sudoku cannot be considered NP-complete, however, it still shows some its true colors just by imagining a huge size for N, like 1000000x1000000. You can check this discussion about the topic.

The P Vs. NP problem

P = NP is an unsolved problem in Computer Science which states: "for every problem whose solution can be easily verified, it can also be easily discovered." Note that the term "easily" actually means "in polynomial time (P)", i.e. T(n) = O(nk). NP stands for nondeterministic polynomial time, which means that a nondeterministic computer could solve the problem in polynomial time. Being able to prove that P = NP would mean that the hardest problems humanity faces (mathematicaly speaking) could be solved in polynomial time, including problems such as protein folding and optimal logistics strategies. On the other hand, fields that depend on P being not equalt NP, such as cryptography, could be negatively impacted.


*NP/NP-hard realms for P≠NP and P=NP. Author: Behnam Esfahbod. Taken from: https://en.wikipedia.org/wiki/File:P_np_np-complete_np-hard.svg, jun 14 2022.*

References

License

Distributed under the CC-0 License. See LICENSE.txt for more information.

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published