libcmph

C library for generating minimal perfect hash functions

brewmacoslinux
Try with needOr install directly
Source

About

C minimal perfect hashing library

Commands

cmph

Examples

Generate a minimal perfect hash function from a list of keys$ cmph -g -k keys.txt -m CHD -o hash.mph
Query a generated hash function for a specific key$ cmph -m CHD -d hash.mph -k key_to_lookup
Create a perfect hash function using BDZ algorithm$ cmph -g -k input_keys.txt -a bdz -o output.mph