Computer scienceAlgorithms and Data StructuresAlgorithmsPrinciples and techniquesHashing

Hash function

What day is it today?

Report a typo

Suppose you are given the following hash function:

  1. It takes as an input an integer nn.
  2. It stores the current day of the month as an integer dd (for example, d=25d = 25).
  3. It returns the integer ndn\cdot d.

Is it a good hash function? If not, what property is missing here?

Select one option from the list
___

Create a free account to access the full topic