Edexcel FD1 2022 June — Question 3

Exam BoardEdexcel
ModuleFD1 (Further Decision 1)
Year2022
SessionJune
TopicShortest Path

3. The initial distance matrix (Table 1) shows the lengths, in metres, of the corridors connecting six classrooms, A, B, C, D, E and F, in a school. For safety reasons, some of the corridors are one-way only. \begin{table}[h]
ABCDEF
A-1232242911
B12-178\(\infty\)\(\infty\)
C3217-412\(\infty\)
D24\(\infty\)4-\(\infty\)13
E\(\infty\)\(\infty\)1218-12
F11\(\infty\)\(\infty\)1312-
\captionsetup{labelformat=empty} \caption{Table 1}
\end{table}
  1. By adding the arcs from vertex A, along with their weights, complete the drawing of this network on Diagram 1 in the answer book. Floyd's algorithm is to be used to find the complete network of shortest distances between the six classrooms. The distance matrix after two iterations of Floyd's algorithm is shown in Table 2. \begin{table}[h]
    ABCDEF
    A-1229202911
    B12-1784123
    C2917-41240
    D24364-5313
    E\(\infty\)\(\infty\)1218-12
    F1123401312-
    \captionsetup{labelformat=empty} \caption{Table 2}
    \end{table}
  2. Perform the next two iterations of Floyd's algorithm that follow from Table 2. You should show the distance matrix after each iteration. The final distance matrix after completion of Floyd's algorithm is shown in Table 3.
    ABCDEF
    A-1224202311
    B12-1282421
    C2817-41217
    D24214-1613
    E23291216-12
    F1123171312-
    \section*{Table 3} Yinka must visit each classroom. He will start and finish at E and wishes to minimise the total distance travelled.
    1. Use the nearest neighbour algorithm, starting at E, to find two Hamiltonian cycles in the completed network of shortest distances.
    2. Find the length of each of the two cycles.
    3. State, with a reason, which of the two cycles provides the better upper bound for the length of Yinka's route.