18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lecture 7 - elementary data structures<br />

<strong>The</strong> last three digits of the Social Security Number<br />

Listen To Part 7-16<br />

<strong>The</strong> Birthday Paradox<br />

No matter how good our hash function is, we had better be prepared for collisions, because of the birthday<br />

paradox.<br />

<strong>The</strong> probability of there being no collisions after n insertions into an m-element table is<br />

When m = 366, this probability sinks below 1/2 when N = 23 and to almost 0 when .<br />

file:///E|/LEC/LECTUR17/NODE7.HTM (11 of 13) [19/1/2003 1:34:42]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!