Module 6. Dynamic Hashing
Module 6. Dynamic Hashing
Dynamic Hashing
Extendible Hashing
It is a dynamic hashing method wherein directories, and buckets are used to hash
data. It is an aggressively flexible method in which the hash function also
experiences dynamic changes.
Main features of Extendible Hashing: The main features in this hashing technique
are:
Directories: The directories store addresses of the buckets in pointers. An id is
assigned to each directory which may change each time when Directory
Expansion takes place.
Buckets: The buckets are used to hash the actual data.
• Step 8 – Rehashing of Split Bucket Elements: The Elements present in the overflowing bucket
that is split are rehashed w.r.t the new global depth of the directory.
•Step 9 – The element is successfully hashed.
• A Bucket will have more than one pointers pointing to it if its local depth is less than
the global depth.
• When overflow condition occurs in a bucket, all the entries in the bucket are rehashed
with a new local depth.
• The size of a bucket cannot be changed after the data insertion process begins.
• Bucket size is 3