Hi!
I have a text file which has N numbers, each of which is represented by 2 bits; as an example, the text file looks as follows:
01 10 00 11 10 10...
This would be 1, 2, 0, 3, 2, 2... The spaces above aren't there, I've just included them for clarity (so what I have in reality is: 011000111010; I can, however, create the file again and change the format if need be). I want to use the bitset container to store these numbers since N is very large (right now, I have N = 205672779) and I would probably have memory issues otherwise.
When I try to declare my bitset, my program compiles correctly and then just freezes:
I am also unaware of how I would assign these values to the bitset in an efficient manner.
The reason I want to do this is I am analyzing genomic data. Each 2-bit number is a base-pair. I want to select subsequences of length L (approx. = 20) and see if they are repeated throughout the rest of the data. Is there a better way of doing this?
Thanks.