5.
\begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{6ccce35f-4e62-4b6b-acf6-f9b3e18d4b52-08_657_1066_214_502}
\captionsetup{labelformat=empty}
\caption{Figure 5}
\end{figure}
[The total weight of the network is 423]
Direct roads between nine towns, A, B, C, D, E, F, G, H and J, are represented in Figure 5. The number on each arc represents the length, in miles, of the corresponding road.
The table below shows the shortest distances, in miles, between the nine towns.
\begin{table}[h]
| A | B | C | D | E | F | G | H | J |
| A | - | 34 | 51 | 31 | 79 | 20 | 8 | 55 | 61 |
| B | 34 | - | 17 | 65 | 45 | 54 | 42 | 21 | 27 |
| C | 51 | 17 | - | 82 | 28 | 71 | 59 | 22 | 10 |
| D | 31 | 65 | 82 | - | 87 | 22 | 23 | 86 | 92 |
| E | 79 | 45 | 28 | 87 | - | 65 | 87 | 30 | 18 |
| F | 20 | 54 | 71 | 22 | 65 | - | 28 | 75 | 81 |
| G | 8 | 42 | 59 | 23 | 87 | 28 | - | 63 | 69 |
| H | 55 | 21 | 22 | 86 | 30 | 75 | 63 | - | 12 |
| J | 61 | 27 | 10 | 92 | 18 | 81 | 69 | 12 | - |
\captionsetup{labelformat=empty}
\caption{Table of shortest distances}
\end{table}
A route is needed that minimises the total distance required to traverse each road at least once.
The route must start at F and finish at J .
- By considering the pairings of all relevant nodes, find the roads that would need to be traversed twice.
- State the total length of this route.
- Starting at A, use Prim's algorithm to find the minimum spanning tree for the table of shortest distances. You must state the order in which you select the arcs of your tree.
Pete needs to visit all nine towns, starting and finishing in the same town, and wishes to minimise the total distance he travels.
- Starting at G, use the nearest neighbour algorithm on the table of shortest distances to find an upper bound for the length of Pete's route. Write down the route that gives this upper bound.
- By deleting G and all of its arcs, find a lower bound for the length of Pete's route.
Pete decides to take the route he found in (c).
- Interpret the route in terms of the actual towns visited.