Professional Documents
Culture Documents
Slides - Algo Ds Hash Universal3 Typed PDF
Slides - Algo Ds Hash Universal3 Typed PDF
Universal Hash
Functions: Performance
Design and Analysis
Guarantees (Chaining)
of Algorithms I
Overview of Universal Hashing
Next : details on randomized solution (in 3 parts).
Tim Roughgarden
Universal Hash Functions
Definition : Let H be a set of hash function from U to {0,1,2,..,n-1}
(n = # of buckets )
So :
Tim Roughgarden
Recall
1 if h(y) = h(x)
0 otherwise
Proof (Part II)
Let L = list length in A[h(x)].
So :
Tim Roughgarden
By definition of a universal family
of hash functions
Proof (Part II)
Let L = list length in A[h(x)].
For (so, ) define 1 if h(y) = h(x)
0 otherwise
Note :
So :
Since H is universal