Use a bubble sort to rearrange the following numbers into ascending order, showing the list of numbers after each pass.
$$\begin{array} { l l l l l }
6 & 2 & 3 & 5 & 4
\end{array}$$
Write down the number of comparisons on the first pass.
Use a shuttle sort to rearrange the following numbers into ascending order, showing the list of numbers after each pass.
$$\begin{array} { l l l l l }
6 & 2 & 3 & 5 & 4
\end{array}$$
Write down the number of comparisons on the first pass.