Computer Engineering & Science >
A Perfect Hash Function for LargeScale Dictionaries Based on MultiStage Dependency Graphs
Received date: 2009-07-14
Revised date: 2010-01-15
Online published: 2010-12-25
In the hash function, if there are two different words are mapped into the same slot, we call it a conflict. When the hash function appears in the conflict, it slows the dictionary’s finding speed. Since the perfect hash function completely avoids the conflict, it is used popularly in the application of high function demands. So a perfect hash function based on multistage dependency graphs is presented in this paper. Each character (except for the first one) of a key is smoothed into two smoothed characters using two different smoothing functions. A multistage dependency graph is constructed. The degree of the vertices in the multistage dependency graph of the smoothed keyset is much more evenly distributed, so that a perfect hash function is easier to obtain. The perfect hash function is promising to give solution to large keysets. The load factor remains still high even for huge keysets over large charactersets. Experiments indicate that the load factor is competitive, and meanwhile its working space is less than that of the existing hash functions.
LI Haitao . A Perfect Hash Function for LargeScale Dictionaries Based on MultiStage Dependency Graphs[J]. Computer Engineering & Science, 2010 , 32(12) : 128 -133 . DOI: 10.3969/j.issn.1007130X.2010.
/
| 〈 |
|
〉 |