Charles C. answered 02/01/16
Tutor
0
(0)
Effective English, math, coding Tutor who taught thousands of students
I will give you ideas on how to compare merge sort and insertion sort on same data input and using a single program.
1. Find an example of a merge sort and an example of insertion sort from a C textbook
2. Create a function for each sort
3. In your main program read a list of unsorted numbers into an array
4. Pass the elements of this array to each sort function.
5. Display your sorted results from each sort function. You may want to keep track of the associated sort duration.