Dijkstra with directed arcs

A question is this type if and only if the network contains one-way roads (directed arcs) and this affects the application of Dijkstra's algorithm or route finding.

2 questions · Moderate -0.4

Sort by: Default | Easiest first | Hardest first
Edexcel FD1 2019 June Q3
14 marks Moderate -0.5
3. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{162f9d72-84a4-4b1a-93cf-b7eeb7f957ae-04_666_940_173_534} \captionsetup{labelformat=empty} \caption{Figure 2}
\end{figure} The network in Figure 2 shows the direct roads linking five villages, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { D }\) and E .
The number on each arc represents the length, in miles, of the corresponding road.
The roads from A to E and from C to B are one-way, as indicated by the arrows.
  1. Complete the initial distance and route tables for the network provided in the answer book.
    (2)
  2. Perform the first three iterations of Floyd's algorithm. You should show the distance table and the route table after each of the three iterations. After five iterations of Floyd's algorithm the final distance table and partially completed final route table are shown below. \begin{table}[h]
    \captionsetup{labelformat=empty} \caption{Distance table}
    \cline { 2 - 6 } \multicolumn{1}{c|}{}ABCDE
    A-12763
    B15-222118
    C75-47
    D1194-3
    E141273-
    \end{table} \begin{table}[h]
    \captionsetup{labelformat=empty} \caption{Route table}
    \cline { 2 - 6 } \multicolumn{1}{c|}{}ABCDE
    AA
    BAB
    CABC
    DCCCD
    EDDDDE
    \end{table}
    1. Explain how the partially completed final route table can be used to find the shortest route from E to A.
    2. State this route. Mabintou decides to use the distance table to try to find the shortest cycle that passes through each vertex. Starting at D, she applies the nearest neighbour algorithm to the final distance table.
    1. State the cycle obtained using the nearest neighbour algorithm.
    2. State the length of this cycle.
    3. Interpret the cycle in terms of the actual villages visited.
    4. Prove that Mabintou's cycle is not optimal.
Edexcel FD1 Specimen Q4
14 marks Moderate -0.3
4. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{37435cc9-1e38-4c55-bd72-e2a1ec415ba7-05_572_799_228_632} \captionsetup{labelformat=empty} \caption{Figure 3}
\end{figure} The network in Figure 3 shows the roads linking a depot, D, and three collection points \(\mathrm { A } , \mathrm { B }\) and C . The number on each arc represents the length, in miles, of the corresponding road. The road from B to D is a one-way road, as indicated by the arrow.
  1. Explain clearly if Dijkstra's algorithm can be used to find a route from D to A . The initial distance and route tables for the network are given in the answer book.
  2. Use Floyd's algorithm to find a table of least distances. You should show both the distance table and the route table after each iteration.
  3. Explain how the final route table can be used to find the shortest route from D to B . State this route. There are items to collect at \(\mathrm { A } , \mathrm { B }\) and C . A van will leave D to make these collections in any order and then return to D. A minimum route is required. Using the final distance table and the Nearest Neighbour algorithm starting at D,
  4. find a minimum route and state its length. Floyd's algorithm and Dijkstra's algorithm are applied to a network. Each will find the shortest distance between vertices of the network.
  5. Describe how the results of these algorithms differ.