![]() ![]() Numbers are separated by spaces and empty boxes are represented as dots. Put sudoku problems in file input.txt in the given format, where the first line specify the number of cases and the following lines list the problem. But if too few boxes are filled, then the task of searching for a solution might take forever. If too many boxes are filled randomly, then it will probably result in a grid with no solution at all. The key here is to introduce just the right amount of randomness. ![]() The general strategy is to fill some boxes randomly, and fill the rest of the boxes with a sudoku solver if a solution exists.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |