skip to main content
article
Free Access

Minimal perfect hash functions made simple

Published:01 January 1980Publication History
Skip Abstract Section

Abstract

A method is presented for computing machine independent, minimal perfect hash functions of the form: hash value ← key length + the associated value of the key's first character + the associated value of the key's last character. Such functions allow single probe retrieval from minimally sized tables of identifier lists. Application areas include table lookup for reserved words in compilers and filtering high frequency words in natural language processing. Functions for Pascal's reserved words, Pascal's predefined identifiers, frequently occurring English words, and month abbreviations are presented as examples.

References

  1. 1 Knuth, D.E. The Art of Computing Programming. Volume 3: Sorting and Searching. Addison-Wesley, Reading, Mass., 1973, pp. 506-507. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2 Sheil, B.A. Median split trees: A fast lookup technique for frequently occurring keys. Comm. ACM 21, 11 (Nov. 1978), 947-958. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 Sprugnoli, R. Perfect hashing functions: A single probe retrieving method for static sets. Comm. ACM 20, I l (Nov. 1977), 841-850. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Minimal perfect hash functions made simple
    Index terms have been assigned to the content through auto-classification.

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader