🎴 Flashcard Mode
Hash Functions
Card1 / 15
Mastered0
Review0
QuestionClick to flip
What is the primary purpose of a hash function?
AnswerClick to flip back
A
To generate a unique identifier for a given data item
💡 Explanation:
A hash function takes an input data item and generates a unique identifier, known as a hash value or hash code, that represents the data item. This hash value is used to efficiently store and retrieve the data item in a hash table or other data structure.