Complete problems 1–4 using 30 random numbers.
Problem 1.
Identify the comparisons and the exchanges made to sort the following array using the selection exchange sort technique.
Number |
23 |
45 |
13 |
5 |
56 |
74 |
10 |
30 |
65 |
40 |
Problem 2.
Identify the comparisons and the exchanges made to sort the array found in problem 1 using the bubble sort technique.
Problem 3.
Identify the comparisons and the exchanges made to sort the array found in problem 1 using the shell sort technique.
Problem 4.
Which method is the most efficient? Why?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.