

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Professor: Srinivasan; Class: DATA STR ALG GEN PRO; Subject: COMPUTER PROGRAMMING; University: Florida State University; Term: Fall 2005;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Please show steps or give justifications for all your answers, unless we specify otherwise. Each question is worth 10 points.
int hash(string s) { int sum=0, I; for(I=0; I<s.size(); I++) sum += s[I]-‘a’; return sum; }
The probe function is: p(i) = i*i.
1
2
3
4 6
7
5
8
Operations : insert(ee), insert(bb), insert(f), insert(b), search(d), Delete(b), search(d)