... 什么是完美哈希函数 完美哈希函数(Perfect Hash Function,简称PHF)就是没有冲突的哈希函数,也就是,函数 H 将 N 个 KEY 值映射到 M 个整数上,这里 M>=N ,而且,对于任意的 KEY1 ,KEY...
基于30个网页-相关网页
Minimal Perfect Hash Function 最小完美哈希函数
以上来源于: WordNet
Gperf considers only a subset of each keyword's characters as the key when it searches for a perfect hash function.
在搜索完美hash函数时,gperf只将每个关键字字符中的一部分作为搜索键。
A perfect hash function is produced when gperf finds a configuration that assigns each keysig to a unique location within the generated lookup table.
当gperf找到某种配置,并且该配置将每个keysig分配到生成的查找表中惟一位置时,将生成一个完美hash函数。
The resulting perfect hash() function returns an unsigned int value in the range 0..(k-1), where k is the maximum keyword hash value +1.
产生的完美 hash() 函数返回一个无符号的 int 值,范围为 0..(k-1),其中 k 值为最大关键字散列值加 1。
应用推荐