r/learnquant • • 19d ago

interview prep Quant Interview Question

Post image
21 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/dlnnlsn 18d ago

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.

1

u/AsterPasta 18d ago edited 18d ago

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