Bitssets
Bitssets are a data structure designed to represent a set of bits, where each position in a universe corresponds to a possible element and the value at that position indicates membership. They can be fixed-width, with a complete array of bits, or dynamic, growing as elements are added.
Common implementations store bits in arrays of machine words and rely on fast bitwise operations. Languages
Basic operations include setting and clearing a bit, testing membership, and counting the number of set bits.
Variants range from dense bitsets, which allocate a bit for every element, to sparse or compressed forms
Applications appear in databases for bitmap indices, search engines for fast filtering, graph algorithms, and systems