🤖 AI Summary
This work addresses the gap between theoretical optimality and practical efficiency for rank/select operations on bit vectors. We propose a compact data structure achieving worst-case O(1) query time with only 0.78% space overhead. Methodologically, it is the first to provide rigorous theoretical guarantees of constant-time rank/select via a hierarchical indexing scheme coupled with bit-level storage optimizations—enabling hardware-friendly bit manipulation while maintaining minimal redundancy. Compared to state-of-the-art alternatives, our design reduces space overhead by 4.5×–64.1× and delivers significantly faster query performance on real-world datasets. By bridging the gap between asymptotic lower bounds and engineering constraints, this work establishes the currently best practical solution for large-scale bitmap indexing, compressed data structures, and related applications in databases and information retrieval.
📝 Abstract
Bit vectors with support for fast rank and select are a fundamental building block for compressed data structures. We close a gap between theory and practice by analyzing an important part of the design space and experimentally evaluating a sweet spot. The result is the first implementation of a rank and select data structure for bit vectors with worst-case constant query time, good practical performance, and a space-overhead of just 0.78%, i.e., between $4.5 imes$ and $64.1 imes$ less than previous implementations.