I am just looking for some startup guidance with a program I am supposed to write.. it goes like this ->
A program which compares these three hashing methods: 1) open addressing with linear probing, 2) open addressing with quadratic probing, and 3) separate chaining. Input will come from in.txt. The first line of the file will contain the hash table size (assume < 100); the remaining lines (except the last) each contain one non-negative integer per line (you may assume no duplicate keys, and that the number of keys is ≤ the table size); the last line of the file will be a negative integer (being used as a sentinel). You should initially read those keys into an array; this is because you will be using these keys three times, one for each hashing method.
First, you are to insert the keys, in order that they were read in, into an initially empty hash table, using linear probing to resolve collisions. Upon completing this, the table should be output to out.txt, along with what the average search time would be, to two decimal places. Then, the same thing should be repeated for quadratic probing and separate chaining, starting with an empty hash table in each case. (Note that the average search time is the same as the average insertion time for linear probing and quadratic probing, but not for separate chaining.)
Here is an example input file: