OCR D1 2016 June — Question 5 12 marks

Exam BoardOCR
ModuleD1 (Decision Mathematics 1)
Year2016
SessionJune
Marks12
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicShortest Path
TypeDijkstra with route via intermediate vertex
DifficultyStandard +0.3 This is a standard application of Dijkstra's algorithm followed by routine extensions. Part (i) is textbook Dijkstra, part (ii) requires simple comparison of two paths via K or L, and part (iii) is standard route inspection algorithm. All are algorithmic procedures with minimal problem-solving insight required, making this slightly easier than average.
Spec7.04a Shortest path: Dijkstra's algorithm

5 The network below represents a single-track railway system. The vertices represent stations, the arcs represent railway tracks and the weights show distances in km. The total length of the arcs shown is 60 km . \includegraphics[max width=\textwidth, alt={}, center]{d783915d-5950-4a97-b6a0-70959214e218-5_442_1152_429_459}
  1. Apply Dijkstra's algorithm to the network, starting at \(G\), to find the shortest distance (in km ) from \(G\) to \(N\) and write down the route of this shortest path. Greg wants to travel from the station represented by vertex \(G\) to the station represented by vertex \(N\). He especially wants to include the track \(K L\) (in either direction) in his journey.
  2. Show how to use your working from part (i) to find the shortest journey that Greg can make that fulfils his requirements. Write down his route. Percy Li needs to check each track to see if any maintenance is required. He wants to start and end at the station represented by vertex \(G\) and travel in one continuous route that passes along each track at least once. The direction of travel along the tracks does not matter.
  3. Apply the route inspection algorithm, showing your working, to find the minimum distance that Percy will need to travel. Write down those arcs that Percy will need to repeat. If he travels this minimum distance, how many times will Percy travel through the station represented by vertex \(L\) ?

Question 5:
(i)
AnswerMarks Guidance
Dijkstra's algorithm applied systematically from GM1 Correct method
Working values updated correctly at each vertexA1
Final labels: correct shortest distances assignedA1
Shortest distance = 17 kmA1
Route: G – H – K – L – NA1
(ii)
AnswerMarks Guidance
Need to include arc KL; from part (i) working, find shortest path G→K + KL + L→N or G→L + LK + K→NM1 Using Dijkstra results
Route: G – H – K – L – N already includes KL, distance = 17 kmA1
(iii)
AnswerMarks
Identify odd-order verticesM1
Odd vertices: find which vertices have odd degree from the networkA1
Find minimum weight pairing of odd verticesM1
Arcs to repeat identified correctlyA1
Minimum distance = \(60 +\) repeated arcs total; state how many times L is passed throughA1
# Question 5:

**(i)**
| Dijkstra's algorithm applied systematically from G | M1 | Correct method |
| Working values updated correctly at each vertex | A1 | |
| Final labels: correct shortest distances assigned | A1 | |
| Shortest distance = **17 km** | A1 | |
| Route: **G – H – K – L – N** | A1 | |

**(ii)**
| Need to include arc KL; from part (i) working, find shortest path G→K + KL + L→N or G→L + LK + K→N | M1 | Using Dijkstra results |
| Route: **G – H – K – L – N** already includes KL, distance = 17 km | A1 | |

**(iii)**
| Identify odd-order vertices | M1 | |
| Odd vertices: find which vertices have odd degree from the network | A1 | |
| Find minimum weight pairing of odd vertices | M1 | |
| Arcs to repeat identified correctly | A1 | |
| Minimum distance = $60 +$ repeated arcs total; state how many times L is passed through | A1 | |

---
5 The network below represents a single-track railway system. The vertices represent stations, the arcs represent railway tracks and the weights show distances in km.

The total length of the arcs shown is 60 km .\\
\includegraphics[max width=\textwidth, alt={}, center]{d783915d-5950-4a97-b6a0-70959214e218-5_442_1152_429_459}\\
\begin{enumerate}[label=(\roman*)]
\item Apply Dijkstra's algorithm to the network, starting at $G$, to find the shortest distance (in km ) from $G$ to $N$ and write down the route of this shortest path.

Greg wants to travel from the station represented by vertex $G$ to the station represented by vertex $N$. He especially wants to include the track $K L$ (in either direction) in his journey.
\item Show how to use your working from part (i) to find the shortest journey that Greg can make that fulfils his requirements. Write down his route.

Percy Li needs to check each track to see if any maintenance is required. He wants to start and end at the station represented by vertex $G$ and travel in one continuous route that passes along each track at least once. The direction of travel along the tracks does not matter.
\item Apply the route inspection algorithm, showing your working, to find the minimum distance that Percy will need to travel. Write down those arcs that Percy will need to repeat. If he travels this minimum distance, how many times will Percy travel through the station represented by vertex $L$ ?
\end{enumerate}

\hfill \mbox{\textit{OCR D1 2016 Q5 [12]}}