Skip to content

Create your own Sudoku puzzles and choose different CSP algorithms in which to time how long it takes to solve the puzzle

Notifications You must be signed in to change notification settings

JB55Matthews/Sudoku-CSP-Algorithm-Solvers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Sudoku-CSP-Algorithm-Solvers

This app allows users to input there own sudoku puzzles and solve them using different seaarch starategies, being able to time them and compare. This was inspired by MUN's Comp 3200, algorithm techniques for AI, where different CSP algorithms were taught and explored. This is a fun side-project implementing these aglorithms into a useful, user-friendly solver.

SudokuCSPSolver

There are 5 main algorithms implemented which can be used:

  • Basic Depth-First Search (DFS)
  • DFS + Partial Assignment Prunning
  • DFS + AC-3 Inferencing
  • DFS + Partial Assignment Pruning + AC-3 Inferencing
  • Minimum Conflicts (Local Search aglorithm)

Note that DFS + Partial Assignment Pruning + AC-3 Inferencing functions as an almost instantaneous sudoku solver for virtually ever puzzle possible (no examples have yet been found where this is not a near-perfect solver)

The grid can be naviagted with mouse clicks and the given numberpad, or with WASD/Arrow keys and Number keys/NumPad. A given full valid board can automatically be filled in for testing purposes. The inferences given by AC-3 can also be calculated by itself. Below is what a solved grid for a given puzzle would look like. The solution can quickly be cleared, or the whole grid itself can be cleared. SudokuCSPSolver-Solved

About

Create your own Sudoku puzzles and choose different CSP algorithms in which to time how long it takes to solve the puzzle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages