SLIDE 1
Hash Tables
1
Hash Tables 1 Hash Table in Primary Storage Main parameter B = - - PowerPoint PPT Presentation
Hash Tables 1 Hash Table in Primary Storage Main parameter B = number of buckets Hash function h maps key to numbers from 0 to B-1 Bucket array indexed from 0 to B-1 Each bucket contains exactly one value Strategy
1
2
3
. . .
1 2 3
4
5
6
7
8
9
10
00 01 10 11
2
2
1
11
12
13
1
1
1
00 01 10 11
1
2
1
2
2
14
1
00 01 10 11
2
2
1
15
00 01 10 11
2
2
1
1
1
2
2
2
16
17
00 01 10 11
2
2
2
2
2
2
1
18
00 01 10 11
2
2
1
1
19
00 01 10 11
2
2
1
2
2
1
20
21
22
23
1 2 1 2 3
24
25
1
26
1
1 2
27
1 2
28
1 2
1 2 3
29
1 2 1 2 3
30
31
32
33