Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Start with empty array size n.
- On each trial, we set a value to a slot in a array (whose size is n).
- If the randomly chosen slot has a value already, it is collision.
- t = number of trial to get collision.
- E[t]?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement