Another way to resolve collisions in hashing is to use double hashing. We use an initial hashing function h(k) = k mod p where p is prime. We also use a second hashing function g(k) = (k + 1) mod (p – 2). When a collision occurs, we use a probing sequence h(k, i) = (h(k) + i · g(k)) mod p. - 4. Use the double hashing procedure we have described with p= 4969 to assign memory locations to files for em- ployees with social security numbers k1 k2 = 509496993, k3 132489971, 546332190, k4 = 034367980,

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
Another way to resolve collisions in hashing is to use double
hashing. We use an initial hashing function h(k) = k mod p
is prime. We also use a second hashing function
g(k) = (k + 1) mod (p – 2). When a collision occurs, we use
a probing sequence h(k, i) = (h(k) + i · g(k)) mod p.
where
4. Use the double hashing procedure we have described with
= 4969 to assign memory locations to files for em-
132489971,
034367980,
212228844,
= 053708912.
ployees with social security numbers k1
k2 = 509496993, kz = 546332190, k4
k5 = 047900151, k6 = 329938157, k7
kg = 325510778, kg = 353354519, k10
Transcribed Image Text:Another way to resolve collisions in hashing is to use double hashing. We use an initial hashing function h(k) = k mod p is prime. We also use a second hashing function g(k) = (k + 1) mod (p – 2). When a collision occurs, we use a probing sequence h(k, i) = (h(k) + i · g(k)) mod p. where 4. Use the double hashing procedure we have described with = 4969 to assign memory locations to files for em- 132489971, 034367980, 212228844, = 053708912. ployees with social security numbers k1 k2 = 509496993, kz = 546332190, k4 k5 = 047900151, k6 = 329938157, k7 kg = 325510778, kg = 353354519, k10
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Thank you for taking the time to type this solution.

However, I do not understand where the mod 4969 comes from why was that chosen as a prime number?

Solution
Bartleby Expert
SEE SOLUTION
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,