1 Tom has some packages that he needs to sort into order of decreasing weight. The weights, in kg , given on the packages are as follows.
$$\begin{array} { l l l l l l l l l }
3 & 6 & 2 & 6 & 5 & 7 & 1 & 4 & 9
\end{array}$$
Use shuttle sort to put the weights into decreasing order (from largest to smallest). Show the result at the end of each pass through the algorithm and write down the number of comparisons and the number of swaps used in each pass. Write down the total number of passes, the total number of comparisons and the total number of swaps used.