Questions
Questions

COMP10002_2025_SM2 Supplementary or Special Exam: Foundations of Algorithms (COMP10002_2025_SM2)- Requires Respondus LockDown Browser

Single choice

Which of the following statements about hashing is correct:

Options
A.The hash function must generate similar hash values for keys that are near each other
B.The strings being hashed must be composed solely of alphabetic characters
C.The hash function must always make use of a table size that is a prime number
D.The hash function must be designed so that only one key can be mapped to each possible hash value
E.The hash function used must be deterministic, and must always give the same hash value for any given key
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
Question: Which of the following statements about hashing is correct? Options: 1) The hash function must generate similar hash values for keys that are near each other 2) The strings being hashed must be composed solely of alphabetic characters 3) The hash function must always make use of a table size that is a prime number 4) The hash function must be designed so that only one key can be mapped to each possible hash value 5) The hash function used must be deterministic, and must always give the same hash value for any given key Option 1 analysis: - This statement claims that similar keys yield similar hash val......Login to view full explanation

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!