Hostname: page-component-89b8bd64d-nlwjb Total loading time: 0 Render date: 2026-05-06T16:43:18.673Z Has data issue: false hasContentIssue false

Hashing with Linear Probing under Nonuniform Probabilities

Published online by Cambridge University Press:  27 July 2009

David Aldous
Affiliation:
Department of StatisticsUniversity of California, Berkeley Berkeley, California 94720

Abstract

Probabilistic analyses of hashing algorithms usually assume that hash values are uniformly distributed over addresses. We study how one of the simplest schemes, hashing with linear probing, behaves in the nonuniform case. A simple measure μ of nonuniformity is the probability two keys hash to the same address, divided by this probability in the uniform case. It turns out that the effect of nonuniformity is to multiply mean search lengths by μ. For high loads, the longest search is multiplied by approximately μ also. Our theoretical results are asymptotics: simulations show good fits with predictions for mean search lengths, but bad fits for longest search lengths.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 1988

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable