近似最优静态Las Vegas简洁字典
Nearly Optimal Static Las Vegas Succinct Dictionary
摘要:
给定一组来自键空间$[U]$的$n$(不同)键的$S$,每个键与来自$Σ$的值相关联,\emph{static dictionary}问题要求将这些(键,值)对预处理成数据结构,支持值检索查询:对于任何给定的$x\in [U]$,如果是$x\in S$,则$\mathtt{valRet}(x)$必须返回与$x$相关联的值,或者如果是$x\notin S$,则返回$\bot$。$|Σ|=1$的特殊情况称为\emph{membership}问题。“教科书”解决方案是使用哈希表,它占用线性空间并在恒定时间内回答每个查询。另一方面,编码所有(键,值)对的最小可能空间只有$\mathtt{OPT}:= \lceil\lg_2\binom{U}{n}+n\lg_2|Σ|\rceil$ bits,这可能会更少。在本文中,我们设计了一个随机字典数据结构使用$\mathtt{OPT}+\mathrm{poly}\lg n+O(\lg\lg\lg\lg\lg U)$ bits的空间,它有\emph{expected constant}查询时间,假设查询算法可以访问一个外部查找表的大小$n^{0.001}$。查找表仅依赖于$U$、$n$和$|Σ|$,而不依赖于输入。以前,即使对于成员关系查询和$U\leq n^{O(1)}$,最著名的具有恒定查询时间的数据结构也需要$\mathtt{OPT}+n/\mathrm{poly}\lg n$位空间(Pagh [Pag 01]和Pagetrahiccu [Pat 08]);最著名的使用$\mathtt{OPT}+n^{0.999}$空间的数据结构具有查询时间$O(\lg n)$ ;唯一已知的具有$\mathtt{OPT}+n^{0.001}$空间的非平凡数据结构具有$O(\lg n)$查询时间,并且需要大小为$\geq n^{2.99}$(!)的查找表。我们的新数据结构回答了Ptrajcu和Thorup [Pat 08,Tho 13]的开放问题。我们还提出了一个方案,压缩序列$X\inΣ^n$到其零阶(经验)熵高达$|Σ|\cdot\mathrm{poly}\lg n$额外的位,支持解码每个$X_i$在$O(\lg |Σ|)$预期的时间。
英文摘要:
Given a set $S$ of $n$ (distinct) keys from key space $[U]$, each associated with a value from $Σ$, the \emph{static dictionary} problem asks to preprocess these (key, value) pairs into a data structure, supporting value-retrieval queries: for any given $x\in [U]$, $\mathtt{valRet}(x)$ must return the value associated with $x$ if $x\in S$, or return $\bot$ if $x\notin S$. The special case where $|Σ|=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 $\mathtt{OPT}:= \lceil\lg_2\binom{U}{n}+n\lg_2|Σ|\rceil$ bits, which could be much less. In this paper, we design a randomized dictionary data structure using $\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 $n^{0.001}$. The lookup table depends only on $U$, $n$ and $|Σ|$, and not the input. Previously, even for membership queries and $U\leq n^{O(1)}$, the best known data structure with constant query time requires $\mathtt{OPT}+n/\mathrm{poly}\lg n$ bits of space (Pagh [Pag01] and Pǎtraşcu [Pat08]); the best-known using $\mathtt{OPT}+n^{0.999}$ space has query time $O(\lg n)$; the only known non-trivial data structure with $\mathtt{OPT}+n^{0.001}$ space has $O(\lg n)$ query time and requires a lookup table of size $\geq n^{2.99}$ (!). Our new data structure answers open questions by Pǎtraşcu and Thorup [Pat08,Tho13]. We also present a scheme that compresses a sequence $X\inΣ^n$ to its zeroth order (empirical) entropy up to $|Σ|\cdot\mathrm{poly}\lg n$ extra bits, supporting decoding each $X_i$ in $O(\lg |Σ|)$ expected time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。