gnuphie / minperf

A Minimal Perfect Hash Function Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minperf

A Minimal Perfect Hash Function Library.

  • Written in Java.
  • Can generate, in linear time, MPHFs that need less than 1.58 bits per key.
  • Concurrent generation.
  • Tested up to 1 billion keys.
  • Two parameters to configure space needed, generation time, and evaluation time.
  • Can be used as a static bloom filter, by storing a hash fingerprint per key.
  • Performance very similar than the Sux4J CHD and GOV algorithms, but configurable, with ability to use less space.

This library should already be usable, but it is still work in progress. The plan is to publish a paper.

The algorithm used is described here as text, and here as slideshow (also available on SlideShare).

About

A Minimal Perfect Hash Function Library

License:Apache License 2.0


Languages

Language:Java 100.0%