Question: question 5 please 4. Apply the following sorting algorithms: a. Merge sort to sort the list {20,80,40,25,60,30}. b. Insertion sort to sort the list {4,3,2,10,12,1,5,6}

question 5 please
question 5 please 4. Apply the following sorting algorithms: a. Merge sort

4. Apply the following sorting algorithms: a. Merge sort to sort the list {20,80,40,25,60,30}. b. Insertion sort to sort the list {4,3,2,10,12,1,5,6} 5. Redesign: a. Merge sort algorithm to divide the n-element sequence to be sorted into three (instead of two) subsequences of n/3 elements each. b. Insertion sort to sort the number in descending order (instead of ascending)

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!