Cache-Oblivious Peeling of Random Hypergraphs

Djamal Belazzougui, Paolo Boldi, Giuseppe Ottaviano, Rossano Venturini, Sebastiano Vigna
12/2/2013
34 citations
cs.DS

Official code: ot/emphf (66 stars, C++, last commit 2024-05-29).

Abstract

The computation of a peeling order in a randomly generated hypergraph is the most time-consuming step in a number of constructions, such as perfect hashing schemes, random $r$-SAT solvers, error-correcting codes, and approximate set encodings. While there exists a straightforward linear time algorithm, its poor I/O performance makes it impractical for hypergraphs whose size exceeds the available internal memory.

Show full abstract

We show how to reduce the computation of a peeling order to a small number of sequential scans and sorts, and analyze its I/O complexity in the cache-oblivious model. The resulting algorithm requires $O(\mathrm{sort}(n))$ I/Os and $O(n \log n)$ time to peel a random hypergraph with $n$ edges. We experimentally evaluate the performance of our implementation of this algorithm in a real-world scenario by using the construction of minimal perfect hash functions (MPHF) as our test case: our algorithm builds a MPHF of $7.6$ billion keys in less than $21$ hours on a single machine. The resulting data structure is both more space-efficient and faster than that obtained with the current state-of-the-art MPHF construction for large-scale key sets.

View on arXivView PDF

Code Implementations(1)

ot/emphfOfficial100%

An efficient external-memory algorithm for the construction of minimal perfect hash functions

6611C++, PythonNov 26, 20132 years agoNOASSERTION

Similar Papers

Cite this paper

@article{belazzougui2013cacheoblivious,
  title  = {Cache-Oblivious Peeling of Random Hypergraphs},
  author = {Djamal Belazzougui and Paolo Boldi and Giuseppe Ottaviano and Rossano Venturini and Sebastiano Vigna},
  year   = {2013},
  eprint = {1312.0526},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1312.0526}
}

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/1312.0526.svg)](https://codeofpaper.com/paper/1312.0526)

Discussion