Back in 2007 this was the chat
I was able to perform specific simple structure transformations on text strings with a python program here
Isomorphic transformations which retain struture have long been known
Structure - swaps of the rows, columns bands and stacks and one reflection
6^8 x 2 = 3359232 ways
Clue - swaps aka relabelling
9! = 362880 ways
Converting a puzzle / or grid solution from one representation to another involves a set amount of transformations.
The structure is easier to visualize for me .. as a binary number plus a 8 digit base 6 number. The order of proceedings is ? probably important.
So firstly a reflection 1 [0 no reflection] and then 8 numbers. 0 is staying the same and 1-5 represents a row,column, band or stack swap [x8 of].
Example 1 - 23,140,245
So there would be 3359232 combinations to change any one particular grid. I'm guessing the reflection and bands should be performed first.
The clue swap options are smaller but it is much more complicated !!
It seems clues either stay the same, have a direct swap or cycle with 3,4,5,6,7,8,9 other clues !
I have differentiated between 2 way cycles [aka direct swaps] and greater cycles , and maybe this is not the best way .
A 3 way cycle would be 1<->2,2<->3 which is actually 2 direct swaps....very confusing, as is this list of possibilities !
Direct swaps first .....
- Code: Select all
4 direct swaps and 1 clue stays the same
3 direct swaps and 3 clues cycle
3 direct swaps and 3 clues stay the same
2 direct swaps and 3 clues cycle and 2 clues stay the same
2 direct swaps and 4 clues cycle and 1 clue stays the same
2 direct swaps and 5 clues cycle and 0 clues stay the same
2 direct swaps and 5 clues stay the same
1 direct swap and 7 clues stay the same
1 direct swap and 3 clues cycle 4 clues stay the same
1 direct swap and 4 clues cycle 3 clues stay the same
1 direct swap and 5 clues cycle 2 clues stay the same
1 direct swap and 6 clues cycle 1 clue stays the same
1 direct swap and 7 clues cycle 0 clues stay the same
but there are more if there are no direct swaps then
- Code: Select all
0 clues stay the same
3 cycle groups of 3 cycle
2 cycle groups of 4 and 5
2 cycle groups of 3 and 6
1 cycle group of 9
1 clue stays the same
2 cycle groups of 4 and 4
2 cycle groups of 3 and 5
1 cycle group of 8
2 clue stays the same
2 cycle groups of 3 and 4
1 cycle group of 7
3 clues stay the same
2 cycle groups of 3 and 3
1 cycle group of 6
4 clues stay the same
1 cycle group of 5
5 clues stay the same
1 cycle group of 4
6 clues stay the same
1 cycle group of 3
9 clues stay the same
Just how the 362880 number relates to all this is unclear however !!