Separate Chaining Meets Compact Hashing

Dominik Köppl
5/1/2019
cs.DS

Official code: rigtorp/HashMap (224 stars, C++, MIT, last commit 2026-11-14).

Abstract

While separate chaining is a common strategy for resolving collisions in a hash table taught in most textbooks, compact hashing is a less common technique for saving space when hashing integers whose domain is relatively small with respect to the problem size. It is widely believed that hash tables waste a considerable amount of memory, as they either leave allocated space untouched (open addressing) or store additional pointers (separate chaining).

Show full abstract

For the former, Cleary introduced the compact hashing technique that stores only a part of a key to save space. However, as can be seen by the line of research focusing on compact hash tables with open addressing, there is additional information, called displacement, required for restoring a key. There are several representations of this displacement information with different space and time trade-offs. In this article, we introduce a separate chaining hash table that applies the compact hashing technique without the need for the displacement information. Practical evaluations reveal that insertions in this hash table are faster or use less space than all previously known compact hash tables on modern computer architectures when storing sufficiently large satellite data.

View on arXivView PDF

Code Implementations(1)

rigtorp/HashMapOfficial100%
MIT

An open addressing linear probing hash table, tuned for delete heavy workloads

22433C++, CMakeDec 9, 20152 weeks agoMIT
backshift-deletionhashmaphashtablelinear-probingopen-addressing

Similar Papers

Cite this paper

@article{kppl2019separate,
  title  = {Separate Chaining Meets Compact Hashing},
  author = {Dominik Köppl},
  year   = {2019},
  eprint = {1905.00163},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.00163}
}

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

Discussion