Easy -1.2 This is a straightforward algorithmic execution question requiring only mechanical application of the quicksort algorithm with no problem-solving or insight needed. Students simply follow the standard procedure, choose pivots (typically the first element), partition, and repeat—pure recall and routine application, making it easier than average.
2 Use the quicksort algorithm to rearrange the following numbers into ascending order. Indicate clearly the pivots that you use.
$$\begin{array} { l l l l l l l l }
18 & 23 & 12 & 7 & 26 & 19 & 16 & 24
\end{array}$$
2 Use the quicksort algorithm to rearrange the following numbers into ascending order. Indicate clearly the pivots that you use.
$$\begin{array} { l l l l l l l l }
18 & 23 & 12 & 7 & 26 & 19 & 16 & 24
\end{array}$$
\hfill \mbox{\textit{AQA D1 2006 Q2 [5]}}