Sudoku backtracking algorithm

后端 未结 6 1954
感动是毒
感动是毒 2020-12-03 03:55

First of all, I\'ll state that this is a university assignment so I\'m not asking for someone to write the code for me I just need to be pointed in the right direction. :)

6条回答
  •  北海茫月
    2020-12-03 04:38

    I dont know if you have seen this link before. Also it may not be comparable to dancing links algorithm in efficiency as it uses naive form of backtracking. Anyway it works. See if it can be useful for you!

    Also may be you can add a few lines for solving 'easy' squares. http://edwinchan.wordpress.com/2006/01/08/sudoku-solver-in-c-using-backtracking/

提交回复
热议问题