Question: Suppose we are going to hash numbers into a hash table using open addressing with double hashing. 1 Thus there are two auxiliary hash functions,

 Suppose we are going to hash numbers into a hash table
using open addressing with double hashing. 1 Thus there are two auxiliary

Suppose we are going to hash numbers into a hash table using open addressing with double hashing. 1 Thus there are two auxiliary hash functions, h1(k) and h2(k) (where k is the value of the key to be hashed). The successive locations for probes into a hash table of size n are given by the function h(k,i)=(h1(k)+ih2(k))%n,fori=0,1,2,,n1. Suppose: n=19h1(k)=k2h2(k)=1+(k%18) Hash the first eleven prime numbers into this table, in order. In the table below, show the location into which the each successive number is placed. I have done the first five for you. Your job is to fill in the tables for the last six. See next page. You just need to show the tables, not your work. You only need to fill in the unshaded rows. Here are the first 11 prime numbers: 13,17,19,23,29,31 Hint: I found it easiest to use a spreadsheet to do the calculations. P1=2 P2=3 P3=5 Y4=7 P5=11 P6=13 P7=17

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!