To start, create your own set of 10 numbers in an array that are not sorted. Using your array, do the following exercises:
Show how the Mergesort algorithm sorts your array by:
Your demonstration should be similar to slides 19-33 in the Mergesort presentation. You do not have to show the details of the function calls in the stack (unless it helps you), but do explain what is happening at each step to show understanding of the algorithm and receive partial credit if you’re incorrect.
Using your same original array, show how the Quicksort algorithm sorts this array by:
Your demonstration should be similar to slides 35-64 in the Quicksort presentation. Again, you do not have to show all the details of the function calls in the stack in the slides (unless it helps you), but do explain what is happening at each step that you show.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here