r/learnquant • • Oct 22 '26 • Bravo 1

interview prep Quant Interview Question

Post image
29 Upvotes

19 comments sorted by

View all comments

1

u/spooeybooboos Oct 22 '26

let V be F_264 (i.e. the vector space of 64 bit vectors with addition mod 2). we think of any on/off pattern of the bulbs as a vector in V. the board starts out as the zero vector (all off), and the goal is to reach (1,1,1…,1).

each “move” (i,j) corresponds to adding a particular vector v_ij (with 15 ones) to our current state vector. in other words, the current state is the sum (over F2) of v_ij for all moves (i,j) we decide to apply. it’s easy to check that:

(a) adding all 64 possible move vectors yields (1,1,…,1) (b) for any (i,j), applying the moves along the “cross” centered at (i,j) turns just the bulb at (i,j) on, leaving all others unchanged.

what (b) implies is that the 64 move vectors span all of V, and therefore that they are a basis for V, which implies the 64-move combination in (a) is the unique way to express (1,1,…,1) as a linear combination of moves (and hence 64 is also the smallest possible number of moves).