+ 1

How to test the uniqueness of a Sudoku Generated?

I have generated a soduku using Python. however it is not called a soduku until it is unique so I want to test the uniqueness of Sudoku however I can't find any math behind it. does anyone have any idea?

11th Jun 2017, 3:26 PM
gaurav prajapati
gaurav prajapati - avatar
3 Respostas
+ 2
Perhaps save the rows and cols of some puzzles in a String, then you can do the same for the puzzle you generate. Once that's done you can compare with the other strings, if they are equal then the puzzle is not unique.
11th Jun 2017, 3:56 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
There would be a way to find the number of solutions if you can find a way to solve it. Check out the 2nd or 3rd top answer here, hopefully it's helpful. https://stackoverflow.com/questions/6924216/how-to-generate-sudoku-boards-with-unique-solutions
11th Jun 2017, 4:03 PM
Rrestoring faith
Rrestoring faith - avatar
0
I am not sure if that will solve the purpose
11th Jun 2017, 3:58 PM
gaurav prajapati
gaurav prajapati - avatar