Assumptions
Two periodic masks, left-phase toggles and Fenwick rank over 64-bit words. Finite AT.T2 grid.
Result
I reproduce all 3,656 answers. The mutable bitmap beats rebuilding on all 16 workloads with flips. Static bits win this comparison on all 32 without flips.
Prior work
Fenwick, A new data structure for cumulative frequency tables
Next question
Price direct enumeration of compatible partners and updates to both masks.
Read the argument and prior work · View supporting evidence