




































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





































4
5
7
Example 1: Suppose that the are integers from 1 to 100 and that there are about 100 records. Create an array A of 100 items and stored the record whose key is equal to i in in A[i].
|K| = |U| |K|: # elements in K |U|: # elements in U
8
Example 2: Suppose that the keys are 9-digit social security numbers (SSN) Although we could use the same idea, it would be very inefficient (i.e., use an array of 1 billion size to store 100 records)
|K| << |U|
11
13
Example 2: numbers (SSN) Suppose that the keys are 9-digit social security
16
17
Column 3:
{0, 1} {0, 1, 2, 3}
k mod 100^ k mod 97
m 97 m 100
19
Suppose k=6, A=0.3, m= (1) k x A = 1. (2) fractional part: (3) m x 0.8 = 32 x 0.8 = 25. (4)