1.

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 dataMy question is taken from Hash Tables in division Hash Tables of Data Structures & Algorithms IThe question was asked in my homework.

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.



Discussion

No Comment Found

Related InterviewSolutions