10000 GitHub - Aayush1720/sudoku: An algorithm which solves any given sudoku
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Aayush1720/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

sudoku

An algorithm which solves any given sudoku problem.

The basic idea of this algorithm is backtracking. Now the reason why is works so fast even though we're kind off using brute force is that we check the validness of our solution everytime we set a new number. This way we actually save a lot of computation.

Here is the procedure:

  • first find out the next empty cell
  • then try putting every number in range 1-9 and if it is legal to put then go again to step 1(via recursion)
  • if we get any solution in this path return True
  • else we realize that putting that number on this position will not lead to a solution so change it to 0 again and repeat the process

About

An algorithm which solves any given sudoku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0