Skip to main content
QUICK REVIEW

[Paper Review] Succinct Data Structures for Retrieval and Approximate Membership

Martin Dietzfelbinger, Rasmus Pagh|ArXiv.org|Mar 26, 2008
Caching and Content DeliveryComputer Science33 references46 citations
TL;DR

This paper presents succinct data structures for retrieval and approximate membership that achieve space usage within a factor of $1 + e^{-k}$ of optimal for $k$-query time, eliminating the $\Theta(n)$-bit overhead common in prior methods. By leveraging random matrix theory and perfect hashing, it enables near-optimal space usage with fast query times, even achieving $n + O(\log \log n)$ bits with high probability under full randomness assumptions.

ABSTRACT

The retrieval problem is the problem of associating data with keys in a set. Formally, the data structure must store a function f: U ->{0,1}^r that has specified values on the elements of a given set S, a subset of U, |S|=n, but may have any value on elements outside S. Minimal perfect hashing makes it possible to avoid storing the set S, but this induces a space overhead of Theta(n) bits in addition to the nr bits needed for function values. In this paper we show how to eliminate this overhead. Moreover, we show that for any k query time O(k) can be achieved using space that is within a factor 1+e^{-k} of optimal, asymptotically for large n. If we allow logarithmic evaluation time, the additive overhead can be reduced to O(log log n) bits whp. The time to construct the data structure is O(n), expected. A main technical ingredient is to utilize existing tight bounds on the probability of almost square random matrices with rows of low weight to have full row rank. In addition to direct constructions, we point out a close connection between retrieval structures and hash tables where keys are stored in an array and some kind of probing scheme is used. Further, we propose a general reduction that transfers the results on retrieval into analogous results on approximate membership, a problem traditionally addressed using Bloom filters. Again, we show how to eliminate the space overhead present in previously known methods, and get arbitrarily close to the lower bound. The evaluation procedures of our data structures are extremely simple (similar to a Bloom filter). For the results stated above we assume free access to fully random hash functions. However, we show how to justify this assumption using extra space o(n) to simulate full randomness on a RAM.

Motivation & Objective

  • To eliminate the $\Theta(n)$-bit space overhead in minimal perfect hashing and retrieval data structures.
  • To achieve space usage within $1 + e^{-k}$ of optimal for $k$-query time, asymptotically for large $n$.
  • To reduce the additive space overhead to $O(\log \log n)$ bits with logarithmic evaluation time, with high probability.
  • To establish a general reduction from retrieval structures to approximate membership, enabling space-optimal Bloom filter alternatives.
  • To justify the use of fully random hash functions using $o(n)$ extra space to simulate full randomness on a RAM.

Proposed method

  • Utilize tight bounds on the rank of random matrices with low-weight rows to ensure full row rank with high probability.
  • Construct a perfect hash function via Gaussian elimination and perfect matching in bipartite graphs to map keys to unique positions.
  • Represent the hash function using a vector $a$ of $m = (1 + \delta)n$ words, each of $r = \lceil \log k \rceil$ bits, minimizing space overhead.
  • Apply a splitting trick to reduce construction time while maintaining correctness and space efficiency.
  • Reduce the retrieval problem to approximate membership via a general transformation, enabling space-optimal approximate membership data structures.
  • Simulate fully random hash functions using $o(n)$ extra space to justify the assumption of full randomness in practice.

Experimental results

Research questions

  • RQ1Can retrieval data structures be constructed with space usage arbitrarily close to the information-theoretic lower bound?
  • RQ2What is the minimal space overhead achievable for $k$-query time retrieval structures, and can it be bounded by $1 + e^{-k}$?
  • RQ3Can the space overhead in approximate membership structures be reduced to near-optimal levels, matching the entropy lower bound?
  • RQ4To what extent does the correspondence between random matrix rank thresholds and $k$-ary cuckoo hashing hold for small $r$?
  • RQ5Can simpler hash functions replace fully random ones without sacrificing space or time efficiency in the construction?

Key findings

  • The paper achieves space usage of $n + o(n)$ bits for retrieval, eliminating the $\Theta(n)$-bit overhead of prior methods.
  • For $k$-query time, space usage is within $1 + e^{-k}$ of optimal, with $\delta = \beta_k^{-1} - 1$ as the relative overhead.
  • With logarithmic evaluation time, the additive overhead is reduced to $O(\log \log n)$ bits with high probability.
  • For $k=4$, the space usage is $2.07n$ bits, improving upon the $2.29n$ bits of prior constructions with minimal perfect hashing.
  • The construction can be justified on a RAM using $o(n)$ extra space to simulate fully random hash functions.
  • A general reduction transforms retrieval structures into space-optimal approximate membership structures, matching the entropy lower bound.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.