English

Nearly Optimal Static Las Vegas Succinct Dictionary

Data Structures and Algorithms 2020-09-01 v2 Information Theory math.IT

Abstract

Given a set SS of nn (distinct) keys from key space [U][U], each associated with a value from Σ\Sigma, the \emph{static dictionary} problem asks to preprocess these (key, value) pairs into a data structure, supporting value-retrieval queries: for any given x[U]x\in [U], valRet(x)\mathtt{valRet}(x) must return the value associated with xx if xSx\in S, or return \bot if xSx\notin S. The special case where Σ=1|\Sigma|=1 is called the \emph{membership} problem. The "textbook" solution is to use a hash table, which occupies linear space and answers each query in constant time. On the other hand, the minimum possible space to encode all (key, value) pairs is only OPT:=lg2(Un)+nlg2Σ\mathtt{OPT}:= \lceil\lg_2\binom{U}{n}+n\lg_2|\Sigma|\rceil bits, which could be much less. In this paper, we design a randomized dictionary data structure using OPT+polylgn+O(lglglglglgU)\mathtt{OPT}+\mathrm{poly}\lg n+O(\lg\lg\lg\lg\lg U) bits of space, and it has \emph{expected constant} query time, assuming the query algorithm can access an external lookup table of size n0.001n^{0.001}. The lookup table depends only on UU, nn and Σ|\Sigma|, and not the input. Previously, even for membership queries and UnO(1)U\leq n^{O(1)}, the best known data structure with constant query time requires OPT+n/polylgn\mathtt{OPT}+n/\mathrm{poly}\lg n bits of space (Pagh [Pag01] and P\v{a}tra\c{s}cu [Pat08]); the best-known using OPT+n0.999\mathtt{OPT}+n^{0.999} space has query time O(lgn)O(\lg n); the only known non-trivial data structure with OPT+n0.001\mathtt{OPT}+n^{0.001} space has O(lgn)O(\lg n) query time and requires a lookup table of size n2.99\geq n^{2.99} (!). Our new data structure answers open questions by P\v{a}tra\c{s}cu and Thorup [Pat08,Tho13]. We also present a scheme that compresses a sequence XΣnX\in\Sigma^n to its zeroth order (empirical) entropy up to Σpolylgn|\Sigma|\cdot\mathrm{poly}\lg n extra bits, supporting decoding each XiX_i in O(lgΣ)O(\lg |\Sigma|) expected time.

Keywords

Cite

@article{arxiv.1911.01348,
  title  = {Nearly Optimal Static Las Vegas Succinct Dictionary},
  author = {Huacheng Yu},
  journal= {arXiv preprint arXiv:1911.01348},
  year   = {2020}
}

Comments

preliminary version appeared in STOC'20

R2 v1 2026-06-23T12:04:20.082Z