![sudoku generator algorithm java sudoku generator algorithm java](https://i.pinimg.com/originals/1d/20/24/1d2024fb7cfbc62a2be956bba462710e.jpg)
![sudoku generator algorithm java sudoku generator algorithm java](https://i.ytimg.com/vi/JtTThE93WNI/hqdefault.jpg)
It’s certainly quite unlike the way that human setters create sudoku puzzles. This approach may seem rather odd at first sight, even wasteful. If a puzzle is the wrong difficulty we throw it away and generate another candidate. This uses two algorithms: a generator which produces, in an unguided fashion, sudoku puzzles of unknown difficulty and a grader, which works out how difficult each puzzle is. The strategy we picked was generate-and-test.