I am working with 2^n vector e.g. n=3 the possible values are:
000, 001, 010, 011, 100, 101, 110, 111
I would like to find what is the most efficient way, given the set of combinations say
000, 000, 001, 100, 000, 110, 000, 110
how to find if a given value is in the possible set.
One way would be to go through the entire list (brute force). Another would be to use any of the classic search methods e.g. binary search etc for log_2(n) +1
Another method would be to use Bloom filters, although this is a probabilistic method
I want to know if there's anything else out there, that given a list of bit strings, to efficiently test for its membership.