Hi,
coloin!
coloin wrote:N1 is an invalid pattern - cant have any puzzles, but i guess the point is that you cant have 9 clues in a row...
You are right. Pattern N1 (9 clues in a row) means that any minimal puzzle cannot contain 9 clues in a row. If you are searching for 9x9 Sudoku patterns, potentially producing minimal puzzles or even patterns, producing minimal puzzles only (those patterns are called minimal valid), you can exclude from search space patterns, containing non-minimal patterns as subset. This rule applies regardless of whether pattern has valid puzzles or no. So, this is a filter assisting in searching for minimal puzzles/patterns.
JPF showed it in the thread
Homework exercise.
I have a proof of pattern N6 non-minimality.
Let's consider diagonally placed minirows of any Sudoku solution grid. The are 2 cases only of digits placement:
- Code: Select all
Case 1 Case 2
+-----+-----+-----+ +-----+-----+-----+
|. . .|. . .|a b c| |. . .|. . .|a b e|
|. . .|a b c|. . .| |. . .|a b d|. . .|
|a b c|. . .|. . .| |a b c|. . .|. . .|
+-----+-----+-----+ +-----+-----+-----+
(Letters denote some digits, those digits can be really permuted within each minirow.) Any pair of those diagonally placed minirows contains at least 2 digits in common. Let's analyze some puzzle, having 9 clues in diagonally placed minirows, for minimality. One should first determine 2 common digits ("a" and "b") of minirows r3c123 and r2c456. Now we know that minirow r1c789 must contain digits "a" and "b". So, we can safely remove digit "a" or digit "b" from r1c789 minirow. Analyzed puzzle isn't minimal.
(This is not full proof, only 2 cases from 4 are considered, as Blue pointed in the next post.)I've just done exhausteve search for "corner" non-minimal patterns (having clues in B124 area only). Surprisingly, the only one such pattern does exist. It was found by
marek stefanic (see his post in the thread
Homework exercise). Here it is:
- Code: Select all
+-----+-----+-----+
|x x x|x . x|. . .|
|. . .|. . .|. . .|
|x x x|x . x|. . .|
+-----+-----+-----+
|. . .|x . x|. . .|
|. . .|x . x|. . .|
|. . .|x . x|. . .|
+-----+-----+-----+
|. . .|. . .|. . .|
|. . .|. . .|. . .|
|. . .|. . .|. . .|
+-----+-----+-----+
Serg
[Edited. The proof posted isn't full, see the next post of
Blue.]