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:
“The reputation of a man is like his shadow; it sometimes follows and sometimes precedes him, sometimes longer and sometimes shorter than his natural size.”
—French Proverb. Quoted in Dictionary of Similes, ed. Frank J. Wilstach (1916)
“You may read any quantity of books, and you may almost as ignorant as you were at starting, if you dont have, at the back of your minds, the change for words in definite images which can only be acquired through the operation of your observing faculties on the phenomena of nature.”
—Thomas Henry Huxley (182595)
“Young people of high school age can actually feel themselves changing. Progress is almost tangible. Its exciting. It stimulates more progress. Nevertheless, growth is not constant and smooth. Erik Erikson quotes an aphorism to describe the formless forming of it. I aint what I ought to be. I aint what Im going to be, but Im not what I was.”
—Stella Chess (20th century)
“An inch of time is worth more than a foot of jade.”
—Chinese proverb.