For champagne,
I can't take a trick today, it seems. Now I am getting false positives!

[ EDIT ] Success! Sorted out a few wrinkles, and now it looks good. I'll need to do some thorough road testing, then look at table-driven version for speed.
Mathimagics wrote:For the record, it was Serg, if I recall correctly, who explained to me in great detail why he thought he number of ED (aka S-different) SudokuP grids could not be established using Burnsides' Lemma counting method because there are S-transformations that produce SudokuP grids from non-SudokuP grids, and vice-versa.
Serg wrote:I have to make a surprise announcement.
I came to a conclusion, that it's not necessary to account for classical 3359232 VPT-transformations while counting essentially different SudokuP solution grids. So, 53,666,689 PF-different SudokuP solution grids is the number of essentially different SudokuP solution grids. It's not necessary to count connected orbits, etc. to refine this result.
MinClues:
MC grid Transformed grid
Band 1 6 6
Band 2 6 6
Band 3 6 6
Stack 1 6 4
Stack 2 6 4
Stack 3 6 4
P-band 1 6 6
P-band 2 6 3
P-band 3 6 3
P-stack 1 6 6
P-stack 2 6 6
P-stack 3 6 6
Mathimagics wrote:I'm not sure exactly what you would like to see. In my discussion with champagne above, you will find an example of non-SudokuX to SudokuX transformation, and I can provide that specific transformation, if that's what you want?
Serg wrote:Because I treated number of PF-different SudokuP solution grids as the number of essentially different SudokuP solution grids and said that it's not necessary to count connected orbits it should be clear (as I thought) that I withdraw my objections to the application of Burnside's Lemma for ED SudokuP solution grids enumeration.
You replied to this my post, and I thought you accepted change of my position...
champagne wrote:Mathimagics wrote:.
Here is one solution
- Code: Select all
6 8 3 | 4 2 7 | 1 9 5
7 9 2 | 3 1 5 | 6 8 4
5 4 1 | 9 8 6 | 2 7 3
------+-------+------
2 3 6 | 5 7 4 | 8 1 9
8 7 9 | 2 3 1 | 5 4 6
1 5 4 | 6 9 8 | 7 3 2
------+-------+------
3 2 7 | 8 5 9 | 4 6 1
4 1 5 | 7 6 3 | 9 2 8
9 6 8 | 1 4 2 | 3 5 7
It's a standard corner pattern with box 1 moving to the center, but it seems to have different row/col permutations in bands ,3 and stacks 1,3
So it looks like we need to test all 36^2 = 1296 such permutations for the corner box diagonals it seems ...
Hi Mathimagics,
Good news, it is one of my 2 possibilities.
Let me describe how very simply I came to this
- Code: Select all
+-------+-------+-------+
| 1 2 3 | 4 5 6 | 7 8 9 |
| 4 5 7 | 1 8 9 | 3 2 6 |
| 8 6 9 | 3 7 2 | 5 1 4 |
+-------+-------+-------+
| 2 1 4 | 5 3 7 | 6 9 8 |
| 3 7 6 | 2 9 8 | 1 4 5 |
| 9 8 5 | 6 4 1 | 2 3 7 |
+-------+-------+-------+
| 5 3 1 | 8 6 4 | 9 7 2 |
| 6 9 8 | 7 2 3 | 4 5 1 |
| 7 4 2 | 9 1 5 | 8 6 3 |
+-------+-------+-------+
your starting solution grid
In each box, the possible diagonal triplets
- Code: Select all
box1 159 278 346 167 249 358
box2 248 167 359 479 125 368
box3 247 568 139 259 167 348
box4 257 169 348 479 135 268
box5 159 247 368 679 123 458
box6 467 138 259 248 356 179
box7 259 378 146 179 236 458
box8 258 147 369 249 567 138
box9 359 246 178 258 347 169
For the six possible diagonal (3 boxes not in the same band/stack), the valid 9 digits possibilities
- Code: Select all
boxes 159 358 247 169
boxes 168 346 179 258 249 138 567
boxes 267 248 356 179
boxes 249 empty
boxes 348 empty
boxes 357 empty
only possibilities to have a valid status in the central box
- Code: Select all
boxes 159 358 247 169
boxes 168 346 179 258
central box is box 1 central digit is digit 3 (your solution)
- Code: Select all
boxes 168 249 138 567
boxes 267 248 356 179
central box is box 6 central digit is "3"
From here, we know that band 1 stack 1 has to be morphed to the right diagonal pattern, then box1 moved to the central box, but this plays no role in the final check.
In fact, we have to check that we have a valid status in the four corners.
I did not check in details, but the process could be
Morph 1 of the four corners to have the right diagonal status
Check if it is still possible to morph the seen corners in the right way
and see if the fourth corner is ok
This is easy with the computer, but boring and subject to errors by hand
Serg wrote:What is isomorphic transformation? It is transformation, which doesn't change essence of transformed object. Some external changes of transformed object can be accounted for by simple rules, such as relabelling, changing row/column numbers etc. But internal structure (essence) of the object must not be changed.
What is the essence of SudokuP (traditional Sudoku, X-sudoku, etc.) solution grid? I propose several variants of definitions. Choose definition you like.
1. The essence of SudokuP solution grid is a set of SudokuP (not necessary valid) puzzles, which has given solution grid as one of its solutions. One can consider distribution (histogram) of number of clues by number of puzzles as invariant, which must not be changed under isomorphic transformation.
2. The essence of SudokuP solution grid is a set of SudokuP minimal valid puzzles, having given solution grid as its solution. One can consider distribution (histogram) of number of clues by number of puzzles as invariant, which must not be changed under isomorphic transformation. Another possible invariant - list of MinClues for 3 bands, 3 stacks, 3 P-bands and 3 P-stacks (12 numbers). Numbers in MinClues list may be permuted, but according to some rules. These numbers may not disappear and may not appear from nowhere during transformations.
3. The essence of SudokuP solution grid is a set of grid's unavoidable sets. One can consider distribution (histogram) of UA sizes by number of UA sets as invariant, which must not be changed under isomorphic transformation.
123456789456789123798132564241975836837624915965318472372541698519863247684297351
123456789456789123897231564231597648564318297789642315315864972642975831978123456
Mathimagics wrote:. That's about 20,000 times better than what I was getting before with the brute-force TransformableX function,
blue wrote:The first one generates 85 ED SudokuX grids.
The second one has two S-automorphisms, and generates 57 ED SudokuX grids ... 12 with two SX-automorphisms, the rest with one.
Mathimagics wrote:Confirmed first grid having 85. For the second, I don't have automorphism checking code in place, but I get 102 ED SudokuX grids.
That's 2 x 57 - 12, so I can see a correlation, not sure about why this would be so ...![]()
123456789456789123789123456231564897564897231897231564312645978645978312978312645 - MC grid, 648 automorphisms
123456789456789123789123456214635978695874312837291564341562897568947231972318645 - 4 automorphisms
BTW, these are the biggest EDX counts I've seen by a mile ... anything special about these grids?
blue wrote:For the other grid, "102"-like number is 23, and the X-distinct results are: 1 grid @ 4 automorphisms, 3 @ 2, and 5 @ 1.
23*96/4 = 552 = 1*(96/4) + 3*(96/2) + 5*96
blue wrote:I get a result of 1,596,582,158 ED grids ... in under a second, not counting the time to arrive at the "153,255,603,504" number.
Note: Here, grids A and B are "essentially distinct" (ED), if neither can be transformed to the other, using relabelling and one of the 96 "validity preserving transformations" for SudokuX (X-Sudoku).
Mathimagics wrote:Ok, I've got an X-canonicaliser working. It generates all 96 X-transformations, normalises them and picks the smallest (is that what you do?)
Mathimagics wrote:blue wrote:For the other grid, "102"-like number is 23, and the X-distinct results are: 1 grid @ 4 automorphisms, 3 @ 2, and 5 @ 1.
23*96/4 = 552 = 1*(96/4) + 3*(96/2) + 5*96
(...)
But for the "4 automorphisms" case above, I came up with 8, as opposed to your 9 = 1 + 3 + 5.
This really had me worried until I noticed that you only get 552 if you use the split (1 + 3 + 4). That is, 552 = 24 + 3*38 + 4*96, and so the EDX count really is 8.