C++ Data Structure Homework Part A: Separate Chaining A hashtable of size 7 uses
ID: 3836733 • Letter: C
Question
C++ Data Structure Homework
Part A: Separate Chaining A hashtable of size 7 uses separate chaining to resolve collisions. A polynomial hash function where a = 33 is used. Sketch the table's contents after the following words have been added in the exact order shown: find, edge, body, race, plan, beat, they You may find it useful to create a list of lowercase letters and their ASCII numeric value. The letter a's value is 97 and z's value is 122. Part B: Linear Probing: A hashtable of size 7 uses linear probing to resolve collisions. Using Part A's polynomial hash function and sequence of words, sketch the table's contents after the words have been added.