Draw a hash table given these numbers and hashing function, build each of the hashing options, and decide if it is efficient, and what function or size might be a better match. Explain why it is efficient or what changes you would make for it to be efficient. a. Scenario 1 a. Hashing function: k mod 4 b. Linear Probing c. Array from 0 to 3 d. Values: 19, 7, 12, 11 b. Scenario 2 a. Hashing function: k mod 10 b. Quadratic Probing c. Array from 0 to 9 d. Values: 20 39 23 56 34 29 55 13 c. Scenario 3 a. Hashing function: first three digits of a phone number b. Overflow chaining c. File with base address of 0 and ends at 999 d. Values: 3135552314, 7343455523, 3134445555, 3134441234, 7342346555, e. 5555342232, 4072984555, 2692185552 d. Scenario 4 a. Hashing function: k mod 100 b. Internal Chaining c. Array 0 to 99 d. Values: 314 325 623 2234 425 1234 2132 2361 1245 123 436 742

icon
Related questions
Question
Draw a hash table given these numbers and hashing function, build each of the hashing
options, and decide if it is efficient, and what function or size might be a better match. Explain
why it is efficient or what changes you would make for it to be efficient.
a. Scenario 1
a. Hashing function: k mod 4
b. Linear Probing
c. Array from 0 to 3
d. Values: 19, 7, 12, 11
b. Scenario 2
a. Hashing function: k mod 10
b. Quadratic Probing
c. Array from 0 to 9
d. Values: 20 39 23 56 34 29 55 13
c. Scenario 3
a. Hashing function: first three digits of a phone number
b. Overflow chaining
c. File with base address of 0 and ends at 999
d. Values: 3135552314, 7343455523, 3134445555, 3134441234, 7342346555,
e. 5555342232, 4072984555, 2692185552
d. Scenario 4
a. Hashing function: k mod 100
b. Internal Chaining
c. Array 0 to 99
d. Values: 314 325 623 2234 425 1234 2132 2361 1245 123 436 742
Transcribed Image Text:Draw a hash table given these numbers and hashing function, build each of the hashing options, and decide if it is efficient, and what function or size might be a better match. Explain why it is efficient or what changes you would make for it to be efficient. a. Scenario 1 a. Hashing function: k mod 4 b. Linear Probing c. Array from 0 to 3 d. Values: 19, 7, 12, 11 b. Scenario 2 a. Hashing function: k mod 10 b. Quadratic Probing c. Array from 0 to 9 d. Values: 20 39 23 56 34 29 55 13 c. Scenario 3 a. Hashing function: first three digits of a phone number b. Overflow chaining c. File with base address of 0 and ends at 999 d. Values: 3135552314, 7343455523, 3134445555, 3134441234, 7342346555, e. 5555342232, 4072984555, 2692185552 d. Scenario 4 a. Hashing function: k mod 100 b. Internal Chaining c. Array 0 to 99 d. Values: 314 325 623 2234 425 1234 2132 2361 1245 123 436 742
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer