|
|
|
|
|
by taeric
4110 days ago
|
|
If you haven't, you really need to see this post.[1] Starting simple and writing a test driven algorithm is not necessarily bad. However, realize that you are really just turning the act of finding the optimum solution into a search space where you have to assume mostly forward progress at all times. Not a safe assumption. At all. And, because I love the solution, here is a link to my sudoku solver.[2] I will confess some more tests along the way would have been wise, though I was blessed by a problem I could just try out quickly. (That is, running the entire program is already fast. Not sure of the value on running the tiny parts faster.) [1] http://ravimohan.blogspot.com/2007/04/learning-from-sudoku-s... [2] http://taeric.github.io/Sudoku.html |
|