Extendible Hashing 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:
Main features of Extendible Hashing: 在哈希技术中主要的特征如下:
•
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.
•
目录: 目录在指针中存储桶的地址。每个目录被分配一个id ,每次目录扩张时,id可能会发生变化。
•
Buckets: The buckets are used to hash the actual data.
•
桶: 桶被用于哈希真实的数据。
Basic Structure of Extendible Hashing:
可扩展哈希的基本结构
Frequently used terms in Extendible Hashing:
在可扩展哈希中常用术语
•
Directories: These containers store pointers to buckets. Each directory is given a unique id which may change each time when expansion takes place. The hash function returns this directory id which is used to navigate to the appropriate bucket. Number of Directories = 2^Global Depth.
Buckets: They store the hashed keys. Directories point to buckets. A bucket may contain more than one pointers to it if its local depth is less than the global depth.
•
桶: 它们存储哈希键。目录指向桶。如果局部深度小于全局深度时,一个桶可能包含不止一个指针指向它。
•
Global Depth: It is associated with the Directories. They denote the number of bits which are used by the hash function to categorize the keys. Global Depth = Number of bits in directory id.
Local Depth: It is the same as that of Global Depth except for the fact that Local Depth is associated with the buckets and not the directories. Local depth in accordance with the global depth is used to decide the action that to be performed in case an overflow occurs. Local Depth is always less than or equal to the Global Depth.