What I need to do is open a text file with 0s and 1s to find patterns between the columns in the file.
So my first thought was to parse each column into a big array of bools, and then do the logic between the columns (now in arrays). Until I found that the size of bools is actually a byte not a bit, so i would be wasting 1/8 of memory, assigning each value to a bool.
Is it even relevant in a grid of 800×800 values? What would be the best way to handle this?
I would appreciate a code snippet in case its a complicated answer
you can use
std::vector<bool>which is a specialization of vector that uses a compact store for booleans….1 bit not 8 bits.