I’m so confused here. According to wikipedia, the idea of hashing is to distribute the entries (key/value pairs) across an array of buckets . In this case means, the array size is the number of buckets.
But in our website:
In the Bucket strategy, we chain different arrays together to store elements, where each array is called Bucket . The size of the array is set as:
n*m
Here, n is the number of keys it can hold, and m is the number of slots each bucket contains. Each slot holds one value or data item.
(if we count a bucket an array, then n is the number of buckets. then n*m = the number of buckets * the slots of each bucket). I don’t know why n is the number of keys. it doesn’t make any sense.