Exam-style question
Try this first
Describe how a simple hash table could be used to map student identification numbers to student names. Include the role of the key, the value, the hash function and collisions.
Answer and explanation
Concise answer
The student identification number can be used as the key and the student's name can be used as the value.
Why this is correct
This answer explains the mapping between keys and values, applies a simple hashing process and accurately describes what happens when two keys compute the same hash.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
