- #1
intervoxel
- 195
- 1
Suppose an array of booleans with an even number of true values. I need an algorithm that, given an address containing a true (say, 3), returns the address of another true (say, 25), such that if I call the algorithm for 25, it returns 3. No storage of old choices are allowed since this algorithm will be used in a cellular automaton.
Thanks for any help.
Thanks for any help.