• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊
论文

A Perfect Hash Function for LargeScale Dictionaries Based on MultiStage Dependency Graphs

Expand
  • (Department of Computer Engineering,Taizhou Vocational and Technical College,Taizhou 318000,China)

Received date: 2009-07-14

  Revised date: 2010-01-15

  Online published: 2010-12-25

Abstract

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 multistage 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 multistage dependency graph is constructed. The degree of the vertices in the multistage dependency graph of the smoothed keyset 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 keysets. The load factor remains still high even for huge keysets over large charactersets. Experiments indicate that the load factor is competitive, and meanwhile its working space is less than that of the existing hash functions.

Cite this article

LI Haitao . A Perfect Hash Function for LargeScale Dictionaries Based on MultiStage Dependency Graphs[J]. Computer Engineering & Science, 2010 , 32(12) : 128 -133 . DOI: 10.3969/j.issn.1007130X.2010.

Outlines

/