Question: This is part 2 and 3 of the program's request: 2. The program should run test cases against each sorting algorithm using arrays of random

This is part 2 and 3 of the program's request:

2. The program should run test cases against each sorting algorithm using arrays of random numbers. The sizes of the arrays are the following: 10, 100, 1000, 10,000 and 100,000.

3. To insure a fair comparison, the same set of random numbers should be used for each sorting algorithm.

I have 3 different sorting methods, but I'm using this:

//Array sizes #define SIZE10 10 #define SIZE100 100 #define SIZE1000 1000 #define SIZE10000 10000 #define SIZE100000 100000

for their sizes. I'll need to create a table to display the comparisons for each, but how can I make loops that fill these up properly?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!