Question: Let k = 147, k = 169, k3 = 580, k4 = 216, k5= 974, k6 = 124. Suppose HT is of size 13

Let k = 147, k = 169, k3 = 580, k4 =  

Let k = 147, k = 169, k3 = 580, k4 = 216, k5= 974, k6 = 124. Suppose HT is of size 13 indexed 0,1,2,...,12. Define the function h: {k, k2, k3, k4, k5, k6} {0,1,2,...,12 } by h(k) = k %13. Now h(k)=h(147): = 147 % 13 = 4. So the data of the student with ID 147 is stored in HT[4]. We construct the following table that shows the array position where each student's data is stored. h(ID) (h(ID) + 1) % 13 ID 147 169 580 216 974 124 4 0 8 8 12 7 9 (h(ID) +2) % 13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solutions Array representat... View full answer

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 Programming Questions!