vector adapter example updated to be used with brz algorithm
This commit is contained in:
parent
293ae3c811
commit
32829274c4
@ -14,7 +14,6 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
//Create minimal perfect hash function using the default (chm) algorithm.
|
//Create minimal perfect hash function using the default (chm) algorithm.
|
||||||
cmph_config_t *config = cmph_config_new(source);
|
cmph_config_t *config = cmph_config_new(source);
|
||||||
cmph_config_set_graphsize(config, 1.0); // this is not required, just to get a smaller function
|
|
||||||
cmph_config_set_algo(config, CMPH_BRZ);
|
cmph_config_set_algo(config, CMPH_BRZ);
|
||||||
cmph_config_set_mphf_fd(config, mphf_fd);
|
cmph_config_set_mphf_fd(config, mphf_fd);
|
||||||
cmph_t *hash = cmph_new(config);
|
cmph_t *hash = cmph_new(config);
|
||||||
|
Loading…
Reference in New Issue
Block a user