Easy -1.2 This is a straightforward algorithmic execution question requiring mechanical application of the Shell sort procedure with no problem-solving or insight needed. Students simply follow the standard gap sequence (4, 2, 1 for 8 elements) and perform comparisons/swaps at each pass. It's easier than average A-level maths as it tests procedural recall rather than mathematical reasoning, though the multi-step nature prevents it from being trivial.
1 Use a Shell sort to rearrange the following numbers into ascending order, showing the new arrangement after each pass.
\(\begin{array} { l l l l l l l l } 37 & 25 & 16 & 12 & 36 & 24 & 13 & 11 \end{array}\)
(5 marks)
PART REFERENCE REFERENCE
1 Use a Shell sort to rearrange the following numbers into ascending order, showing the new arrangement after each pass.\\
$\begin{array} { l l l l l l l l } 37 & 25 & 16 & 12 & 36 & 24 & 13 & 11 \end{array}$\\
(5 marks)
PART REFERENCE REFERENCE\\
\hfill \mbox{\textit{AQA D1 2012 Q1 [5]}}