

































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


































David GallesDepartment of Computer ScienceUniversity of San Francisco
,^ non-contiguous^ array of
How long does a Find take? How long does a Remove take? How long does an Add take?Does this sound like a good idea?
Hash function
one million^ times over.
collision occurs. We cannot avoid collisions, but we can minimizethem by picking a hash function that distributeskeys evenly through the array. Example: Keys are integers^ Keys are in range