Question: Task 1 [7 marks] Implement a complete version of a hash table using Linear Probing to resolve collisions. Include implementations for the following 4 functions:
nation of values takes too long. In total you should consider 15 possibilities (3 files for each table size). In this task you use the word as both, key and data Task 3 l3 marks] Modify your hash table implementation to now track the number of collisions, the load, as well as the average probe length. For the latter, it is advisable to track the total probe length in an instance variable The average probe length is the total probe length divided by the number of items on the table. Using collisions, probe length and wall time, choose appropriate values of a (in your hash function) and table size. You want to find values that perform well across all three files. For this task use a maximum table size of 400000. You should try at least 1o values, and explain your choice by presenting all data behind d your reasoning recorded in a table Just for fun we'll collect the best performer in each lab class nation of values takes too long. In total you should consider 15 possibilities (3 files for each table size). In this task you use the word as both, key and data Task 3 l3 marks] Modify your hash table implementation to now track the number of collisions, the load, as well as the average probe length. For the latter, it is advisable to track the total probe length in an instance variable The average probe length is the total probe length divided by the number of items on the table. Using collisions, probe length and wall time, choose appropriate values of a (in your hash function) and table size. You want to find values that perform well across all three files. For this task use a maximum table size of 400000. You should try at least 1o values, and explain your choice by presenting all data behind d your reasoning recorded in a table Just for fun we'll collect the best performer in each lab class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
