OCR D1 Specimen — Question 3 8 marks

Exam BoardOCR
ModuleD1 (Decision Mathematics 1)
SessionSpecimen
Marks8
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicSorting Algorithms
TypeShuttle Sort Execution
DifficultyEasy -1.2 This is a straightforward algorithmic execution question requiring mechanical application of shuttle sort with no problem-solving or insight. Part (i) is pure procedural recall, and part (ii) asks for a standard definition of quadratic complexity. Both parts are routine textbook exercises well below average A-level difficulty.
Spec7.03k Sorting: quick sort

3
  1. Use the shuttle sort algorithm to sort the list $$\begin{array} { l l l l l } 6 & 3 & 8 & 3 & 2 \end{array}$$ into increasing order. Write down the list that results from each pass through the algorithm.
  2. Shuttle sort is a quadratic order algorithm. Explain briefly what this statement means.

Question 3:
AnswerMarks Guidance
(i)Pass 1: 3 6 8 3 2; Pass 2: 3 6 3 8 2; Pass 3: 3 3 6 2 8; Pass 4: 3 2 3 6 8; (continue until) 2 3 3 6 8 B1 each pass
(ii)The number of comparisons/operations is proportional to \(n^2\) where \(n\) is the number of items; doubling the list size roughly quadruples the time/work B1 (statement), B1 (explanation), B1 (context)
# Question 3:

**(i)** | Pass 1: 3 6 8 3 2; Pass 2: 3 6 3 8 2; Pass 3: 3 3 6 2 8; Pass 4: 3 2 3 6 8; (continue until) 2 3 3 6 8 | B1 each pass | Award marks for each correct pass shown

**(ii)** | The number of comparisons/operations is proportional to $n^2$ where $n$ is the number of items; doubling the list size roughly quadruples the time/work | B1 (statement), B1 (explanation), B1 (context) | Must relate to $n^2$ relationship

---
3 (i) Use the shuttle sort algorithm to sort the list

$$\begin{array} { l l l l l } 
6 & 3 & 8 & 3 & 2
\end{array}$$

into increasing order. Write down the list that results from each pass through the algorithm.\\
(ii) Shuttle sort is a quadratic order algorithm. Explain briefly what this statement means.

\hfill \mbox{\textit{OCR D1  Q3 [8]}}