I've got a bunch of 8-bit values in a codebook (about 200 of them).
My program will be generating an 8-bit value in response to input, and I need to find all (or even the first is helpful) of the matches in the codebook that have the same bits set. The bits that are unset don't matter.
Can you think of an optimal way to a) store and b) search the codebook to find all matches? I have a standard linear search in place but of course it's pretty inefficient.
Many thanks...
akevan