Question: Problem: Write a program to comp sequence fo insertions using linear probing, quadratic probing, and double hashing. ute the number of collisions required in a
Problem: Write a program to comp sequence fo insertions using linear probing, quadratic probing, and double hashing. ute the number of collisions required in a long random 1. Let the table size be 10001 2. Consider 10 random sequences of integers with incremental size of 1000. E.g.: the first random sequence consists of 1000 of integers, the second sequence length is 2000, and so on. The last sequence length is 10000 For each random sequence of integers, insert each integer into the hash table and count the number of collisions required for each probing method. 3. Outputs: Print to screen the tally results for all 10 random sequences with the following format Sequence Size: Collisions using Linear Probing Collisions using Quadratic Probing Collisons using Double Hashing Bonus (5 points) if the following two rows are included in the outputs: # of failures for Quadratic hashing: # of failures for Double hashing: 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 n n12 n13 n14... Size Linear Quadratic n2 n22 n23 n24 Doublen3 n32 n33 n34. # Failures for Quadratic hashing: # Failures for Double hashing: Testing: create your testing data files. Documentation: All documentation standards are in effect. Other Requirements program should be fail-safe Submissions: Define and implement a graph ADT using linked adjency list representation. Your Name your source files as 316p4.cpp and 316p4.h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
