Skip to content

mahak999/sudokuSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

SudokuSolver

An Application of Backtracking in Python. This is a program where user can Create and Get Solutions for their Sudoku puzzels.

Logic

The algorithm works by placing a number in an empty cell of the puzzle, and checks if it is valid for the row, column, and the smaller 3 * 3 box, and moves on to the next empty box. When it comes across a situation when it cannot put a valid number, it BACKTRACKS to previous filled spot and tries to look for another number. It's way faster than the Brute force approach, which have an exponential run time.

Try it out in GitPod

Open in GitPod

Additional Resources

I used this video to understand the process behind backtracking. Huge thanks to Tim @ Tech with tim for the wonderful explanation.

Releases

No releases published

Packages

No packages published

Languages