Linear hashing |
- Number of buckets grow by at most 1
|
|
|
- Both primary and overflow buckets
|
|
- Overflow buckets are chained
|
- Family
of hash functions ![](images/img247.png)
|
|
|
|
- n is initial number of buckets
|
|
doubles the range of ![](images/img250.png)
|
- Load factor decides when to split
|
- Split pointer
decides which bucket to split
|
|
is independent of overflowing bucket
|
|
- At level
, is between 0 and ![](images/img252.png)
|
|
is incremented and if at end, is reset to 0
|
- Records in splitting bucket are rehashed using
![](images/img249.png)
|
|
- Equal chance of being in old and new buckets
|