+1 vote
in Data Structures & Algorithms I by (88.2k points)
What is the use of a hash function?

(a) to calculate and return the index of corresponding data

(b) to store data

(c) to erase data

(d) to change data

My question is taken from Hash Tables in division Hash Tables of Data Structures & Algorithms I

The question was asked in my homework.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
The correct answer is (a) to calculate and return the index of corresponding data

The explanation is: Hash function calculates and returns the index for corresponding data. This data is then mapped in a hash table.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...