



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This course covers advanced database management system design principles and techniques. Indexing, Advanced Database Systems, Static Hashing, Extensible Hashing , Pros, Cons, Linear Hashing, Hashing Versus B-trees, Rule of Thumb, Split, Handles Growing Files, No full Reorganization
Typology: Slides
1 / 6
This page cannot be seen from the preview
Don't miss anything!




2
3
What if a bucket is full?
key bucket number
hash function h
bucket 0
bucket 1
bucket i
bucket N -
ki 1 ki 2 ki 3 …
bucket i
h ( k ) = i
With records or record pointers
bucket i overflow
bucket i overflow
Does it make sense to use a hash-based index as a sparse index on a sorted table?
5
i
h ( k ) 0 1 1 0 1 0 1 1
6
Directory Buckets
Local depth
Global depth (always the max of local depths)
11
Insert 0101 Threshold exceeded; grow! 0000 1010
i = 1 Number of bits in use = d log 2 n e n = 2 Number of primary buckets
12
Intuitively, the first bucket with the lowest depth Not necessarily the bucket being inserted into!
Insert 0001
Insert 1100
Threshold exceeded; grow! 0000 1111 0101
i = 2 n = 3
i = 2 n = 4
Insert 1110 Threshold exceeded; grow!
14
i = 3 n = 5
15
Handles growing files No full reorganization