Answer :
Final answer:
Explanation of sorting numbers using Selection Sort in descending order with step-by-step examples.
Explanation:
To sort the numbers in descending order using Selection Sort, we would start by selecting the largest element and placing it in the last position. Then, we would repeat this process for the remaining elements to sort the list.
- Step 1: 128 1 2 3 4 5 242 202 150 172 134
- Step 2: 128 242 2 3 4 5 1 202 150 172 134
- Step 3: 128 242 202 3 4 5 1 2 150 172 134
- Step 4: 128 242 202 172 4 5 1 2 3 150 134
- Step 5: 128 242 202 172 150 5 1 2 3 4 134
- Step 6: 128 242 202 172 150 134 1 2 3 4 5