Sail E0 Webinar
Question
What is a hash function?
Options:
A .  A function has allocated memory to keys
B .  A function that computes the location of the key in the array
C .  A function that creates an array
D .  None of the mentioned
Answer: Option B


In a hash table, there are fewer array positions than the keys, so the position of the key in the array has to be computed, this is done using the hash function.



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers