Podcast
Questions and Answers
Which hashing technique involves calculating the hash code by taking the remainder of the division of the input key by a fixed prime number?
Which hashing technique involves calculating the hash code by taking the remainder of the division of the input key by a fixed prime number?
- Division Hashing (correct)
- Modulo Hashing
- Mid-Square Hashing
- Multiplication Hashing
In multiplication hashing, the input key is multiplied by a constant and then the fractional part is extracted. What is then multiplied by the size of the hash table to determine the slot where the key should be placed?
In multiplication hashing, the input key is multiplied by a constant and then the fractional part is extracted. What is then multiplied by the size of the hash table to determine the slot where the key should be placed?
- The constant
- The input key
- The fractional part (correct)
- The size of the hash table
Which hashing technique involves squaring the input key and extracting the middle digits to serve as the hash code?
Which hashing technique involves squaring the input key and extracting the middle digits to serve as the hash code?
- Mid-Square Hashing (correct)
- Division Hashing
- Multiplication Hashing
- Modulo Hashing
In division hashing, what serves as the hash code?
In division hashing, what serves as the hash code?
Which hashing technique involves multiplying the input key by a constant and extracting the fractional part?
Which hashing technique involves multiplying the input key by a constant and extracting the fractional part?