bit-manipulationdsa
Bit masks fit small fixed sets
Anonymous
when the whole universe fits in a machine word, represent membership with bits. A bitwise AND checks shared members, while OR combines sets. For larger or changing universes, a bit mask may no longer be a practical representation.
0