OCR FD1 AS 2017 December — Question 4 8 marks

Exam BoardOCR
ModuleFD1 AS (Further Decision 1 AS)
Year2017
SessionDecember
Marks8
TopicTravelling Salesman
TypeCalculate Specific Tour Length
DifficultyModerate -0.3 This is a straightforward application of standard Decision Mathematics algorithms (MST and TSP) with a small network (5 vertices). Parts (i)-(ii) test basic understanding of graph concepts, part (iii) is routine MST application, and part (iv) requires checking only 3! = 6 possible routes through A, B, C. The conceptual difficulty is low and the computational work is minimal, making this slightly easier than an average A-level question.
Spec7.04c Travelling salesman upper bound: nearest neighbour method

4 Tom is planning a day out walking. He wants to start from his sister's house ( S ), then visit three places \(\mathrm { A } , \mathrm { B }\) and C (once each, in any order) and then finish at his own house (T).
  1. Complete the graph in the Printed Answer Booklet showing all possible arcs that could be used to plan Tom's walk. Tom needs to keep the total distance that he walks to a minimum, so he weights his graph.
  2. (a) Why would finding the shortest path from S to T , on Tom's network, not necessarily solve Tom's problem?
    (b) Why would finding a minimum spanning tree, on Tom's network, not necessarily solve Tom's problem? The distance matrix below shows the direct distances, in km , between places.
    SABCT
    n S03254
    nA3022.52
    nB2203.22.5
    n52.53.202
    \cline { 2 - 6 } T422.520
    \cline { 2 - 6 }
    \cline { 2 - 6 }
  3. - Use an appropriate algorithm to find a minimum spanning tree for Tom's network.

Question 4:
AnswerMarks Guidance
42 2.5
4
5 In each round of a card game two players each have four cards. Every card has a coloured number.
• Player A’s cards are red 1, blue 2, red 3 and blue 4.
• Player B’s cards are red 1, red 2, blue 3 and blue 4.
Each player chooses one of their cards. The players then show their choices simultaneously and deduce how
many points they have won or lost as follows:
• If the numbers are the same both players score 0.
• If the numbers are different but are the same colour, the player with the lower value card scores the
product of the numbers on the cards.
• If the numbers are different and are different colours, the player with the higher value card scores
the sum of the numbers on the cards.
• The game is zero-sum.
(i) Complete the pay-off matrix for this game, with player A on rows. [3]
(ii) Determine the play-safe strategy for each player. [2]
(iii) Use dominance to show that player A should not choose red 3. You do not need to identify other rows
or columns that are dominated. [1]
(iv) Determine, with a reason, whether the game is stable or unstable. [1]
6 This list is to be sorted into decreasing order, ending up with 31 in the first position and 4 in the last position.
15 4 12 23 9 14 16 27 31
Initially bubble sort is used.
(i) Record the list at the end of the first, second and third passes. You do not need to show the individual
swaps in each pass. [2]
After the fourth pass the list is:
23 15 16 27 31 14 12 9 4
The sorting is then continued using shuttle sort on this list.
(ii) Record the list at the end of each of the first, second and third passes of shuttle sort. You do not need to
show the individual swaps in each pass. [2]
(iii) How many passes through shuttle sort are needed to complete the sort? Explain your reasoning. [2]
© OCR 2017 Practice paper Y534
5
7 (i) A digraph is represented by the adjacency matrix below.
to
A B C
A 1 1 0
from B 1 0 0
C 0 1 0
(a) For each vertex, write down
• the indegree,
• the outdegree. [2]
(b) Explain how the indegrees and outdegrees show that the digraph is semi-Eulerian. [2]
(ii) A graph is represented by the adjacency matrix below.
D E F
D 2 1 0
E 1 0 2
F 0 2 0
(a) Explain how the numerical entries in the matrix show that this can be drawn as an undirected
graph. [1]
(b) Explain how the adjacency matrix shows that this graph is semi-Eulerian. [2]
(iii) By referring to the vertex degrees, explain why the loop from A to itself is shown as a 1 in the adjacency
matrix in part (i) but the loop from D to itself is shown as a 2 in the adjacency matrix in part (ii). [2]
8 (i) List the 15 partitions of the set {A, B, C, D}. [3]
Amy, Bao, Cal and Dana want to travel by taxi from a meeting to the railway station. They book taxis but
only two taxis turn up. Each taxi must have a minimum of one passenger and can carry a maximum of four
passengers. Dana jumps into one of the taxis.
(ii) Find the number of ways that Amy, Bao and Cal can be split between the two taxis. [1]
Amy does not want to travel in the same taxi as Bao.
(iii) Determine the number of ways that Amy, Bao and Cal can be split between taxis with this additional
restriction. [2]
Six people want to travel by taxi from a hotel to the railway station using taxis. There must be a minimum
of one passenger and a maximum of four passengers in each taxi. The taxis may be regarded as being
indistinguishable.
(iv) Calculate how many ways there are of splitting the six people between taxis. [6]
END OF QUESTION PAPER
© OCR 2017 Practice paper Y534
8
Oxford Cambridge and RSA
Copyright Information
OCR is committed to seeking permission to reproduce all third-party content that it uses in its assessment materials. OCR has attempted to identify and contact all copyright holders
whose work is used in this paper. To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced in the OCR Copyright
Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download from our public website (www.ocr.org.uk) after the live examination series.
If OCR has unwittingly failed to correctly acknowledge or clear any third-party content in this assessment material, OCR will be happy to correct its mistake at the earliest possible
opportunity.
For queries or further information please contact the Copyright Team, First Floor, 9 Hills Road, Cambridge CB2 1GE.
OCR is part of the Cambridge Assessment Group; Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a
department of the University of Cambridge.
© OCR 2017 Practice paper Y534
Question 4:
4 | 2 | 2.5 | 2 | 0
4
5 In each round of a card game two players each have four cards. Every card has a coloured number.
• Player A’s cards are red 1, blue 2, red 3 and blue 4.
• Player B’s cards are red 1, red 2, blue 3 and blue 4.
Each player chooses one of their cards. The players then show their choices simultaneously and deduce how
many points they have won or lost as follows:
• If the numbers are the same both players score 0.
• If the numbers are different but are the same colour, the player with the lower value card scores the
product of the numbers on the cards.
• If the numbers are different and are different colours, the player with the higher value card scores
the sum of the numbers on the cards.
• The game is zero-sum.
(i) Complete the pay-off matrix for this game, with player A on rows. [3]
(ii) Determine the play-safe strategy for each player. [2]
(iii) Use dominance to show that player A should not choose red 3. You do not need to identify other rows
or columns that are dominated. [1]
(iv) Determine, with a reason, whether the game is stable or unstable. [1]
6 This list is to be sorted into decreasing order, ending up with 31 in the first position and 4 in the last position.
15 4 12 23 9 14 16 27 31
Initially bubble sort is used.
(i) Record the list at the end of the first, second and third passes. You do not need to show the individual
swaps in each pass. [2]
After the fourth pass the list is:
23 15 16 27 31 14 12 9 4
The sorting is then continued using shuttle sort on this list.
(ii) Record the list at the end of each of the first, second and third passes of shuttle sort. You do not need to
show the individual swaps in each pass. [2]
(iii) How many passes through shuttle sort are needed to complete the sort? Explain your reasoning. [2]
© OCR 2017 Practice paper Y534
5
7 (i) A digraph is represented by the adjacency matrix below.
to
A B C
A 1 1 0
from B 1 0 0
C 0 1 0
(a) For each vertex, write down
• the indegree,
• the outdegree. [2]
(b) Explain how the indegrees and outdegrees show that the digraph is semi-Eulerian. [2]
(ii) A graph is represented by the adjacency matrix below.
D E F
D 2 1 0
E 1 0 2
F 0 2 0
(a) Explain how the numerical entries in the matrix show that this can be drawn as an undirected
graph. [1]
(b) Explain how the adjacency matrix shows that this graph is semi-Eulerian. [2]
(iii) By referring to the vertex degrees, explain why the loop from A to itself is shown as a 1 in the adjacency
matrix in part (i) but the loop from D to itself is shown as a 2 in the adjacency matrix in part (ii). [2]
8 (i) List the 15 partitions of the set {A, B, C, D}. [3]
Amy, Bao, Cal and Dana want to travel by taxi from a meeting to the railway station. They book taxis but
only two taxis turn up. Each taxi must have a minimum of one passenger and can carry a maximum of four
passengers. Dana jumps into one of the taxis.
(ii) Find the number of ways that Amy, Bao and Cal can be split between the two taxis. [1]
Amy does not want to travel in the same taxi as Bao.
(iii) Determine the number of ways that Amy, Bao and Cal can be split between taxis with this additional
restriction. [2]
Six people want to travel by taxi from a hotel to the railway station using taxis. There must be a minimum
of one passenger and a maximum of four passengers in each taxi. The taxis may be regarded as being
indistinguishable.
(iv) Calculate how many ways there are of splitting the six people between taxis. [6]
END OF QUESTION PAPER
© OCR 2017 Practice paper Y534
8
Oxford Cambridge and RSA
Copyright Information
OCR is committed to seeking permission to reproduce all third-party content that it uses in its assessment materials. OCR has attempted to identify and contact all copyright holders
whose work is used in this paper. To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced in the OCR Copyright
Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download from our public website (www.ocr.org.uk) after the live examination series.
If OCR has unwittingly failed to correctly acknowledge or clear any third-party content in this assessment material, OCR will be happy to correct its mistake at the earliest possible
opportunity.
For queries or further information please contact the Copyright Team, First Floor, 9 Hills Road, Cambridge CB2 1GE.
OCR is part of the Cambridge Assessment Group; Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a
department of the University of Cambridge.
© OCR 2017 Practice paper Y534
4 Tom is planning a day out walking. He wants to start from his sister's house ( S ), then visit three places $\mathrm { A } , \mathrm { B }$ and C (once each, in any order) and then finish at his own house (T).
\begin{enumerate}[label=(\roman*)]
\item Complete the graph in the Printed Answer Booklet showing all possible arcs that could be used to plan Tom's walk.

Tom needs to keep the total distance that he walks to a minimum, so he weights his graph.
\item (a) Why would finding the shortest path from S to T , on Tom's network, not necessarily solve Tom's problem?\\
(b) Why would finding a minimum spanning tree, on Tom's network, not necessarily solve Tom's problem?

The distance matrix below shows the direct distances, in km , between places.

\begin{center}
\begin{tabular}{ l | c | c | c | c | c | }
 & \multicolumn{1}{c}{S} & \multicolumn{1}{c}{A} & \multicolumn{1}{c}{B} & \multicolumn{1}{c}{C} & \multicolumn{1}{c}{T} \\
n S & 0 & 3 & 2 & 5 & 4 \\
nA & 3 & 0 & 2 & 2.5 & 2 \\
nB & 2 & 2 & 0 & 3.2 & 2.5 \\
n & 5 & 2.5 & 3.2 & 0 & 2 \\
\cline { 2 - 6 }
T & 4 & 2 & 2.5 & 2 & 0 \\
\cline { 2 - 6 }
 &  &  &  &  &  \\
\cline { 2 - 6 }
\end{tabular}
\end{center}
\item - Use an appropriate algorithm to find a minimum spanning tree for Tom's network.

\begin{itemize}
  \item Give the total weight of the minimum spanning tree.
\item - Find the route that solves Tom's problem.
  \item Give the minimum distance that Tom must walk.
\end{itemize}
\end{enumerate}

\hfill \mbox{\textit{OCR FD1 AS 2017 Q4 [8]}}