Primary clustering
In computer programming, primary clustering is a phenomenon that causes performance degradation in linear-probing hash tables. The phenomenon states that, as elements are added to a linear probing hash table, they have a tendency to cluster together into long runs (i.e., long contiguous regions of the hash table that contain no free slots). If the hash table is at a load factor of 1 - 1/x for some parameter x \ge 2 , then the expected length of the run containing a given element u is \Theta(x^2) . This causes insertions and negative queries to take expected time \Theta(x^2) in a linear-probing hash table. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In computer programming, primary clustering is a phenomenon that causes performance degradation in linear-probing hash tables. The phenomenon states that, as elements are added to a linear probing hash table, they have a tendency to cluster together into long runs (i.e., long contiguous regions of the hash table that contain no free slots). If the hash table is at a load factor of 1 - 1/x for some parameter x \ge 2 , then the expected length of the run containing a given element u is \Theta(x^2) . This causes insertions and negative queries to take expected time \Theta(x^2) in a linear-probing hash table. Another way to understand primary clustering is by examining the standard deviation on the number of items that hash to a given region within the hash table. Consider a sub-region of the hash table of size x^2 . The expected number of items that hash into the region is (1 - 1/x) x^2 = x^2 - x . On the other hand, the standard deviation on the number of such items is \Theta(x) . It follows that, with probability \Omega(1) , the number of items that hash into the region will exceed the size x^2 of the region. Intuitively, this means that regions of size \Theta(x^2) will often overflow, while larger regions typically will not. This intuition is often used as the starting point for formal analyses of primary clustering. ==References==
Cite this
"Primary clustering". 1777470982. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1351698835 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy