English

Compressing Dynamic Fully Indexable Dictionaries in Word-RAM

Data Structures and Algorithms 2026-03-25 v1

Abstract

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 BB of length uu and answers, for b{0,1}b\in\{0,1\}, rankb(B,x)={yx  B[y]=b}\texttt{rank}_b(B, x)=|{\{y\leq x~|~B[y]=b\}}| and selectb(B,r)=min{0x<u  rankb(B,x)=r}\texttt{select}_b(B, r)=\min\{0\leq x<u~|~\texttt{rank}_b(B, x)=r\} (1-1 if empty). A dynamic FID supports updates that modify a single bit of BB, i.e., B[i]bB[i]\gets b. We work in the Word-RAM model with ww-bit words, assuming wlguw\geq \operatorname{lg} u. Integer multiplication takes O(1)\mathcal{O}(1) time. Our memory model is MB\mathcal{M}_B, allowing access to a fixed precomputed table of τ=polylog(w)\tau=\operatorname{polylog}(w) words, which can be computed in O(wτ)\mathcal{O}(w\tau) time. In this paper, we show a dynamic FID based on the famous fusion-tree data-structure of P{\u{a}}tra{\c{s}}cu and Thorup [FOCS 2014], modified to use fewer bits and to support select0\texttt{select}_0. Let nn denote the number of ones in BB. We describe a parametric construction: for every ϵ1/2\epsilon\leq 1/2, there is a dynamic FID using lg(un)+O(nwϵ/ϵ) bits\operatorname{lg}\binom{u}{n}+\mathcal{O}(nw^{\epsilon}/\epsilon)\text{ bits} taking O(1/ϵ+logw(n))\mathcal{O}({1/\epsilon+\log_w(n)}) time for rank0/rank1/select0\texttt{rank}_0/\texttt{rank}_1/\texttt{select}_0 and updates, and O(logw(n))\mathcal{O}({\log_w(n)}) time for select1\texttt{select}_1. All time bounds are worst-case. For ϵ=1/lgw\epsilon={1/\sqrt{\operatorname{lg} w}}, we reduce the space to lg(un)+O(nlogw)\operatorname{lg}\binom{u}{n}+\mathcal{O}(n\log w) bits. For ϵ=Θ(1)\epsilon=\Theta(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(nw)o(n\sqrt{w}) bits of redundancy in MB\mathcal{M}_B (e.g., ϵ=1/4\epsilon=1/4), and optimal worst-case time.

Keywords

Cite

@article{arxiv.2603.23119,
  title  = {Compressing Dynamic Fully Indexable Dictionaries in Word-RAM},
  author = {Gabriel Marques Domingues},
  journal= {arXiv preprint arXiv:2603.23119},
  year   = {2026}
}

Comments

25 pages; To appear at STOC'26

R2 v1 2026-07-01T11:35:19.694Z