Podcast
Questions and Answers
What is the method of hashing that uses a selection of digits as the key?
What is the method of hashing that uses a selection of digits as the key?
- Skip Lists
- Division
- Extraction (correct)
- Binary Search
What is the assumption made when extracting 3 digits as the key?
What is the assumption made when extracting 3 digits as the key?
- The majority of keys end in a 0
- The part of the key is least likely to repeat (correct)
- The key is perfectly unique
- The key is perfectly random
What is the purpose of using the modulus operator in hash functions?
What is the purpose of using the modulus operator in hash functions?
- To increase the efficiency of the hash function
- To reduce the size of the hash table
- To ensure the indices are in the desired range (correct)
- To reduce the number of collisions
What happens when the majority of keys end in a 0 in the hash table?
What happens when the majority of keys end in a 0 in the hash table?
What is the advantage of the extraction method of hashing?
What is the advantage of the extraction method of hashing?
What is the disadvantage of the extraction method of hashing?
What is the disadvantage of the extraction method of hashing?
What is the purpose of using the hash function h(K) = K % T?
What is the purpose of using the hash function h(K) = K % T?
What is the range of values returned by the modulus operator in hash functions?
What is the range of values returned by the modulus operator in hash functions?
What is the requirement for the indices generated by the hash function?
What is the requirement for the indices generated by the hash function?
What is the result of using the hash function h(K) = K % 10 when the majority of keys end in a 0?
What is the result of using the hash function h(K) = K % 10 when the majority of keys end in a 0?