Optimal Static Dictionary with Worst-Case Constant Query Time
Yang Hu, Jingxun Liang, Huacheng Yu, Junkai Zhang, Renfei Zhou
Abstract
In this paper, we design a new succinct static dictionary with worst-case constant query time. A dictionary data structure stores a set of key-value pairs with distinct keys in [U ] and values in [σ], such that given a query x ∈ [U ], it quickly returns if x is one of the input keys, and if so, also returns its associated value. The textbook solution to dictionaries is hash tables. On the other hand, the (information-theoretical) optimal space to encode such a set of key-value pairs is only OPT := log U n + n log σ. We construct a dictionary that uses OPT + n ε bits of space, and answers queries in constant time in worst case. Previously, constant-time dictionaries are only known with OPT + n/ poly log n space [Pǎt08], or with OPT + n ε space but expected constant query time [Yu20]. We emphasize that most of the extra n ε bits are used to store • a lookup table that does not depend on the input, and • random bits for hash functions. The "main" data structure only occupies OPT + poly log n bits.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers1
Ask how each one uses itBuilds on5
- On the optimal time/space tradeoff for hash tablesMichael A. Bender, Martin Farach-Colton, John Kuszmaul, William Kuszmaul et al.STOC 2022 · 20 citations
- Tight Cell-Probe Lower Bounds for Dynamic Succinct DictionariesTianxiao Li, Jingxun Liang, Huacheng Yu, Renfei ZhouFOCS 2023 · 11 citations
- Lower bound for succinct range minimum queryMingmou Liu, Huacheng YuSTOC 2020 · 7 citations
- Nearly optimal static Las Vegas succinct dictionaryHuacheng YuSTOC 2020 · 6 citations
- Dynamic Dictionary with Subconstant Wasted Bits per KeyTianxiao Li, Jingxun Liang, Huacheng Yu, Renfei ZhouSODA 2024 · 5 citations
Related papers
- A Hash Table Without Hash Functions, and How to Get the Most Out of Your Random BitsWilliam KuszmaulFOCS 2022 · 7 citations
- Succinct Dynamic Rank/Select: Bypassing the Tree-Structure BottleneckWilliam Kuszmaul, Jingxun Liang, Renfei ZhouSODA 2026 · 1 citation
- How to Store a Random WalkEmanuele Viola, Omri Weinstein, Huacheng YuSODA 2020 · 4 citations
- Compressing Dynamic Fully Indexable Dictionaries in Word-RAMGabriel Marques DominguesSTOC 2026 · 2 citations
- Tiny PointersMichael A. Bender, Alex Conway, Martin Farach-Colton, William Kuszmaul et al.SODA 2023 · 11 citations
