PaCHash: Packed and Compressed Hash Tables

Florian Kurpicz, Hans-Peter Lehmann, Peter Sanders
5/10/2022
13 citations
cs.DS

Official code: ByteHamster/PaCHash (15 stars, C++, GPL-3.0, last commit 2025-04-07). 1 more implementation below.

Abstract

We introduce PaCHash, a hash table that stores its objects contiguously in an array without intervening space, even if the objects have variable size. In particular, each object can be compressed using standard compression techniques.

Show full abstract

A small search data structure allows locating the objects in constant expected time. PaCHash is most naturally described as a static external hash table where it needs a constant number of bits of internal memory per block of external memory. Here, in some sense, PaCHash beats a lower bound on the space consumption of k-perfect hashing. An implementation for fast SSDs needs about 5 bits of internal memory per block of external memory, requires only one disk access (of variable length) per search operation, and has small internal search overhead compared to the disk access cost. Our experiments show that it has lower space consumption than all previous approaches even when considering objects of identical size.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ByteHamster/PaCHashOfficial15C++GPL-3.02025-04-07
ByteHamster/PaCHash-ExperimentsOfficial2C++GPL-3.02022-10-19
GPL-3.0

Packed and Compressed Hash Tables

151C++, CMakeDec 15, 20211 years agoGPL-3.0
GPL-3.0

This repository contains benchmarks for PaCHash.

21C++, TeXApr 25, 20224 years agoGPL-3.0

Similar Papers

Cite this paper

@article{kurpicz2022pachash,
  title  = {PaCHash: Packed and Compressed Hash Tables},
  author = {Florian Kurpicz and Hans-Peter Lehmann and Peter Sanders},
  year   = {2022},
  eprint = {2205.04745},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.04745}
}

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

Discussion