Code covered by the BSD License  

Highlights from
Sudoku

Be the first to rate this file! 13 Downloads (last 30 days) File Size: 7.21 KB File ID: #29021
image thumbnail

Sudoku

by

 

14 Oct 2010 (Updated )

Solves 9X9 Sudokus of any difficulty level

| Watch this File

File Information
Description

How to use it?
just call sudokuSolver() and enter the elements in appropriate places and then press >> to get the output. (all other function files are called by it)
Output
If the program needs to try putting random solving, it will show first how much it could solve before trying it(as matrix b in command window) and then give the answer.In this case it will also create a back.mat file which can be used to find more solutions to the problem(if possible)
If the sudoku entered is incorrect, i.e., unsolvable, the output will be a null matrix or an error.
Random solving will give only one of the possible number of outputs.

Please let me know if someone wants code for 6X6 or of other size sudokus.Though I have not received any errors from this so far,please report if you encounter any.
PLEASE RATE THE SUBMISSION AND COMMENT!!!

Also check out a really amazing game ( i call logic game )available in file exchange.

Acknowledgements

Simple Sudoku Solver inspired this file.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
18 Oct 2010 Indraneel Biswas

You have a good solver. since u said u r into graphics, a GUI would enable easy data input.
i resolved the issue u mentioned in ur comment.

Updates
15 Oct 2010

I've explained the ambiguities in the output obtained to make it more understandable

16 Oct 2010

NEED RATINGS PLEASE!

16 Oct 2010

PLEASE RATE THE SUBMISSION AND COMMENT

19 Oct 2010

I've added an attractive Graphics-User-Interface to the program.
I've also uploaded a few problems for downloaders to test my work.

15 Dec 2010

Please send in suggestions and rate the submission.Also check out a really amazing game ( i call logic game )available in file exchange.

Contact us