English

Hashing with Linear Probing and Referential Integrity

Data Structures and Algorithms 2018-08-15 v1

Abstract

We describe a variant of linear probing hash tables that never moves elements and thus supports referential integrity, i.e., pointers to elements remain valid while this element is in the hash table. This is achieved by the folklore method of marking some table entries as formerly occupied (tombstones). The innovation is that the number of tombstones is minimized. Experiments indicate that this allows an unbounded number of operations with bounded overhead compared to linear probing without tombstones (and without referential integrity).

Keywords

Cite

@article{arxiv.1808.04602,
  title  = {Hashing with Linear Probing and Referential Integrity},
  author = {Peter Sanders},
  journal= {arXiv preprint arXiv:1808.04602},
  year   = {2018}
}

Comments

5 pages, 3 figures

R2 v1 2026-06-23T03:33:12.031Z