N
nooneinparticular314159
I want to represent a long sequence of bits indicating whether a long
sequence of things are true. ie. Something like,
1010011101010101010, means the first item is true, the second is
false, etc. I could use a hashmap, and say the key for the hashmap is
the same as the bit number in the bitmap I suppose that I could also
use an array, and fill it with 1s and 0s. But I'd really like to be
able to do this efficiently, to rapidly find elements containing a 0
(along with which element number they are), and to eliminate elements
with a 1 from future consideration. Any idea what the best object to
do this is?
Thanks!
sequence of things are true. ie. Something like,
1010011101010101010, means the first item is true, the second is
false, etc. I could use a hashmap, and say the key for the hashmap is
the same as the bit number in the bitmap I suppose that I could also
use an array, and fill it with 1s and 0s. But I'd really like to be
able to do this efficiently, to rapidly find elements containing a 0
(along with which element number they are), and to eliminate elements
with a 1 from future consideration. Any idea what the best object to
do this is?
Thanks!