Skip to content

jwhandley/sudoku-solver-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku solver

A simple sudoku solver that uses a recursive backtracking algorithm. I store sudoku boards as 9x9 arrays of 8-bit integers and sets of used numbers in each row, column, and square as arrays of 16-bit integers.

On my machine it solves this board in approximately 60ms. The example from Wikipedia takes 240 nano seconds to complete.

I experimented with not copying the board on every iteration and with parallelizing checking each legal move, but they turned out to be slower.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages