Extendible Hashing Visualization (MSB)

Current Configuration

Hash Function: key % 32
Global Depth: 1
Max Global Depth: 5
Bucket Capacity: 2
Total Buckets: 2
Directory Size: 2

Directory (Global Depth: 1)

0Bucket 0
1Bucket 1

Buckets

Bucket 0Depth: 1
Bucket 1Depth: 1

Interactive Visualization Features

This visualization tool helps you understand extendible hashing through interactive demonstrations:

About Extendible Hashing Algorithm

What is Extendible Hashing?

Extendible hashing is a dynamic hashing technique used in database management systems (DBMS) to efficiently handle large datasets with minimal reorganization. Unlike static hashing, extendible hashing allows the hash table to grow and shrink dynamically as data is inserted or deleted, making it ideal for applications where the data size is unpredictable.

How Does Extendible Hashing Work?

The algorithm uses a directory (or index) that points to buckets where actual data is stored. Each bucket has a local depth, and the directory has a global depth. The hash function converts keys into binary addresses, and the most significant bits (MSB) of these addresses determine which bucket a key belongs to.

When a bucket becomes full (overflow), it splits into two buckets, redistributing entries based on an additional bit from the hash value. If necessary, the directory doubles in size to accommodate the split. This approach minimizes the need for complete reorganization when data grows.

Key Components

Advantages of Extendible Hashing

Use Cases in Database Systems

Extendible hashing is widely used in modern database management systems for indexing and data retrieval. It's particularly effective for:

Designed & Developed with by Amr Mahmoud Supervised by Eng. Abdalrahman Kasseb
© Copyrights reserved by Faculty of Engineering - Cairo University