PERFECT HASHING FUNCTIONS - SINGLE PROBE RETRIEVING METHOD FOR STATIC SETS

被引:78
作者
SPRUGNOLI, R [1 ]
机构
[1] CNR, INST ELABORAZIONE INFORMAT, I-56100 PISA, ITALY
关键词
Codes (symbols) - Hash functions;
D O I
10.1145/359863.359887
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
A refinement of hashing which allows retrieval of an item in a static table with a single probe is considered. Given a set I of identifiers, two methods are presented for building, in a mechanical way, perfect hashing functions, i.e. functions transforming the elements of I into unique addresses. The first method, the quotient reductionmethod, is shown to be complete in the sense that for every set I the smallest table in which the elements of I can be stored and from which they can be retrieved by using a perfect hashing function constructed by this method can be found. However, for nonuniformly distributed sets, this method can give rather sparse tables. The second method, the remainder reductionmethod, is not complete in the above sense, but it seems to give minimal (or almost minimal) tables for every kind of set. The two techniques are applicable directly to small sets. Some methods to extend these results to larger sets are also presented. A rough comparison with ordinary hashing is given which shows that this method can be used conveniently in several practical applications. © 1977 ACM.
引用
收藏
页码:841 / 850
页数:10
相关论文
共 7 条
  • [1] THE EXTERNAL LANGUAGE KLIPA FOR THE URAL-2 DIGITAL COMPUTER
    GRENIEWSKI, M
    TURSKI, W
    [J]. COMMUNICATIONS OF THE ACM, 1963, 6 (06) : 321 - 324
  • [2] HASHING FUNCTIONS
    KNOTT, GD
    [J]. COMPUTER JOURNAL, 1975, 18 (03) : 265 - 278
  • [3] Knuth D. E., 1971, Software - Practice and Experience, V1, P105, DOI 10.1002/spe.4380010203
  • [4] Knuth Donald E, 1968, ART COMPUTER PROGRAM, V1
  • [5] Maurer W. D., 1975, Computing Surveys, V7, P5, DOI 10.1145/356643.356645
  • [6] Niven I., 1960, INTRO THEORY NUMBERS
  • [7] Severence D. G., 1974, Computing Surveys, V6, P175, DOI 10.1145/356631.356633