Compression function : We need to ensure the probability of two different keys getting hashed to the same bucket is . We can use:

  • Division: where is usually chosen to be a prime
  • Multiply, Add and Divide: Where is the size of the bucket array, is a prime number greater than , and / are integers chosen at random from the interval with .