Recursive hashing functions for n -grams
Jonathan Cohen
Abstract
Open-access reader
Jonathan Cohen
Abstract
Open-access reader
Many indexing, retrieval, and comparison methods are based on counting or cataloguing n -grams in streams of symbols. The fastest method of implementing such operations is through the use of hash tables. Rapid hashing of consecutive n -grams is best done using a recursive hash function, in which the hash value of the current n -gram is drived from the hash value of its predecessor. This article generalizes recursive hash functions found in the literature and proposes new methods offering superior performance. Experimental results demonstrate substantial speed improvement over conventional approaches, while retaining near-ideal hash value distribution.
OpenAlex reports 66 citations for this work. Citation counts describe recorded attention and do not establish research quality.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
Many indexing, retrieval, and comparison methods are based on counting or cataloguing n -grams in streams of symbols. The fastest method of implementing such operations is through the use of hash tables. Rapid hashing of consecutive n -grams is best done using a recursive hash function, in which the hash value of the current n -gram is drived from the hash value of its predecessor. This article generalizes recursive hash functions found in the literature and proposes new methods offering superior performance. Experimental results demonstrate substantial speed improvement over conventional approaches, while retaining near-ideal hash value distribution.
Key concepts: Hash function, Double hashing, Computer science, Universal hashing, Dynamic perfect hashing, Linear hashing, Search engine indexing, Hash table