CS 222 - 01 Final Project
kittenj (Not rated)
(Not rated)
CS 22201
Final Project
100 Points
Name:
In your program: (60 points)
- 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 Selection sort, Bubble sort and Merge sort functions to perform benchmark analysis on each of these functions. You MUST use counting comparisons and counting swaps AND you MUST use time. These files are located in the li\kopploutbox\CS 222 01\Final Project folder. YOU MUST USE THESE SORTING FUNCTIONS FOR THIS PROJECT. If you use any other functions or write a different one, you will receive a 0 for the project.
- Run the benchmark analysis on each sorting function for list sizes of 100, 1000, and 10000. Print the size and the benchmark values (time and counts). Write a function that will store the sorted for the Selection list into a file. The numbers should be stored 15 per line separated with a space. The filename must be sorted Numbers.txt. Only execute this function for list size of 1,000.
- Write an essay discussing your results. (40 points) Be sure to explain your results completely and thoroughly. In your conclusion, determine which, if any, of the sorting techniques are better. You must use a word processor.
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.
- Print out and turn in the essay.
- Create a folder with the following name: FinalProject
- Copy your program and the sorted Numbers.txt file to this folder
- Copy the folder to your folder in the E\kopp\inbox\CS 222 01 folder
Failure to follow steps 1-4 will result in a reduced grade.
7 years ago
CS 222 - 01 Final Project: Algorithm Benchmark Analysis
NOT RATED
Purchase the answer to view it

- CS222FinalProject.docx
- FinalProject.zip