M12 Puzzle

It feels really hard to solve, because the moves affect so many pieces. You can't just solve a bit at a time while preserving the already solved parts.

But using a computer it's really trivial. Only 95040 of the 12! = 479001600 positions can be reached. Counting every inversion and merge as one move, the maximum depth is 29 and there are 12 positions at it:

Code:
 1  5  9 11  7  3 12  8  4  2  6 10 
IM3IM2IM4IMIM2IMIM4IM4
 1  6  9 11  8  3  4  7 12 10  5  2 
MIM2IM2IM2IMIMIM4IM3IMIM3
 2  5 10 12  7  4  3  8 11  9  6  1 
MIMIMIM3IM4IMIMIM2IM2IM4
 4  9  5  7 11  2  8 12  1  3 10  6 
IM2IM2IM2IM2IMIMIM4IM6I
 5 10  6  7  4  8  3 12 11  9  2  1 
IMIM4IM3IMIMIM2IM4IMIM3
 7 11  8  6  9  5 12  1  4  2  3 10 
MIMIMIM3IM4IMIMIM2IM5IM
 8  3  7  6  9  5 10  1  2  4 11 12 
IM5IM3IMIMIM4IM2IMIM2IM
 8 12  1  3 10  6  4  9  5  7 11  2 
IM2IM2IM5IMIMIM5IM6
 9  1  6  3 11  8 12  4  7  2 10  5 
IMIM4IM2IMIMIM4IM3IMIM3
10  2  5  4 12  7 11  3  8  1  9  6 
IMIMIM4IM4IMIMIM2IM2IM4
10  3  2  4  1 12  5  9  6  8 11  7 
MIM2IM2IM2IMIMIM4IM4IM2IM
12  8  4  2  6 10  1  5  9 11  7  3 
IM2IM2IM2IM2IMIMIM4IM3IM3



Code:
Depth: 0        Positions: 1 1
Depth: 1        Positions: 2 3
Depth: 2        Positions: 3 6
Depth: 3        Positions: 5 11
Depth: 4        Positions: 8 19
Depth: 5        Positions: 13 32
Depth: 6        Positions: 21 53
Depth: 7        Positions: 34 87
Depth: 8        Positions: 55 142
Depth: 9        Positions: 89 231
Depth: 10       Positions: 144 375
Depth: 11       Positions: 232 607
Depth: 12       Positions: 374 981
Depth: 13       Positions: 600 1581
Depth: 14       Positions: 958 2539
Depth: 15       Positions: 1510 4049
Depth: 16       Positions: 2374 6423
Depth: 17       Positions: 3673 10096
Depth: 18       Positions: 5609 15705
Depth: 19       Positions: 8353 24058
Depth: 20       Positions: 11738 35796
Depth: 21       Positions: 14948 50744
Depth: 22       Positions: 16216 66960
Depth: 23       Positions: 13772 80732
Depth: 24       Positions: 8509 89241
Depth: 25       Positions: 3852 93093
Depth: 26       Positions: 1404 94497
Depth: 27       Positions: 420 94917
Depth: 28       Positions: 111 95028
Depth: 29       Positions: 12 95040
 
Last edited:
My math (abstract algebra) professor actually gave this as an extra credit assignment this quarter: http://math.stanford.edu/~vakil/topsyturvy/

My solution, available as a pdf at the above link, is sadly several times more inefficient than any of the others, but, to be fair, it's also by far the most low-tech. (I used the "let's figger this out" method rather than "let's make a computer figger this out.")

Enjoy!
 
Back
Top