Optimal Static Dictionary with Worst-Case Constant Query Time
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 := Un+n σ. 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 n space [Patrascu 2008], or with OPT+nε space but expected constant query time [Yu 2020]. 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 n bits.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.