public final class HashCollisionsEstimator extends Object
Extrapolation of estimates works very well for large hash tables. For instance assume c is the number of collisions when inserting x entries into y sized hash table. Then the number of collisions for inserting x*scale entries into y*scale sized hash table is approximately c*scale (see TestHashCollisionsEstimator#hashEstimatesShouldApproximateSimulations).
It is not possible to deduce closed collisions formula for hash tables with linear conflict resolution strategy. This is because one cannot assume uniform data distribution when inserting new value.
| Modifier and Type | Method and Description |
|---|---|
static double |
estimateNumberOfHashCollisions(int numberOfValues,
int hashSize) |
Copyright © 2012–2019. All rights reserved.