Coalesced hashing, also called coalesced chaining, is a collision resolution strategy for hash tables that blends separate chaining with open addressing. Items that hash to the same address are linked together as in a chained table, but the links run through ordinary buckets of the table itself rather than through separately allocated list nodes. When a collision occurs the new item goes into the first empty bucket, called the collision bucket, and is linked onto the chain. A new item can land on a chain that has a different hash address, so that two chains join, or coalesce, which gives the method its name. An optimisation reserves a cellar, a region of the table used only for items that collide, and the source states that restricting hash addresses to about 0.86 of the table gives near-optimum performance for most load factors. Coalescing is mild compared with the clustering of open addressing, and the search routine used for separate chaining works unchanged. Deletion is awkward and resizing is expensive.
Facts
Time Complexity
Time Complexity (category) Time Complexity (category) Connections
In Field
Source Coalesced hashing (Wikipedia)
Sources
1. GeeksforGeeks: Coalesced hashing (GeeksforGeeks)
GeeksforGeeksOperations paragraph: best case
The best case complexity of all these operations is O(1) and the worst case complexity is O(n)
Operations paragraph: worst case
The best case complexity of all these operations is O(1) and the worst case complexity is O(n)
View the Source Coalesced hashing (Wikipedia)
In Group: Hashing and Membership Filter Algorithms, Lead sentence
is a strategy of collision resolution in a hash table that forms a hybrid of separate chaining and open addressing
In Field: Algorithms and Complexity Theory, Lead sentence [in-field]
is a strategy of collision resolution in a hash table
View the SourceReader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.