Double Hashing - Classical Applied Data Structure

Classical Applied Data Structure

Double hashing with open addressing is a classical data structure on a table . Let be the number of elements stored in then 's load factor is .

Double hashing approximates uniform open address hashing. That is, start by randomly, uniformly and independently selecting two universal hash functions and to build a double hashing table .

All elements are put in by double hashing using and . Given a key, determining the -st hash location is computed by:


Let have fixed load factor . Bradford and Katehakis showed the expected number of probes for an unsuccessful search in, still using these initially chosen hash functions, is regardless of the distribution of the inputs.

Previous results include: Guibas and Szemerédi showed holds for unsuccessful search for load factors . Also, Lueker and Molodowitch showed this held assuming ideal randomized functions. Schmidt and Siegel showed this with more realistic -wise independent and uniform functions (for, and suitable constant ).


Like linear probing, it uses one hash value as a starting point and then repeatedly steps forward an interval until the desired value is located, an empty location is reached, or the entire table has been searched; but this interval is decided using a second, independent hash function (hence the name double hashing). Unlike linear probing and quadratic probing, the interval depends on the data, so that even values mapping to the same location have different bucket sequences; this minimizes repeated collisions and the effects of clustering. In other words, given independent hash functions and, the jth location in the bucket sequence for value k in a hash table is:

Read more about this topic:  Double Hashing

Famous quotes containing the words classical, applied, data and/or structure:

    Several classical sayings that one likes to repeat had quite a different meaning from the ones later times attributed to them.
    Johann Wolfgang Von Goethe (1749–1832)

    The axioms of physics translate the laws of ethics. Thus, “the whole is greater than its part;” “reaction is equal to action;” “the smallest weight may be made to lift the greatest, the difference of weight being compensated by time;” and many the like propositions, which have an ethical as well as physical sense. These propositions have a much more extensive and universal sense when applied to human life, than when confined to technical use.
    Ralph Waldo Emerson (1803–1882)

    Mental health data from the 1950’s on middle-aged women showed them to be a particularly distressed group, vulnerable to depression and feelings of uselessness. This isn’t surprising. If society tells you that your main role is to be attractive to men and you are getting crow’s feet, and to be a mother to children and yours are leaving home, no wonder you are distressed.
    Grace Baruch (20th century)

    Just as a new scientific discovery manifests something that was already latent in the order of nature, and at the same time is logically related to the total structure of the existing science, so the new poem manifests something that was already latent in the order of words.
    Northrop Frye (b. 1912)