| Exam Board | AQA |
| Module | D1 (Decision Mathematics 1) |
| Year | 2006 |
| Session | January |
| Topic | Sorting Algorithms |
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}$$