Skip to content

PatoGuereque/SudokuSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Solver

This project consists of a sudoku solver written in python. It uses a depth-first search technique iterating over all the possibilities and attempting them. It's also been optimized to be fast. It flattens the board to an array instead of a matrix and uses lists, sets, and arrays for caching and faster calculations.

Sudokus

Unsolvable 515 was this week's sudoku (9/22/2022). The other unsolvable were found from this blog post claiming that they were even harder than the Arto Inkala sudoku, which our algorithm struggles a little to solve.

Benchmarks

Running the solver 200 times for each board yields the following results:

benchmark

Interestingly the unsolvable ones take longer than "the world's hardest sudoku".

Example Solution

example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages