AQA D1 2009 June — Question 2 6 marks

Exam BoardAQA
ModuleD1 (Decision Mathematics 1)
Year2009
SessionJune
Marks6
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicPermutations & Arrangements
TypeSorting and searching algorithms
DifficultyModerate -0.5 This is a standard D1 sorting algorithm question requiring students to apply a bubble sort or quick sort algorithm to a given list and fill in a table showing the steps. It's algorithmic execution rather than problem-solving, making it easier than average A-level questions, but requires careful systematic work to avoid errors.

2
2
} & \multirow{3}{*}{\includegraphics[max width=\textwidth, alt={}]{44bbec2c-32f4-4d28-9dd6-d89387228454-04_699_1486_269_366} \includegraphics[max width=\textwidth, alt={}]{44bbec2c-32f4-4d28-9dd6-d89387228454-04_508_1272_462_366} }
\hline &
\hline &
\hline &
\hline &
\hline &
\hline &
\hline &
\hline &
\hline &
\hline &
\hline &
\hline &
\hline

Question 2:
AnswerMarks Guidance
AnswerMarks Guidance
Pass 1: 1 comparison, 0 swapsB1 \(5,6 \to 5,6\): no change needed
Pass 2: 2 comparisons, 1 swapB1 \(6,3 \to 3,5,6\): shuttle 6 back
Pass 3: 3 comparisons, 0 swapsB1 9 compared, no swaps needed
Pass 4: 3 comparisons, 2 swapsB1 4 shuttles back past 9, 6
Pass 5: 5 comparisons, 0 swapsB1 13 compared, no swaps
Pass 6: 6 comparisons, 6 swapsB1 1 shuttles all the way to front
# Question 2:

| Answer | Marks | Guidance |
|--------|-------|----------|
| Pass 1: 1 comparison, 0 swaps | B1 | $5,6 \to 5,6$: no change needed |
| Pass 2: 2 comparisons, 1 swap | B1 | $6,3 \to 3,5,6$: shuttle 6 back |
| Pass 3: 3 comparisons, 0 swaps | B1 | 9 compared, no swaps needed |
| Pass 4: 3 comparisons, 2 swaps | B1 | 4 shuttles back past 9, 6 |
| Pass 5: 5 comparisons, 0 swaps | B1 | 13 compared, no swaps |
| Pass 6: 6 comparisons, 6 swaps | B1 | 1 shuttles all the way to front |

---
2 \\
2 \\
} & \multirow{3}{*}{\includegraphics[max width=\textwidth, alt={}]{44bbec2c-32f4-4d28-9dd6-d89387228454-04_699_1486_269_366}

\includegraphics[max width=\textwidth, alt={}]{44bbec2c-32f4-4d28-9dd6-d89387228454-04_508_1272_462_366}
} \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline
 &  \\
\hline

\hfill \mbox{\textit{AQA D1 2009 Q2 [6]}}