arXiv:0902.2648

Paper record

W1600708628

More Haste, Less Waste: Lowering the Redundancy in Fully Indexable Dictionaries

Roberto Grossi, Alessio Orlandi, Rajeev Raman, Rao, S. Srinivasa

Licence: cc-by-nd
Year
2009
Venue
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
References
36
Cited by
47

Details and counts from OpenAlex.

Abstract

We consider the problem of representing, in a compressed format, a bit-vector~SS of mm bits with nn 1\mathbf{1}s, supporting the following operations, where $b \in \{ \mathbf{0}, \mathbf{1} \}$: \begin{itemize} \item rankb(S,i)\mathtt{rank}_b(S,i) returns the number of occurrences of bit bb in the prefix S[1..i]S\left[1..i\right]; \item selectb(S,i)\mathtt{select}_b(S,i) returns the position of the iith occurrence of bit bb in SS. \end{itemize} Such a data structure is called \emph{fully indexable dictionary (\textsc{fid})} [Raman, Raman, and Rao, 2007], and is at least as powerful as predecessor data structures. Viewing SS as a set $X = \{ x_1, x_2, \ldots, x_n \}$ of nn distinct integers drawn from a universe $[m] = \{1, \ldots, m\}$, the predecessor of integer y∈[m]y \in [m] in XX is given by \ensuremathselect1(S,\ensuremathrank1(S,y−1))\ensuremath{\mathtt{select}^{}_1}(S, \ensuremath{\mathtt{rank}_1}(S,y-1)). {\textsc{fid}}s have many applications in succinct and compressed data structures, as they are often involved in the construction of succinct representation for a variety of abstract data types. Our focus is on space-efficient {\textsc{fid}}s on the \textsc{ram} model with word size Θ(lg⁡m)\Theta(\lg m) and constant time for all operations, so that the time cost is independent of the input size. Given the bitstring SS to be encoded, having length mm and containing nn ones, the minimal amount of information that needs to be stored is B(n,m)=⌈log⁡(mn)⌉B(n,m) = \lceil \log {{m}\choose{n}} \rceil. The state of the art in building a \textsc{fid}\ for~SS is given in~\mbox{}[P\v{a}tra\c{s}cu, 2008] using $B(m,n)+O( m / ( (\log m/ t) ^t) ) + O(m^{3/4}) $ bits, to support the operations in O(t)O(t) time. Here, we propose a parametric data structure exhibiting a time/space trade-off such that, for any real constants 0<δ≤1/20 < \delta \leq 1/2, 0<ε≤10 < \varepsilon \leq 1, and integer s>0s > 0, it uses \[ B(n,m) + O\left(n^{1+\delta} + n \left(\frac{m}{n^s}\right)^\varepsilon\right) \] bits and performs all the operations in time O(sδ−1+ε−1)O(s\delta^{-1} + \varepsilon^{-1}). The improvement is twofold: our redundancy can be lowered parametrically and, fixing s=O(1)s = O(1), we get a constant-time \textsc{fid}\ whose space is B(n,m)+O(mε/poly(n))B(n,m) + O(m^\varepsilon/\mathrm{poly}(n)) bits, for sufficiently large mm. This is a significant improvement compared to the previous bounds for the general case.