Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

How to created a sudoku in java ( giving the problem and solving the problem )?

OpenStudy (anonymous):

Firstly, this is not an easy task. A good solver has to take into account different "methods" of solving a given Sudoku (X-Wing, stuff like that) and most of the solvers are implemented using Dancing Links. A general, easier to implement solver would use a backtracking algorithm ( https://en.wikipedia.org/wiki/Backtracking ). There are plenty of papers on that algorithm, but I would point out: 1) https://en.wikipedia.org/wiki/Sudoku_algorithms#Backtracking 2) http://www.heimetli.ch/ffh/simplifiedsudoku.html this is a Java implementation using Backtracking and 3) if you are interested in the more theoretical aspect of it, the papers on Backtracking (and on Dancing Links, :-) ) provide interesting insights. On a note: I wrote this from my memory/personal experience (writing a Sudoku in C), so it may be a biased opinion (that backtracking is easier to implement, that is).

OpenStudy (anonymous):

thank you so muc h

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!