Edexcel D1 2013 Specimen — Question 1 8 marks

Exam BoardEdexcel
ModuleD1 (Decision Mathematics 1)
Year2013
SessionSpecimen
Marks8
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicSorting Algorithms
TypeQuick Sort Execution
DifficultyEasy -1.8 This is a purely procedural question requiring mechanical application of the quick sort algorithm followed by binary search. It involves no problem-solving, mathematical insight, or novel thinking—just following a memorized algorithm step-by-step with alphabetical ordering, which is even simpler than numerical sorting.
Spec7.03c Working with algorithms: trace, interpret, adapt7.03k Sorting: quick sort

1.
Hajra
\(( \mathrm { H } )\)
Vicky
\(( \mathrm { V } )\)
Leisham
\(( \mathrm { L } )\)
Alice
\(( \mathrm { A } )\)
Nicky
\(( \mathrm { N } )\)
June
\(( \mathrm { J } )\)
Sharon
\(( \mathrm { S } )\)
Tom
\(( \mathrm { T } )\)
Paul
\(( \mathrm { P } )\)
The table shows the names of nine people.
  1. Use a quick sort to produce the list of names in ascending alphabetical order. You must make your pivots clear.
  2. Use the binary search algorithm on your list to locate the name Paul.

Question 1: Bubble Sort (Alternative Solutions)
Middle Right
AnswerMarks Guidance
AnswerMarks Guidance
First pass correct (N identified)M1
All seven non-rejected items correctA1
Correct with follow-throughA1ft
List sorted, final answer (J)A1 cso
Middle Left
AnswerMarks Guidance
AnswerMarks Guidance
First pass correct (N identified)M1
(L S) correctA1
(A V) correct follow-throughA1ft
(H) final answerA1 cso
First
AnswerMarks Guidance
AnswerMarks Guidance
First pass correct (H identified)M1
(V) correctA1
(L), (N) correct follow-throughA1ft
(S) final answerA1 cso
# Question 1: Bubble Sort (Alternative Solutions)

## Middle Right
| Answer | Marks | Guidance |
|--------|-------|----------|
| First pass correct (N identified) | M1 | |
| All seven non-rejected items correct | A1 | |
| Correct with follow-through | A1ft | |
| List sorted, final answer (J) | A1 cso | |

## Middle Left
| Answer | Marks | Guidance |
|--------|-------|----------|
| First pass correct (N identified) | M1 | |
| (L S) correct | A1 | |
| (A V) correct follow-through | A1ft | |
| (H) final answer | A1 cso | |

## First
| Answer | Marks | Guidance |
|--------|-------|----------|
| First pass correct (H identified) | M1 | |
| (V) correct | A1 | |
| (L), (N) correct follow-through | A1ft | |
| (S) final answer | A1 cso | |

---
1.

\begin{center}
\begin{tabular}{ | c | c | c | c | c | c | c | c | c | }
\hline
\begin{tabular}{ c }
Hajra \\
$( \mathrm { H } )$ \\
\end{tabular} & \begin{tabular}{ c }
Vicky \\
$( \mathrm { V } )$ \\
\end{tabular} & \begin{tabular}{ c }
Leisham \\
$( \mathrm { L } )$ \\
\end{tabular} & \begin{tabular}{ c }
Alice \\
$( \mathrm { A } )$ \\
\end{tabular} & \begin{tabular}{ c }
Nicky \\
$( \mathrm { N } )$ \\
\end{tabular} & \begin{tabular}{ c }
June \\
$( \mathrm { J } )$ \\
\end{tabular} & \begin{tabular}{ c }
Sharon \\
$( \mathrm { S } )$ \\
\end{tabular} & \begin{tabular}{ c }
Tom \\
$( \mathrm { T } )$ \\
\end{tabular} & \begin{tabular}{ c }
Paul \\
$( \mathrm { P } )$ \\
\end{tabular} \\
\hline
\end{tabular}
\end{center}

The table shows the names of nine people.
\begin{enumerate}[label=(\alph*)]
\item Use a quick sort to produce the list of names in ascending alphabetical order.

You must make your pivots clear.
\item Use the binary search algorithm on your list to locate the name Paul.
\end{enumerate}

\hfill \mbox{\textit{Edexcel D1 2013 Q1 [8]}}