5

I am making a computer program that is going to generate Sudoku puzzles of various types. One of these types is "jigsaw", in which the board is split into rows, columns and random 9-square contiguous regions. My regions are generated completely randomly and I have become concerned that maybe there are some arrangements of region for which no solution can exist. Can anybody give me an example of this or perhaps explain why no such arrangement exists. Thank you.

maxG795
  • 113

1 Answers1

2

There are some choices for the nine random 9-square contiguous regions such that no valid Jigsaw Sudoku is possible.

For example, consider the following partially subdivided $9 \times 9$ grid.
No matter how the rest of the grid is subdivided, we won’t get a valid Jigsaw Sudoku.

9 x 9 Jigsaw Sudoku

Let’s fill in the number that is at the start of row 2.

Without loss of generality, we can assume this number is a 1:

9 x 9 Jigsaw Sudoku

For the region that occupies columns 1 and 2, there is only one possible square that can contain a 1:

9 x 9 Jigsaw Sudoku

Similarly, for the region that occupies columns 2 and 3, there is only one possible square that can contain a 1:

9 x 9 Jigsaw Sudoku

And now we have a problem; for the square $3 \times 3$ region there is no square that can contain a 1.