Question: a. Write a program (C++ or Java) that compares the performance of the following sorting algorithms: Merge sort Quick sort. b. Test the algorithms using
a. Write a program (C++ or Java) that compares the performance of the following sorting algorithms: Merge sort Quick sort. b. Test the algorithms using arrays filled with random numbers. c. Output should be a table that compares between the number of operations that each algorithm takes for different values of n where n is the size of the array.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
