All assignment and files you need down
Due:
If not turned in by 11:15am, lose 10 points and no extra credit will be counted
Monday, May 8, 2017 by 11:00am
If not turned in by 12:00pm, lose 20 points and no extra credit will be counted’
If not turned in by 3:00pm, no credit
Create a function that will generate a list of random numbers. Be sure the numbers are in random
order. The function should accept a number that represents the size of the list and return the list.
Modify the Insertion sort, Selection sort and Merge sort functions to perform benchmark analysis on
each of these functions. You can use some type of counting such as comparisons and/or swaps or you
could use time. These files are located in the I:\kopp\outbox\CS 222 01\Final Project folder.
Run the benchmark analysis on each sorting function for list sizes of 100, 1000, and 10000. Print the size
and the benchmark values (time or counts).
Write an essay discussing your results. Be sure to explain your results completely and thoroughly. In
your conclusion, determine which, if any, of the sorting techniques are better.
Add the following comments to the beginning of the program.
Name:
Your Name
Class and Section: CS 222 01
Assignment:
Final Project
Due Date:
See above
Date Turned in:
Program Description: You write a short description of what the program will do
When you complete the program, do the following.
1. Create a folder with the following name: FinalProject
2. Copy your program to this folder
3. Copy the folder to your folder in the I:\kopp\inbox\CS 222 01 folder
Extra Credit: 10 points
Use the binaryList.txt file located in the folder mentioned above. You will need to read the numbers
into a list. Run a for loop 20 times searching for the 20 numbers located in the binary Look.txt file.
Analyze these searches using comparison.
Use the hashList.txt file located in the folder mentioned above. Using the hash search (mid-square
method), move the numbers from the file to a hash list. Suggested size for the hash list is 1171. Once
the list is created, use the hash function to search for 20 numbers found in the hashLook.txt file.
Analyze these searches using comparison. Write an essay completely explaining the two search
methods.