Definition
Let the Universal Hashing function
be defined as a family or set of functions
which maps
, where for any
,
and
.
The probability that
which follows from this construction is given by
The implication of such a hashing function is that collisions only happen with the above given probability. Thus yielding an average case performance even if the keys are carefully chosen.
Example
For
and
.
Let the universal hashing function
where
References
Wolfram