Question: task 4 java lang 6:03 W08 Lab Sets, Maps, Hashes.docx Task 4. Hash basics. (10 points) Hash a list of employee nameumber combinations. Hashing function:

6:03 W08 Lab Sets, Maps, Hashes.docx Task 4. Hash basics. (10 points) Hash a list of employee nameumber combinations. Hashing function: the last three digits of the employee number Compression function: the value mod 10 (Hint: this is the last digit of the value coming in.) Index into the array: Key and value Hash code: Any index 0 G When complete, please put the values into the array (table on the right) according to the hash index. Inder 0 1 4 9 Rubric: : 4 points D Dashboard Calendar To-do Notifications 6:04 WO8 Lab Sets, Maps, Hashes.docx When complete, please put the values into the array (table on the right) according to the hash index Value Index 0 1 2 3 + 2 8 Rubric: .: 4 points .: 4 points Array values: 2 points Task 5. Hash collisions (10 points) Hash a list of employee nameumber combinations. Hashing function - the first three digits of the employee number Scaling function - the value mod 10 The easiest way to calculate this: it's the last digit of the value coming in Index into the array: Key and value Hush code: Amay index Sch3856134 2235 D Dashboard Calendar To-do Notifications
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
