@hackage cuckoo0.1.0.0

Haskell Implementation of Cuckoo Filters

  • Installation

  • Tested Compilers

  • Dependencies (11)

  • Dependents (0)

  • Package Flags

      mwc-random
       (off by default)

      Use mwc-random instead of the random package

      pcg-random
       (off by default)

      Use pcg-random instead of the random package

Build Status

Haskell implementation of Cuckoo filters as described in

B. Fan, D.G. Anderson, M. Kaminsky, M.D. Mitzenmacher. Cuckoo Filter: Practically Better Than Bloom. In Proc. CoNEXT, 2014.

Cuckoo filters are a data structure for probabilistic set membership. They support insertion, deletion, and membership queries for set elements.

Membership queries may return false positive results. But queries don't return false negative results.

Unlike Bloom filters, Cuckoo filters maintain an upper bound on the false positive rate that is independent of the load of the filter. However, insertion of new elements in the filter can fail. For typical configurations this probability is very small for load factors smaller than 90 percent.

The implementation allows the user to specify the bucket size and the fingerprint size in addition to the capacity of the filter. The user can also provide custom functions for computing the primary hash and fingerprint.