Can someone please help me Double Hashing Algorith

Price: $20 USD

Question description

for example in one of the past paper i am practicing, their is this question...

1) a) For a 11-bucket hash table, primary hash function h1 and secondary hash function h2,
show how the six objects Q, W, E, R, T, Y are inserted into an initially empty table
when using double hashing and when the values of the two hash functions are as
shown in the table below.
object Q W E R T Y
h1 8 10 0 8 9 9
h2 5 1 2 3 4 5
For each object show the positions probed before insertion. Show the resulting hash
table (as an array of objects)

The answer for this question is...

Q 8 W 10 E 0 R 8, 0, 3 T 9 Y 9, 3, 8, 2
hash table
0 1 2 3 4 5 6 7 8 9 10 E Y R Q T W

I cant seem to understand the answer and very confused with the double hashing algorithm, please help out.


Tutor Answer

(Top Tutor) Daniel C.
School: Rice University
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors