Question: a. (10 pts) Apply merge sort to the list E, X, A, M, P, L, E in alphabetical order. Draw the corresponding figure. Write down
a. (10 pts) Apply merge sort to the list E, X, A, M, P, L, E in alphabetical order. Draw the corresponding figure. Write down the changes in each step.
b. (10 pts) Apply quick sort to the list 9,7,5,1,3,6,2,8,4 in increasing order. Trace and write down the changes in each step. Do no forget to indicate the pivot that you have selected.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
