Fast Succinct Retrieval and Approximate Membership using Ribbon

Peter C. Dillinger, Lorenz Hübschle-Schneider, Peter Sanders, Stefan Walzer
9/4/2021
45 citations
cs.DS

Official code: lorenzhs/BuRR (52 stars, C++, Apache-2.0, last commit 2026-09-13).

Abstract

A retrieval data structure for a static function $f:S\rightarrow \{0,1\}^r$ supports queries that return $f(x)$ for any $x \in S$. Retrieval data structures can be used to implement a static approximate membership query data structure (AMQ), i.e., a Bloom filter alternative, with false positive rate $2^{-r}$.

Show full abstract

The information-theoretic lower bound for both tasks is $r|S|$ bits. While succinct theoretical constructions using $(1+o(1))r|S|$ bits were known, these could not achieve very small overheads in practice because they have an unfavorable space--time tradeoff hidden in the asymptotic costs or because small overheads would only be reached for physically impossible input sizes. With bumped ribbon retrieval (BuRR), we present the first practical succinct retrieval data structure. In an extensive experimental evaluation BuRR achieves space overheads well below 1\,\% while being faster than most previously used retrieval data structures (typically with space overheads at least an order of magnitude larger) and faster than classical Bloom filters (with space overhead $\geq 44\,\%$). This efficiency, including favorable constants, stems from a combination of simplicity, word parallelism, and high locality. We additionally describe homogeneous ribbon filter AMQs, which are even simpler and faster at the price of slightly larger space overhead.

View on arXivView PDF

Code Implementations(1)

lorenzhs/BuRROfficial100%
Apache-2.0

Bumped Ribbon Retrieval and Approximate Membership Query

527C++, ShellJul 19, 20212 months agoApache-2.0
amqapproximate-membershipapproximate-membership-querybloom-filterbloom-filter-alternative+1 more

Similar Papers

Cite this paper

@article{dillinger2021fast,
  title  = {Fast Succinct Retrieval and Approximate Membership using Ribbon},
  author = {Peter C. Dillinger and Lorenz Hübschle-Schneider and Peter Sanders and Stefan Walzer},
  year   = {2021},
  eprint = {2109.01892},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.01892}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.01892.svg)](https://codeofpaper.com/paper/2109.01892)

Discussion