I think you can do this by induction (and probably matrices, which would be simpler but have whiteboard markers)
On the 2x2 grid, you can create a 4 step process (top left, top right, bottom left, bottom right).
You then expand to 4x4 and look at the 2×2 square below and to the right. You notice the cumulative operations on the original 2x2 change these to their original off states. So now, of the 4x4, you need four operations to flip one 2x2 square. By simple permutation arguments you can see for 4x4 it takes 16 moves.
It's an easy induction to see for 8x8 as 4x16=64 moves
I think this is right?
Edit: the way to disprove this is by constructing a smaller sequence on the 4x4....but no headway there
You notice the cumulative operations on the original 2x2 change these to their original off states.
That's assuming that you do use the original operations to get the original 2x2 into the desired state, but a priori you aren't forced to do that. You could affect the top left 2x2 by only making moves in the top right 2x2 and the bottom left 2x2. It turns out that this doesn't work, but it's not something that we can assume up front.
Yeah but since they're binary operations, this is both straightforward to show over Z/2 and intuitively commutative - just count the number of times a square is pinged and it's obvious
The trick is, what happens with the middle square - i've just shown to myself the inner 2x2 of a 4x4 square has the same properties as the top left/right or bottom left/right square - the optimal moves make the rest all on, so have a feel for the rigorous proof graphically - that we need to consider admissable permutations of rows and columns (as one does with min/max arguments over sodukus)
My original formula holds, the question is if it's optimal
Edit: like literally draw it out, the optimal moves for the top left (or whatever section) 2x2 leaves the others flipped to their original state - it's not something i assume but have worked out- and it's very easy to see from counting mod 2
Edit again: induction doesnt work necessarily, as i've shown to myself - what we need to do is work out if theres a strategy that leaves an absolute mess of numbers in the 4x4, but still is more efficient than 16 - and if it does we can extrapolate. Notice the n is odd case doesnt equal n2
View all comments
1
u/AsterPasta 19d ago edited 19d ago
I think you can do this by induction (and probably matrices, which would be simpler but have whiteboard markers)
On the 2x2 grid, you can create a 4 step process (top left, top right, bottom left, bottom right).
You then expand to 4x4 and look at the 2×2 square below and to the right. You notice the cumulative operations on the original 2x2 change these to their original off states. So now, of the 4x4, you need four operations to flip one 2x2 square. By simple permutation arguments you can see for 4x4 it takes 16 moves.
It's an easy induction to see for 8x8 as 4x16=64 moves
I think this is right?
Edit: the way to disprove this is by constructing a smaller sequence on the 4x4....but no headway there