1. Repeat the previous two exercises for the array XXXXXXXXXX. 2. How would you change the selection sort algorithm to sort in descending order? 3. Consider the array of integers XXXXXXXXXX 80 40....


1. Repeat the previous two exercises for the array 80 90 70 85 60 40.


2. How would you change the selection sort algorithm to sort in descending order?


3. Consider the array of integers 50 20 60 80 40. Trace the steps of a selection sort as it sorts this array into descending order. Write the array contents every time two integers are swapped.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here