7.04c Travelling salesman upper bound: nearest neighbour method

144 questions

Sort by: Default | Easiest first | Hardest first
Edexcel D1 2023 January Q1
7 marks Easy -1.2
1.
ABCDEFG
A-435247595355
B43-5945465247
C5259-51505551
D474551-524955
E59465052-5748
F5352554957-55
G554751554855-
\section*{Question 1 continued}
ABCDEFG
A-435247595355
B43-5945465247
C5259-51505551
D474551-524955
E59465052-5748
F5352554957-55
G554751554855-
Edexcel D1 2024 January Q2
10 marks Moderate -0.8
2. \begin{table}[h]
ABCDEFGH
A-34293528303738
B34-322839403239
C2932-2733393431
D352827-35384136
E28393335-363340
F3040393836-3439
G373234413334-35
H38393136403935-
\captionsetup{labelformat=empty} \caption{Table 1}
\end{table} Table 1 represents a network that shows the travel times, in minutes, between eight towns, A, B, C, D, E, F, G and H.
  1. Use Prim's algorithm, starting at A , to find the minimum spanning tree for this network. You must clearly state the order in which you select the edges of your tree.
  2. State the weight of the minimum spanning tree. \begin{table}[h]
    \cline { 2 - 9 } \multicolumn{1}{c|}{}ABCDEFGH
    J33374135\(x\)402842
    \captionsetup{labelformat=empty} \caption{Table 2}
    \end{table} Table 2 shows the travel times, in minutes, between town J and towns A, B, C, D, E, F, G and H .
    The journey time between towns E and J is \(x\) minutes where \(x > 28\) A salesperson needs to visit all of the nine towns, starting and finishing at J. The salesperson wishes to minimise the total time spent travelling.
  3. Starting at J, use the nearest neighbour algorithm to find an upper bound for the duration of the salesperson's route. Write down the route that gives this upper bound. Using the nearest neighbour algorithm, starting at E, an upper bound of 291 minutes for the salesperson's route was found.
  4. State the best upper bound that can be obtained by using this information and your answer to (c). Give the reason for your answer. Starting by deleting J and all of its arcs, a lower bound of 264 minutes for the duration of the salesperson's route was found.
  5. Determine the value of \(x\). You must make your method and working clear.
Edexcel D1 2015 June Q3
12 marks Moderate -0.8
3. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{6417303d-c42a-4da4-b0fa-fb7718959417-4_591_1365_239_360} \captionsetup{labelformat=empty} \caption{Figure 2}
\end{figure} Figure 2 shows a graph G.
  1. Write down an example of a cycle on G.
    (1)
  2. State, with a reason, whether or not \(\mathrm { P } - \mathrm { Q } - \mathrm { R } - \mathrm { T } - \mathrm { Q } - \mathrm { S }\) is an example of a path on G .
    (2) \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{6417303d-c42a-4da4-b0fa-fb7718959417-4_618_1406_1336_340} \captionsetup{labelformat=empty} \caption{Figure 3}
    \end{figure} The numbers on the \(14 \operatorname { arcs }\) in Figure 3 represent the distances, in km , between eight vertices, \(\mathrm { P } , \mathrm { Q }\), \(\mathrm { R } , \mathrm { S } , \mathrm { T } , \mathrm { U } , \mathrm { V }\) and W , in a network.
  3. Use Prim's algorithm, starting at P , to find the minimum spanning tree for the network. You must clearly state the order in which you select the arcs of your tree.
  4. Use Kruskal's algorithm to find the minimum spanning tree for the network. You should list the arcs in the order in which you consider them. In each case, state whether you are adding the arc to the minimum spanning tree.
  5. Draw the minimum spanning tree using the vertices given in Diagram 1 in the answer book. The weight on arc RU is now increased to a value of \(x\). The minimum spanning tree for the network is still unique and includes the same arcs as those found in (e).
  6. Write down the smallest interval that must contain \(x\).
Edexcel D1 2016 June Q1
11 marks Easy -1.2
1. $$\begin{array} { l l l l l l l l l } 4.2 & 1.8 & 3.1 & 1.3 & 4.0 & 4.1 & 3.7 & 2.3 & 2.7 \end{array}$$
  1. Use the first-fit bin packing algorithm to determine how the numbers listed above can be packed into bins of size 7.8
  2. Determine whether the number of bins used in (a) is optimal. Give a reason for your answer.
  3. The list of numbers is to be sorted into ascending order. Use a quick sort to obtain the sorted list. You should show the result of each pass and identify your pivots clearly. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{049de386-42a9-4f16-8be3-9324382e4988-02_586_1356_906_358} \captionsetup{labelformat=empty} \caption{Figure 1}
    \end{figure}
  4. Use Kruskal's algorithm to find a minimum spanning tree for the network in Figure 1. You must show clearly the order in which you consider the arcs. For each arc, state whether or not you are including it in your minimum spanning tree. A new spanning tree is required which includes the arcs AB and DE , and which has the lowest possible total weight.
  5. Explain why Prim's algorithm could not be used to complete the tree.
Edexcel D1 2019 June Q1
8 marks Moderate -0.3
1.
ABCDEF
A-7356273848
B73-58594334
C5658-463842
D275946-2532
E38433825-21
F4834423221-
The table above shows the least distances, in km, between six cities, A, B, C, D, E and F. Mohsen needs to visit each city, starting and finishing at A , and wishes to minimise the total distance he will travel.
  1. Starting at A, use the nearest neighbour algorithm to obtain an upper bound for the length of Mohsen's route. You must state your route and its length.
  2. Starting by deleting A and all of its arcs, find a lower bound for the length of Mohsen's route.
  3. Use your answers from (a) and (b) to write down the smallest interval that you can be confident contains the optimal length of the route.
Edexcel D1 2019 June Q2
11 marks Moderate -0.5
2. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{aef6a6dd-76ec-47f7-b8c9-449006da29d3-03_892_871_203_596} \captionsetup{labelformat=empty} \caption{Figure 1}
\end{figure} Figure 1 represents a network of roads between ten villages, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { D } , \mathrm { E } , \mathrm { F } , \mathrm { G } , \mathrm { H } , \mathrm { J }\) and K . The number on each edge represents the length, in kilometres, of the corresponding road. The local council needs to find the shortest route from A to J.
  1. Use Dijkstra's algorithm to find the shortest route from A to J. State the route and its length. During the winter, the council needs to ensure that all ten villages are accessible by road even if there is heavy snow. The council wishes to minimise the total length of road it needs to keep clear.
  2. Use Prim's algorithm, starting at A , to find a minimum connector for the five villages \(\mathrm { A } , \mathrm { B }\), C, D and E. You must clearly state the order in which you select the edges of your minimum connector.
  3. Use Kruskal's algorithm to find a minimum connector for the five villages \(\mathrm { F } , \mathrm { G } , \mathrm { H } , \mathrm { J }\) and K . You must clearly show the order in which you consider the edges. For each edge, state whether or not you are including it in your minimum connector.
  4. Calculate the total length of road that the council must keep clear of snow to ensure that all ten villages are accessible.
Edexcel D1 2020 June Q1
7 marks Easy -1.2
  1. The table below shows the distances, in metres, between six vertices, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { D } , \mathrm { E }\) and F , in a network.
ABCDEF
A-1823172819
B18-2011-24
C2320--2513
D1711---22
E28-25---
F19241322--
  1. Draw the weighted network using the vertices given in Diagram 1 in the answer book.
  2. Use Kruskal's algorithm to find a minimum spanning tree for the network. You should list the edges in the order that you consider them and state whether you are adding them to your minimum spanning tree.
  3. Draw the minimum spanning tree on Diagram 2 in the answer book and state its total weight.
Edexcel D1 2020 June Q3
7 marks Standard +0.3
3. The table below shows the least distances, in km, between six towns, A, B, C, D, E and F.
ABCDEF
A-5776597265
B57-67806676
C7667-718380
D598071-7778
E72668377-69
F6576807869-
Mei must visit each town at least once. She will start and finish at A and wishes her route to minimise the total distance she will travel.
  1. Starting with the minimum spanning tree in the answer book, use the shortcut method to find an upper bound below 520 km for Mei's route. You must state the shortcut(s) you use and the length of your upper bound.
  2. Use the nearest neighbour algorithm, starting at A , to find another upper bound for the length of Mei's route.
  3. Starting by deleting E, and all of its arcs, find a lower bound for the length of Mei's route. Make your method clear.
Edexcel D1 2021 June Q4
13 marks Moderate -0.3
4. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{44ddb176-e265-4545-b438-c1b5ffb40852-05_618_1105_237_479} \captionsetup{labelformat=empty} \caption{Figure 3
[0pt] [The total weight of the network is 291]}
\end{figure} Figure 3 models a network of roads. The number on each edge gives the length, in km , of the corresponding road. The vertices, A, B, C, D, E, F and G, represent seven towns. Derek needs to visit each town. He will start and finish at A and wishes to minimise the total distance travelled.
  1. By inspection, complete the two copies of the table of least distances in the answer book.
  2. Starting at A, use the nearest neighbour algorithm to find an upper bound for the length of Derek's route. Write down the route that gives this upper bound.
  3. Interpret the route found in (b) in terms of the towns actually visited.
  4. Starting by deleting A and all of its arcs, find a lower bound for the route length. Clive needs to travel along the roads to check that they are in good repair. He wishes to minimise the total distance travelled and must start at A and finish at G .
  5. By considering the pairings of all relevant nodes, find the length of Clive's route. State the edges that need to be traversed twice. You must make your method and working clear.
Edexcel D1 2022 June Q3
14 marks Easy -1.2
3. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{27296f39-bd03-47ff-9a5e-c2212d0c68ed-04_876_1166_219_452} \captionsetup{labelformat=empty} \caption{Figure 2}
\end{figure} The network in Figure 2 shows the distances, in miles, between ten towns, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { H }\), \(\mathrm { L } , \mathrm { M } , \mathrm { P } , \mathrm { S } , \mathrm { W }\) and Y .
  1. Use Kruskal's algorithm to find a minimum spanning tree for the network. You should list the arcs in the order in which you consider them. In each case, state whether you are adding the arc to your minimum spanning tree.
    (3)
    ABCHLMPSWY
    A-61815542916262974
    B6-2221603510323380
    C1822-17593112441180
    H152117-421429412863
    L54605942-4070286121
    M2935311440-43552161
    P161012297043-422390
    S26324441285542-5548
    W2933112861212355-82
    Y748080632161904882-
    The table shows the shortest distances, in miles, between the ten towns.
  2. Use Prim's algorithm on the table, starting at A, to find the minimum spanning tree for this network. You must clearly state the order in which you select the arcs of your tree.
  3. State the weight of the minimum spanning tree found in (b). Sharon needs to visit all of the towns, starting and finishing in the same town, and wishes to minimise the total distance she travels.
  4. Use your answer to (c) to calculate an initial upper bound for the length of Sharon's route.
  5. Use the nearest neighbour algorithm on the table, starting at W , to find an upper bound for the length of Sharon's route. Write down the route which gives this upper bound. Using the nearest neighbour algorithm, starting at Y , an upper bound of length 212 miles was found.
  6. State the best upper bound that can be obtained by using this information and your answers from (d) and (e). Give the reason for your answer.
  7. By deleting W and all of its arcs, find a lower bound for the length of Sharon's route. Sharon decides to take the route found in (e).
  8. Interpret this route in terms of the actual towns visited.
Edexcel D1 2023 June Q7
12 marks Standard +0.3
7.
ABCDEFGH
A-3837\(x\)37424127
B38-263233383734
C3726-3938393039
D\(x\)3239-37362936
E37333837-323330
F4238393632-3128
G413730293331-33
H27343936302833-
The network represented by the table shows the least distances, in km, between eight museums, A, B, C, D, E, F, G and H. A tourist wants to visit each museum at least once, starting and finishing at A. The tourist wishes to minimise the total distance travelled. The shortest distance between A and D is \(x \mathrm {~km}\) where \(32 \leqslant x \leqslant 35\)
  1. Using Prim's algorithm, starting at A , obtain a minimum spanning tree for the network. You must clearly state the order in which you select the arcs of your tree.
  2. Use your answer to (a) to determine an initial upper bound for the length of the tourist's route.
  3. Starting at A, use the nearest neighbour algorithm to find another upper bound for the length of the tourist's route. Write down the route that gives this upper bound. The nearest neighbour algorithm starting at E gives a route of $$\mathrm { E } - \mathrm { H } - \mathrm { A } - \mathrm { D } - \mathrm { G } - \mathrm { C } - \mathrm { B } - \mathrm { F } - \mathrm { E }$$
  4. State which of these two nearest neighbour routes gives the better upper bound. Give reasons for your answer. Starting by deleting A, and all of its arcs, a lower bound of 235 km for the length of the route is found.
  5. Determine the smallest interval that must contain the optimal length of the tourist's route. You must make your method and working clear.
Edexcel D1 2021 October Q3
15 marks Moderate -0.3
3. The table below represents a complete network that shows the least costs of travelling between eight cities, A, B, C, D, E, F, G and H.
ABCDEFGH
A-36384023393835
B36-353635344138
C3835-3925324040
D403639-37372633
E23352537-422443
F3934323742-4538
G384140262445-40
H35384033433840-
Srinjoy must visit each city at least once. He will start and finish at A and wishes to minimise his total cost.
  1. Use Prim's algorithm, starting at A , to find a minimum spanning tree for this network. You must list the arcs that form the tree in the order in which you select them.
  2. State the weight of the minimum spanning tree.
  3. Use your answer to (b) to help you calculate an initial upper bound for the total cost of Srinjoy's route.
  4. Show that there are two nearest neighbour routes that start from A. You must make the routes and their corresponding costs clear.
  5. State the best upper bound that can be obtained by using your answers to (c) and (d).
  6. Starting by deleting A and all of its arcs, find a lower bound for the total cost of Srinjoy's route. You must make your method and working clear.
  7. Use your results to write down the smallest interval that must contain the optimal cost of Srinjoy's route.
Edexcel D1 2013 Specimen Q2
9 marks Easy -1.2
2. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{5fa867a2-0a3d-4f0b-9f9c-15584f2be5c0-03_719_1161_223_452} \captionsetup{labelformat=empty} \caption{Figure 1}
\end{figure} Figure 1 represents the distances, in metres, between eight vertices, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { D } , \mathrm { E } , \mathrm { F } , \mathrm { G }\) and H , in a network.
  1. Use Kruskal's algorithm to find a minimum spanning tree for the network. You should list the arcs in the order in which you consider them. In each case, state whether you are adding the arc to your minimum spanning tree.
  2. Complete Matrix 1 in your answer book, to represent the network.
  3. Starting at A, use Prim's algorithm to determine a minimum spanning tree. You must clearly state the order in which you considered the vertices and the order in which you included the arcs.
  4. State the weight of the minimum spanning tree.
Edexcel D1 2008 January Q2
10 marks Easy -1.2
2.
  1. \(\begin{array} { l l l l l l l l l l l } 18 & 20 & 11 & 7 & 17 & 15 & 14 & 21 & 23 & 16 & 9 \end{array}\) The list of numbers shown above is to be sorted into ascending order. Apply quick sort to obtain the sorted list. You must make your pivots clear. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{7396d930-0143-4876-b019-a4d73e09b172-3_839_1275_614_395} \captionsetup{labelformat=empty} \caption{Figure 3}
    \end{figure} Figure 3 represents a network of paths in a park. The number on each arc represents the length of the path in metres.
  2. Using your answer to part (a) and Kruskal's algorithm, find a minimum spanning tree for the network in Figure 3. You should list the arcs in the order in which you consider them and state whether you are adding it to your minimum spanning tree.
  3. Find the total weight of the minimum spanning tree.
Edexcel D1 2009 January Q2
8 marks Easy -1.3
2.
\(\mathbf { A }\)\(\mathbf { B }\)\(\mathbf { C }\)\(\mathbf { D }\)\(\mathbf { E }\)\(\mathbf { F }\)
\(\mathbf { A }\)-24--2322
\(\mathbf { B }\)24-18191720
\(\mathbf { C }\)-18-1114-
\(\mathbf { D }\)-1911-13-
\(\mathbf { E }\)23171413-21
\(\mathbf { F }\)2220--21-
The table shows the distances, in metres, between six vertices, \(\mathbf { A } , \mathbf { B } , \mathbf { C } , \mathbf { D } , \mathbf { E }\) and \(\mathbf { F }\), in a network.
  1. Draw the weighted network using the vertices given in Diagram 1 in the answer booklet.
  2. Use Kruskal's algorithm to find a minimum spanning tree. You should list the edges in the order that you consider them and state whether you are adding them to your minimum spanning tree.
  3. Draw your tree on Diagram 2 in the answer booklet and find its total weight.
Edexcel D1 2011 January Q3
10 marks Moderate -0.8
3. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{0360f78d-e18c-4c47-a2ec-ddd705a4175f-4_986_1255_269_402} \captionsetup{labelformat=empty} \caption{Figure 2}
\end{figure}
  1. Use Kruskal's algorithm to find a minimum spanning tree for the network shown in Figure 2. You should list the arcs in the order in which you consider them. In each case, state whether you are adding the arc to your minimum spanning tree.
    (3)
  2. Starting at A, use Prim's algorithm to find a minimum spanning tree for the network in Figure 2. You must clearly state the order in which you include the arcs in your tree.
    (3)
  3. Draw a minimum spanning tree for the network in Figure 2 using the vertices given in Diagram 1 of the answer book. State the weight of the minimum spanning tree.
    (2) A new spanning tree is required which includes the arcs DI and HG, and which has the lowest possible total weight.
  4. Explain which algorithm you would choose to complete the tree, and how the algorithm should be adapted. (You do not need to find the tree.)
Edexcel D1 2012 January Q1
8 marks Moderate -0.8
1. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{e02c4a9a-d2ab-489f-b838-9b4d902c4457-2_782_974_379_539} \captionsetup{labelformat=empty} \caption{Figure 1}
\end{figure} Figure 1 represents the distances, in km, between eight vertices, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { D } , \mathrm { E } , \mathrm { F } , \mathrm { G }\) and H in a network.
  1. Use Kruskal's algorithm to find the minimum spanning tree for the network. You should list the arcs in the order in which you consider them. In each case, state whether you are adding the arc to your minimum spanning tree.
    (3)
  2. Starting at A, use Prim's algorithm to find the minimum spanning tree. You must clearly state the order in which you selected the arcs of your tree.
    (3)
  3. Draw the minimum spanning tree using the vertices given in Diagram 1 in the answer book.
  4. State the weight of the tree.
    (1)
Edexcel D1 2015 June Q5
10 marks Easy -1.2
5. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{ba22b22e-c0d5-438d-821b-88619eacdb5d-6_687_1171_223_447} \captionsetup{labelformat=empty} \caption{Figure 5}
\end{figure} The numbers on the \(17 \operatorname { arcs }\) in the network shown in Figure 5 represent the distances, in km , between nine nodes, A, B, C, D, E, F, G, H and J.
  1. Use Kruskal's algorithm to find a minimum spanning tree for the network. You should list the arcs in the order in which you consider them. In each case, state whether you are adding the arc to your minimum spanning tree.
  2. Starting at G , use Prim's algorithm to find a minimum spanning tree. You must clearly state the order in which you select the arcs of your tree.
  3. Find the weight of the minimum spanning tree. A connected graph V has \(n\) nodes. The sum of the degrees of all the nodes in V is \(m\). The graph T is a minimum spanning tree of V .
    1. Write down, in terms of \(m\), the number of arcs in V .
    2. Write down, in terms of \(n\), the number of \(\operatorname { arcs }\) in T .
    3. Hence, write down an inequality, in terms of \(m\) and \(n\), comparing the number of arcs in T and V.
Edexcel D1 2016 June Q4
12 marks Moderate -0.8
4. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{22ff916a-4ba8-4e0c-9c53-e82b0aff0b98-05_841_1201_226_431} \captionsetup{labelformat=empty} \caption{Figure 3}
\end{figure} Figure 3 represents a network of tram tracks. The number on each edge represents the length, in miles, of the corresponding track. One day, Sarah wishes to travel from A to F. She wishes to minimise the distance she travels.
  1. Use Dijkstra's algorithm to find the shortest path from A to F . State your path and its length. On another day, Sarah wishes to travel from A to F via J.
  2. Find a route of minimal length that goes from A to F via J and state its length.
  3. Use Prim's algorithm, starting at G , to find the minimum spanning tree for the network. You must clearly state the order in which you select the edges of your tree.
  4. State the length, in miles, of the minimum spanning tree.
Edexcel D1 2017 June Q2
7 marks Moderate -0.5
2. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{65fb7699-4301-47d2-995d-713ee33020c8-03_920_1259_262_395} \captionsetup{labelformat=empty} \caption{Figure 3}
\end{figure} Figure 3 represents nine computer terminals, A, B, C, D, E, F, G, H and J, at Pearsonby School. The school wishes to connect them to form a single computer network. The number on each arc represents the cost, in pounds, of connecting the corresponding computer terminals.
  1. Use Prim's algorithm, starting at B , to find the minimum spanning tree for the computer network. You must clearly state the order in which you select the arcs of your tree.
    (3)
  2. State the minimum cost of connecting the nine computer terminals.
    (1) It is discovered that some computer terminals are already connected. There are already direct connections along BD and FJ, as shown in bold in Diagram 1 in the answer book. It is decided to use these connections.
  3. Use Kruskal's algorithm to find the minimum spanning tree that includes arcs BD and FJ. You must list the arcs in the order that you consider them. In each case, state whether or not you are adding the arcs to your spanning tree.
    (3)
    (Total 7 marks)
Edexcel D1 Q3
8 marks Moderate -0.8
3. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{552f3296-ad61-448b-8168-6709fb359fa2-3_780_1353_248_356} \captionsetup{labelformat=empty} \caption{Figure 1}
\end{figure} Figure 1 represents the distance, in metres, between eight data collection points, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { D } , \mathrm { E } , \mathrm { F }\), G and H . The data collection points are to be linked by cables.
  1. Listing the arcs in the order that you select them, find a minimum spanning tree for the network using
    1. Kruskal's algorithm, stating in addition any arcs you reject,
    2. Prim's algorithm, starting from A .
  2. State the minimum amount of cable needed.
  3. Draw your minimum spanning tree using the vertices given in Figure 1 in your answer book.
Edexcel D1 2003 November Q6
11 marks Easy -1.8
6. (a) Define the terms
  1. tree,
  2. spanning tree,
  3. minimum spanning tree.
    (3)
    (b) State one difference between Kruskal's algorithm and Prim's algorithm, to find a minimum spanning tree.
    (1) \begin{figure}[h]
    \captionsetup{labelformat=empty} \caption{Figure 4} \includegraphics[alt={},max width=\textwidth]{75ea31c7-11e7-4dd9-9312-4cf32bba622b-08_894_1529_920_322}
    \end{figure} (c) Use Kruskal's algorithm to find the minimum spanning tree for the network shown in Fig. 4. State the order in which you included the arcs. Draw the minimum spanning tree in Diagram 1 in the answer book and state its length.
    (4) \section*{Figure 5}
    \includegraphics[max width=\textwidth, alt={}]{75ea31c7-11e7-4dd9-9312-4cf32bba622b-09_887_1536_342_258}
    Figure 5 models a car park. Currently there are two pay-stations, one at \(E\) and one at \(N\). These two are linked by a cable as shown. New pay-stations are to be installed at \(B , H , A , F\) and \(C\). The number on each arc represents the distance between the pay-stations in metres. All of the pay-stations need to be connected by cables, either directly or indirectly. The current cable between \(E\) and \(N\) must be included in the final network. The minimum amount of new cable is to be used.
    (d) Using your answer to part (c), or otherwise, determine the minimum amount of new cable needed. Use Diagram 2 to show where these cables should be installed. State the minimum amount of new cable needed.
    (3)
Edexcel FD1 AS 2022 June Q1
9 marks Easy -1.2
  1. 55534345928373452334247
The list of eleven numbers shown above is to be sorted into ascending order.
  1. Carry out a quick sort to produce the sorted list. You should show the result of each pass and identify your pivots clearly.
    (4) \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{c8134d3b-71cb-4b92-ac54-81a4ff8f3011-03_814_1545_614_260} \captionsetup{labelformat=empty} \caption{Figure 1}
    \end{figure}
  2. Use Kruskal's algorithm to find the minimum spanning tree for the network in Figure 1. You should list the arcs in the order in which you consider them. For each arc, state whether or not you are adding it to your minimum spanning tree.
    1. Draw the minimum spanning tree on Diagram 1 in the answer book.
    2. State the total weight of the tree.
Edexcel FD1 2024 June Q2
13 marks Moderate -0.5
2. The table below represents a network of shortest distances, in miles, to travel between nine castles, A, B, C, D, E, F, G, H and J.
ABCDEFGHJ
A-5059265040876359
B50-28617963456448
C5928-335735703645
D266133-2464713733
E50795724-40643031
F4063356440-477071
G874570716447-3467
H63643637307034-33
J5948453331716733-
  1. Use Prim's algorithm, starting at D , to find the minimum spanning tree for this network. You must clearly state the order in which you select the arcs of your tree.
  2. State the weight of the minimum spanning tree found in part (a).
  3. Draw the minimum spanning tree using the vertices given in Diagram 1 in the answer book. A historian needs to visit all of the castles, starting and finishing at the same castle, and wishes to minimise the total distance travelled.
  4. Use your answer to part (b) to calculate an initial upper bound for the length of the historian's route.
    1. Use the nearest neighbour algorithm, starting at D , to find an upper bound for the length of the historian's route.
    2. Write down the route which gives this upper bound. Using the nearest neighbour algorithm, starting at F , an upper bound of length 352 miles was found.
  5. State the best upper bound that can be obtained by using this information and your answers from parts (d) and (e). Give the reason for your answer.
  6. By deleting A and all of its arcs, find a lower bound for the length of the historian's route.
    (2) By deleting J and all of its arcs, a lower bound of length 274 miles was found.
  7. State the best lower bound that can be obtained by using this information and your answer to part (g). Give the reason for your answer.
Edexcel FD1 Specimen Q3
11 marks Standard +0.3
3.
  1. Explain clearly the difference between the classical travelling salesperson problem and the practical travelling salesperson problem.
    ABCDEFG
    A-172416211841
    B17-35253031\(x\)
    C2435-28203532
    D162528-291945
    E21302029-2235
    F1831351922-37
    G41\(x\)32453537-
    The table shows the least distances, in km, by road between seven towns, A, B, C, D, E, F and G . The least distance between B and G is \(x \mathrm {~km}\), where \(x > 25\) Preety needs to visit each town at least once, starting and finishing at A. She wishes to minimise the total distance she travels.
  2. Starting by deleting B and all of its arcs, find a lower bound for Preety's route. Preety found the nearest neighbour routes from each of A and C . Given that the sum of the lengths of these routes is 331 km ,
  3. find \(x\), making your method clear.
  4. Write down the smallest interval that you can be confident contains the optimal length of Preety's route. Give your answer as an inequality.