Linear Probing - Dictionary Operation in Constant Time

Dictionary Operation in Constant Time

Using linear probing, dictionary operation can be implemented in constant time. In other words, insert, remove and find operations can be implemented in O(1), as long as the load factor of the hash table is a constant strictly less than one. This analysis makes the (unrealistic) assumption that the hash function is completely random, but can be extended also to 5-independent hash functions. Weaker properties, such as universal hashing, are not strong enough to ensure the constant-time operation of linear probing, but one practical method of hash function generation, tabulation hashing, again leads to a guaranteed constant expected time performance despite not being 5-independent.

Read more about this topic:  Linear Probing

Famous quotes containing the words dictionary, operation, constant and/or time:

    ““Will I have to use a dictionary to read your book?” asked Mrs. Dodypol. “It depends,” says I, “how much you used the dictionary before you read it.””
    —Alexander Theroux (b. 1940)

    “An absolute can only be given in an intuition, while all the rest has to do with analysis. We call intuition here the sympathy by which one is transported into the interior of an object in order to coincide with what there is unique and consequently inexpressible in it. Analysis, on the contrary, is the operation which reduces the object to elements already known.”
    —Henri Bergson (1859–1941)

    “Praise to Christ who feeds the hungry, frees the captive, finds the lost,
    Heals the sick, upsets religion, fearless both of fate and cost.
    Celebrate Christ’s constant presence—Friend and Stranger, Guest and Host.”
    —The Iona Community (founded 1938)

    “Every epoch which seeks renewal first projects its ideal into a human form. In order to comprehend its own essence tangibly, the spirit of the time chooses a human being as its prototype and raising this single individual, often one upon whom it has chanced to come, far beyond his measure, the spirit enthuses itself for its own enthusiasm.”
    —Stefan Zweig (18811942)