arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.23119cs.DS
收藏

在Word-RAM模型中压缩动态全索引字典

Compressing Dynamic Fully Indexable Dictionaries in Word-RAM

Tel Aviv University(特拉维夫大学)

Gabriel Marques Domingues

AI总结:

本文研究在Word-RAM模型中构建接近信息论下界的空间动态全索引字典(FID)问题,提出一种基于融合树数据结构的改进方法,实现高效的秩和选择操作,并在特定参数下达到最优空间和时间复杂度。

摘要:

我们研究在Word-RAM模型中构造动态全索引字典(FID)的问题,使用接近信息论下界的空间。FID是一种数据结构,编码长度为u的位向量B,并能回答对于b∈{0,1},rank_b(B,x)=|{y≤x | B[y]=b}|和select_b(B,r)=min{0≤x<u | rank_b(B,x)=r}(若为空则为-1)。动态FID支持修改B中单个位的操作,即B[i]←b。我们工作在具有w位字的Word-RAM模型中,假设w≥lg u。整数乘法在O(1)时间内完成。我们的内存模型是M_B,允许访问预计算的固定表τ=polylog(w)个字,可以在O(wτ)时间内计算。本文展示了一种基于Pătraşcu和Thorup[FOCS 2014]著名融合树数据结构的动态FID,经过修改以使用更少的位并支持select_0。令n表示B中1的个数。我们描述了一种参数化构造:对于每个ε≤1/2,存在一个动态FID使用lgC(u,n)+O(nw^ε/ε)位,执行rank_0/rank_1/select_0和更新的时间为O(1/ε+log_w(n)),执行select_1的时间为O(log_w(n))。所有时间界限均为最坏情况。对于ε=1/sqrt(lg w),我们将空间减少到lgC(u,n)+O(nlog w)位。对于ε=Θ(1),运行时间与Fredman和Saks[STOC 1989]的下界匹配。这是首个在标准Word-RAM模型中实现o(n√w)冗余的确定性动态FID,且具有最优最坏情况时间。

英文摘要:

We study the problem of constructing a dynamic fully indexable dictionary (FID) in the Word-RAM model using space close to the information-theoretic lower bound. A FID is a data-structure that encodes a bit-vector $B$ of length $u$ and answers, for $b\in\{0,1\}$, $\texttt{rank}_b(B, x)=|{\{y\leq x~|~B[y]=b\}}|$ and $\texttt{select}_b(B, r)=\min\{0\leq x<u~|~\texttt{rank}_b(B, x)=r\}$ ($-1$ if empty). A dynamic FID supports updates that modify a single bit of $B$, i.e., $B[i]\gets b$. We work in the Word-RAM model with $w$-bit words, assuming $w\geq \operatorname{lg} u$. Integer multiplication takes $\mathcal{O}(1)$ time. Our memory model is $\mathcal{M}_B$, allowing access to a fixed precomputed table of $τ=\operatorname{polylog}(w)$ words, which can be computed in $\mathcal{O}(wτ)$ time. In this paper, we show a dynamic FID based on the famous fusion-tree data-structure of P{ă}tra{ş}cu and Thorup [FOCS 2014], modified to use fewer bits and to support $\texttt{select}_0$. Let $n$ denote the number of ones in $B$. We describe a parametric construction: for every $ε\leq 1/2$, there is a dynamic FID using $$\operatorname{lg}\binom{u}{n}+\mathcal{O}(nw^ε/ε)\text{ bits}$$ taking $\mathcal{O}({1/ε+\log_w(n)})$ time for $\texttt{rank}_0/\texttt{rank}_1/\texttt{select}_0$ and updates, and $\mathcal{O}({\log_w(n)})$ time for $\texttt{select}_1$. All time bounds are worst-case. For $ε={1/\sqrt{\operatorname{lg} w}}$, we reduce the space to $\operatorname{lg}\binom{u}{n}+\mathcal{O}(n\log w)$ bits. For $ε=Θ(1)$, the running time matches the lower bound of Fredman and Saks [STOC 1989]. This is the first deterministic dynamic FID in the standard Word-RAM model that achieves $o(n\sqrt{w})$ bits of redundancy in $\mathcal{M}_B$ (e.g., $ε=1/4$), and optimal worst-case time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑