D1-3 Algorithms on graphs II — revision question pack

2 specification points · notes, questions, answers and worked methods

Checked against Edexcel 9FM0 section D1-3. Review basis: the qualification registry sourced from the Pearson Edexcel Level 3 Advanced GCE in Further Mathematics (9FM0) specification; registry verification recorded 17 July 2026.

How this checking works

D1-3.1 · Algorithm for finding the shortest route around a network, travelling along every edge at least once and ending at the start vertex (the Route Inspection Algorithm).

Explanation

  • The route inspection, or Chinese postman, problem asks for the shortest closed route that uses every arc of a network at least once. If every vertex has even order the network is Eulerian and the answer is simply the total weight of the network.
  • Otherwise the odd vertices must be paired up and the shortest path between each pair repeated, because repeating a path raises the order of its two endpoints by one and leaves every internal vertex even.
  • With four odd vertices there are exactly three pairings to test; with six there are fifteen, which is why the specification limits questions to at most four odd vertices unless extra information restricts the pairings.
  • Work out the shortest path for each pair, total each pairing, choose the smallest total, and add it to the weight of the network.
  • If the route may start and finish at different vertices, leave the two odd vertices with the largest shortest path between them unpaired and repeat the best pairing of the remaining two.

Worked example

A network of total weight 6060 has odd vertices PP, QQ, RR, SS with shortest paths PQ=8PQ=8, PR=13PR=13, PS=10PS=10, QR=9QR=9, QS=15QS=15, RS=6RS=6. Find the length of the shortest closed route covering every arc.

  1. 1.The three pairings are PQ+RSPQ+RS, PR+QSPR+QS and PS+QRPS+QR.
  2. 2.PQ+RS=8+6=14PQ+RS=8+6=14.
  3. 3.PR+QS=13+15=28PR+QS=13+15=28.
  4. 4.PS+QR=10+9=19PS+QR=10+9=19.
  5. 5.The smallest repeat is 1414, so the route length is 60+14=7460+14=74.

Answer: The shortest closed route has length 7474, repeating the shortest paths PQPQ and RSRS.

Common mistakes

  • Don't fall into the trap of pairing the odd vertices using a single direct arc when a shorter indirect path exists.
  • Don't fall into the trap of adding the repeats to the number of arcs rather than to the total weight of the network.
  • Don't fall into the trap of testing only some of the three pairings and assuming the first small total is best.

Exam tip

List all three pairings in full even when one looks obviously best; the marks are for the complete comparison, not just for the final total.

Tier 1 · Easy

  1. 1.

    A connected network has total weight 8484 and every vertex has even order. State the length of the shortest closed route that travels along every arc at least once, and justify your answer.

    (3)

    (Total for Question 1 is 3 marks)

  2. 2.

    A network has vertices AA to FF and arcs AB=8AB=8, AC=5AC=5, AD=9AD=9, BC=6BC=6, BE=7BE=7, CD=4CD=4, CE=11CE=11, DE=12DE=12, DF=10DF=10, EF=3EF=3. Identify the odd vertices and find the length of the shortest closed route that uses every arc at least once, starting and finishing at AA.

    (5)

    (Total for Question 2 is 5 marks)

Tier 2 · Standard

  1. 1.

    A network has vertices AA to FF and arcs AB=7AB=7, AC=9AC=9, AF=12AF=12, BC=5BC=5, BD=8BD=8, CD=6CD=6, CE=10CE=10, DE=4DE=4, DF=14DF=14, EF=11EF=11. Find the odd vertices, the total weight, and the length of the shortest closed route covering every arc.

    (7)

    (Total for Question 1 is 7 marks)

  2. 2.

    Explain why the arcs repeated in a route inspection problem must form paths joining odd vertices in pairs, and state how many pairings must be tested when a network has 44 odd vertices and when it has 66.

    (5)

    (Total for Question 2 is 5 marks)

  3. 3.

    A network has vertices AA to GG and arcs AB=6AB=6, AC=11AC=11, AG=9AG=9, BC=4BC=4, BD=13BD=13, CD=7CD=7, CE=8CE=8, DE=5DE=5, DF=10DF=10, EF=3EF=3, EG=15EG=15, FG=12FG=12. Identify the odd vertices and find the length of the shortest closed route covering every arc.

    (7)

    (Total for Question 3 is 7 marks)

Tier 3 · Hard

  1. 1.

    For the network with vertices AA to FF and arcs AB=7AB=7, AC=9AC=9, AF=12AF=12, BC=5BC=5, BD=8BD=8, CD=6CD=6, CE=10CE=10, DE=4DE=4, DF=14DF=14, EF=11EF=11, a route must travel along every arc at least once but may start and finish at different vertices. Determine the shortest possible length and the start and finish vertices.

    (8)

    (Total for Question 1 is 8 marks)

  2. 2.

    A network of total weight 148148 has exactly four odd vertices PP, QQ, RR, SS. The shortest paths between them are PQ=17PQ=17, PR=xPR=x, PS=21PS=21, QR=19QR=19, QS=26QS=26 and RS=14RS=14, where x>0x>0. A student claims that the shortest closed route covering every arc has length 184184. Determine whether any value of xx makes the claim true, and find the shortest closed route length in terms of xx.

    (7)

    (Total for Question 2 is 7 marks)

  3. 3.

    A gritting lorry must drive along every road of a network of total length 103103 kilometres and return to its depot. The network has vertices AA to GG, the odd vertices are AA, BB, FF and GG, and the shortest paths between them are AB=6AB=6, AF=21AF=21, AG=9AG=9, BF=15BF=15, BG=15BG=15 and FG=12FG=12. The council will pay to build one new road, of length 44 kilometres, joining AA directly to FF. Determine whether the new road shortens the gritting route.

    (8)

    (Total for Question 3 is 8 marks)

  4. 4.

    A network has six odd vertices. Explain why 1515 pairings would normally have to be tested, and describe precisely what extra information an examiner must supply so that the problem can be set at this level.

    (6)

    (Total for Question 4 is 6 marks)

  5. 5.

    In the network with vertices AA to FF and arcs AB=8AB=8, AC=5AC=5, AD=9AD=9, BC=6BC=6, BE=7BE=7, CD=4CD=4, CE=11CE=11, DE=12DE=12, DF=10DF=10, EF=3EF=3, the weight of arc ABAB is changed to kk, where k>0k>0. The odd vertices remain AA and BB. Find, in terms of kk, the length of the shortest closed route covering every arc, distinguishing the cases that arise.

    (8)

    (Total for Question 5 is 8 marks)

D1-3.2 · The practical and classical Travelling Salesman problems. Determination of upper and lower bounds using minimum spanning tree methods. The nearest neighbour algorithm.

Explanation

  • The travelling salesman problem asks for a tour of minimum length that visits every vertex and returns to the start. In the classical problem each vertex is visited exactly once; in the practical problem a vertex may be revisited.
  • The classical problem is set on a complete network satisfying the triangle inequality, that is, the length of any arc is at most the sum of the lengths of the other two in its triangle. Converting the network into a complete network of shortest distances turns the practical problem into a classical one.
  • Since the problem cannot be solved exactly at this level, the answer is trapped between bounds. The nearest neighbour algorithm gives an upper bound: from the start vertex repeatedly go to the nearest unvisited vertex, then return to the start.
  • Doubling the weight of the minimum spanning tree also gives an upper bound, which short cuts can improve. A lower bound comes from deleting one vertex, finding the residual minimum spanning tree on the remaining vertices, and adding the two shortest arcs at the deleted vertex;
  • repeating this for every vertex and taking the largest result gives the best lower bound. When an upper bound equals a lower bound, that common value is the length of the optimal tour.

Worked example

A complete network on AA, BB, CC, DD has AB=6AB=6, AC=10AC=10, AD=9AD=9, BC=7BC=7, BD=12BD=12, CD=5CD=5. Find the nearest neighbour tour from AA and the lower bound obtained by deleting AA.

  1. 1.From AA the nearest vertex is BB at 66; from BB the nearest unvisited is CC at 77; from CC the only one left is DD at 55; then DD back to AA at 99.
  2. 2.The tour is ABCDAABCDA of length 6+7+5+9=276+7+5+9=27.
  3. 3.Deleting AA leaves BB, CC, DD with arcs BC=7BC=7, BD=12BD=12, CD=5CD=5; the residual minimum spanning tree is CD=5CD=5 and BC=7BC=7, of weight 1212.
  4. 4.The two shortest arcs at AA are AB=6AB=6 and AD=9AD=9.
  5. 5.The lower bound is 12+6+9=2712+6+9=27.

Answer: The upper bound and the lower bound are both 2727, so the optimal tour has length exactly 2727.

Common mistakes

  • Don't fall into the trap of adding the two shortest arcs of the whole network instead of the two shortest at the deleted vertex.
  • Don't fall into the trap of including the deleted vertex when building the residual minimum spanning tree.
  • Don't fall into the trap of quoting the smallest lower bound rather than the largest as the best one.

Exam tip

Always state which vertex you deleted; a lower bound is only worth marks when the examiner can see the residual tree it came from.

Tier 1 · Easy

  1. 1.

    Explain the difference between the classical and the practical travelling salesman problems, and state how the practical problem is converted into a classical one.

    (3)

    (Total for Question 1 is 3 marks)

  2. 2.

    A complete network on AA, BB, CC, DD, EE has AB=14AB=14, AC=20AC=20, AD=23AD=23, AE=12AE=12, BC=9BC=9, BD=18BD=18, BE=25BE=25, CD=11CD=11, CE=17CE=17, DE=21DE=21. Apply the nearest neighbour algorithm starting at BB and state the upper bound it gives.

    (4)

    (Total for Question 2 is 4 marks)

Tier 2 · Standard

  1. 1.

    For the complete network on AA to EE with AB=14AB=14, AC=20AC=20, AD=23AD=23, AE=12AE=12, BC=9BC=9, BD=18BD=18, BE=25BE=25, CD=11CD=11, CE=17CE=17, DE=21DE=21, apply the nearest neighbour algorithm starting at AA and comment on the quality of the upper bound it produces.

    (5)

    (Total for Question 1 is 5 marks)

  2. 2.

    For the complete network on AA to EE with AB=14AB=14, AC=20AC=20, AD=23AD=23, AE=12AE=12, BC=9BC=9, BD=18BD=18, BE=25BE=25, CD=11CD=11, CE=17CE=17, DE=21DE=21, find the lower bound obtained by deleting vertex CC.

    (5)

    (Total for Question 2 is 5 marks)

  3. 3.

    A network has vertices AA to EE and arcs AB=9AB=9, AC=15AC=15, BC=7BC=7, BD=12BD=12, CD=6CD=6, CE=14CE=14, DE=8DE=8, with no other direct connections. Construct the complete network of shortest distances between the five vertices.

    (6)

    (Total for Question 3 is 6 marks)

Tier 3 · Hard

  1. 1.

    For the complete network on AA to EE with AB=14AB=14, AC=20AC=20, AD=23AD=23, AE=12AE=12, BC=9BC=9, BD=18BD=18, BE=25BE=25, CD=11CD=11, CE=17CE=17, DE=21DE=21, calculate the lower bound obtained by deleting each of AA, CC and DD in turn, state the best lower bound, and combine it with the nearest neighbour tour from BB to trap the optimal tour length.

    (9)

    (Total for Question 1 is 9 marks)

  2. 2.

    For the complete network on AA to EE with AB=14AB=14, AC=20AC=20, AD=23AD=23, AE=12AE=12, BC=9BC=9, BD=18BD=18, BE=25BE=25, CD=11CD=11, CE=17CE=17, DE=21DE=21, find the minimum spanning tree of the whole network and the upper bound obtained by doubling it. Compare that bound with the nearest neighbour tour from AA and comment.

    (8)

    (Total for Question 2 is 8 marks)

  3. 3.

    Explain why deleting a vertex and adding the two shortest arcs at it always produces a valid lower bound for the classical travelling salesman problem, and explain why different deleted vertices can give different bounds.

    (7)

    (Total for Question 3 is 7 marks)

  4. 4.

    A network has vertices AA to EE and arcs AB=9AB=9, AC=15AC=15, BC=7BC=7, BD=12BD=12, CD=6CD=6, CE=14CE=14, DE=8DE=8, with no other direct connections. Using the complete network of shortest distances, apply the nearest neighbour algorithm from CC and find the lower bound obtained by deleting AA. State what the two results tell you.

    (9)

    (Total for Question 4 is 9 marks)

  5. 5.

    In a travelling salesman problem the best lower bound found is 6464 and the best upper bound found is 6767. Explain exactly what can and cannot be concluded about the optimal tour, and state what would have to happen for the optimal length to be determined by bounds alone.

    (6)

    (Total for Question 5 is 6 marks)

Answer key

Answers begin on a new printed page so the question pack can be completed without the solutions alongside it.

D1-3.1 · Algorithm for finding the shortest route around a network, travelling along every edge at least once and ending at the start vertex (the Route Inspection Algorithm).

Tier 1 · Easy

Mark scheme for D1-3.1 Tier 1 · Easy
QuestionSchemeMarks
1
  • Length =84=84
  • Every vertex has even order, so the network is Eulerian
  • An Eulerian network has a closed trail using every arc exactly once, so nothing needs repeating
3
(3 marks)3
Notes
A closed route covering every arc exists without repetition precisely when the network is connected and every vertex has even order. Here that condition holds, so the shortest such route is a single Eulerian circuit whose length is the total weight of the network, 8484.
2
  • Orders: AA is 33, BB is 33, CC is 44, DD is 44, EE is 44, FF is 22
  • The odd vertices are AA and BB
  • Total weight =8+5+9+6+7+4+11+12+10+3=75=8+5+9+6+7+4+11+12+10+3=75
  • The shortest path from AA to BB is the arc AB=8AB=8
  • Route length =75+8=83=75+8=83
5
(5 marks)5
Notes
Counting arcs at each vertex gives orders 3,3,4,4,4,23, 3, 4, 4, 4, 2, so only AA and BB are odd. With exactly two odd vertices there is only one pairing, and the shortest path between them must be repeated. The direct arc AB=8AB=8 beats AA to CC to BB at 5+6=115+6=11 and every other route, so 88 is repeated. The total weight is 7575, giving a route of length 8383.

Tier 2 · Standard

Mark scheme for D1-3.1 Tier 2 · Standard
QuestionSchemeMarks
1
  • Orders: AA is 33, BB is 33, CC is 44, DD is 44, EE is 33, FF is 33
  • The odd vertices are AA, BB, EE and FF
  • Total weight =7+9+12+5+8+6+10+4+14+11=86=7+9+12+5+8+6+10+4+14+11=86
  • Pairing AB+EF=7+11=18AB+EF=7+11=18
  • Pairing AF+BE=12+12=24AF+BE=12+12=24
  • Pairing AE+BF=19+19=38AE+BF=19+19=38
  • The smallest repeat is 1818, so the route length is 86+18=10486+18=104
7
(7 marks)7
Notes
The orders are A=3A=3, B=3B=3, C=4C=4, D=4D=4, E=3E=3, F=3F=3, so four vertices are odd and three pairings must be tested. The shortest paths are AB=7AB=7 direct; EF=11EF=11 direct; AF=12AF=12 direct; BE=8+4=12BE=8+4=12 through DD; AE=7+8+4=19AE=7+8+4=19 through BB and DD; and BF=7+12=19BF=7+12=19 through AA. The pairing totals are 1818, 2424 and 3838, so the arcs on the shortest ABAB and EFEF paths are repeated, adding 1818 to the total weight of 8686.
2
  • A closed route that repeats a set of arcs traverses the network as if those arcs were doubled
  • The route exists only when every vertex has even order in the doubled network
  • Repeating a path raises the order of its two endpoints by 11 and each internal vertex by 22
  • So the repeated arcs must form paths whose endpoints are exactly the odd vertices, taken in pairs
  • With 44 odd vertices there are 33 pairings
  • With 66 odd vertices there are 1515 pairings
5
(5 marks)5
Notes
Doubling an arc adds one to the order of each endpoint, so repeating a whole path changes the parity only at its two ends. To make every order even, the repeated arcs must therefore decompose into paths that pair off the odd vertices and nothing else. The number of ways to split 2m2m objects into pairs is 1×3×5××(2m1)1\times3\times5\times\cdots\times(2m-1), giving 1×3=31\times3=3 pairings for four odd vertices and 1×3×5=151\times3\times5=15 for six.
3
  • Orders: AA is 33, BB is 33, CC is 44, DD is 44, EE is 44, FF is 33, GG is 33
  • The odd vertices are AA, BB, FF and GG
  • Total weight =103=103
  • Pairing AB+FG=6+12=18AB+FG=6+12=18
  • Pairing AG+BF=9+15=24AG+BF=9+15=24
  • Pairing AF+BG=21+15=36AF+BG=21+15=36
  • The smallest repeat is 1818, so the route length is 103+18=121103+18=121
7
(7 marks)7
Notes
The orders are 3,3,4,4,4,3,33, 3, 4, 4, 4, 3, 3, so AA, BB, FF, GG are odd. The arcs total 6+11+9+4+13+7+8+5+10+3+15+12=1036+11+9+4+13+7+8+5+10+3+15+12=103. The required shortest paths are AB=6AB=6; FG=12FG=12; AG=9AG=9; BF=4+8+3=15BF=4+8+3=15 through CC and EE; AF=9+12=21AF=9+12=21 through GG, which is tied by 6+4+8+3=216+4+8+3=21 through BB, CC and EE, so 2121; and BG=6+9=15BG=6+9=15 through AA. The pairing totals are 1818, 2424 and 3636, so 1818 is repeated on top of 103103.

Tier 3 · Hard

Mark scheme for D1-3.1 Tier 3 · Hard
QuestionSchemeMarks
1
  • The odd vertices are AA, BB, EE, FF and the total weight is 8686
  • The start and finish must be two of the odd vertices, and the other two must be paired and repeated
  • Start and finish AA, BB: repeat EF=11EF=11, length 9797
  • Start and finish AA, EE: repeat BF=19BF=19, length 105105
  • Start and finish AA, FF: repeat BE=12BE=12, length 9898
  • Start and finish BB, EE: repeat AF=12AF=12, length 9898
  • Start and finish BB, FF: repeat AE=19AE=19, length 105105
  • Start and finish EE, FF: repeat AB=7AB=7, length 9393
  • The shortest is 9393, starting at EE and finishing at FF, or the reverse
8
(8 marks)8
Notes
An open route covering every arc exists when exactly two vertices have odd order, and those two are the start and finish. Two of the four odd vertices may therefore be left unpaired, and the shortest paths pairing the remaining two must be repeated. The six shortest paths are AB=7AB=7, AE=19AE=19, AF=12AF=12, BE=12BE=12, BF=19BF=19 and EF=11EF=11. Leaving EE and FF as the endpoints requires only AB=7AB=7 to be repeated, which is the smallest of the six values, so the route length is 86+7=9386+7=93 and no other choice of endpoints does better.
2
  • The repeat total is 184148=36184-148=36
  • Pairing PQ+RS=17+14=31PQ+RS=17+14=31
  • Pairing PS+QR=21+19=40PS+QR=21+19=40
  • Pairing PR+QS=x+26PR+QS=x+26
  • The repeat is the smallest of 3131, 4040 and x+26x+26, which is at most 3131 for every x>0x>0
  • So the route length is at most 148+31=179148+31=179, and never 184184
  • No value of xx makes the claim true
  • For x5x\geqslant5 the shortest closed route has length 179179
  • For 0<x<50<x<5 the shortest closed route has length 174+x174+x
7
(7 marks)7
Notes
The claim requires a repeat total of 184148=36184-148=36, and the route length is the network weight plus the smallest of the three pairing totals. Two of those totals are fixed: PQ+RS=17+14=31PQ+RS=17+14=31 and PS+QR=21+19=40PS+QR=21+19=40. Since 31<3631<36, the minimum of the three is at most 3131 whatever xx is, so the route can never be as long as 184184 and the claim fails for every xx. The third total, PR+QS=x+26PR+QS=x+26, beats 3131 exactly when x<5x<5, so the shortest route is 148+(x+26)=174+x148+(x+26)=174+x for 0<x<50<x<5 and 148+31=179148+31=179 for x5x\geqslant5.
3
  • Without the new road the best pairing is AB+FG=6+12=18AB+FG=6+12=18, giving 103+18=121103+18=121 kilometres
  • The new road makes the network weight 103+4=107103+4=107 kilometres
  • The new road makes the orders of AA and FF even, so the odd vertices become BB and GG only
  • The shortest path from BB to GG is now min(15,6+4+12)=min(15,22)\min(15, 6+4+12)=\min(15, 22), so BABA then AGAG still gives 6+9=156+9=15
  • Repeat BG=15BG=15, giving 107+15=122107+15=122 kilometres
  • The route is 11 kilometre longer, so the new road does not shorten it
8
(8 marks)8
Notes
As it stands the lorry repeats the shortest paths ABAB and FGFG, a total of 1818, for a route of 121121 kilometres. Building AFAF adds 44 to the network that must be covered and changes the parity of AA and FF, leaving only BB and GG odd. The single pairing then required is BB to GG, whose shortest path is BABA followed by AGAG, of length 1515; going BB to AA to FF to GG costs 6+4+12=226+4+12=22 and is longer. The new route is 107+15=122107+15=122 kilometres, which exceeds 121121, so the council's road makes the gritting round one kilometre longer even though it shortens the direct trip from AA to FF.
4
  • The first odd vertex can be paired with any of the other 55
  • The next unpaired vertex can be paired with any of the remaining 33
  • The last two must pair together
  • The number of pairings is 5×3×1=155\times3\times1=15
  • The specification limits inspection to networks with at most four odd vertices
  • For six odd vertices the examiner must restrict which pairings are allowed, for example by naming vertices that must be the route's endpoints or arcs that may not be repeated
6
(6 marks)6
Notes
Counting perfect pairings of 2m2m objects gives the double factorial (2m1)!!(2m-1)!!, which is 5×3×1=155\times3\times1=15 when m=3m=3. Testing fifteen pairings by inspection is beyond what the specification asks, since it states that the network will contain at most four odd nodes. When more odd nodes appear, additional information must cut the list down: typically the route is allowed to start and finish at two named odd vertices, which removes them from the pairing, or a subset of arcs is declared unavailable for repetition.
5
  • Total weight =67+k=67+k
  • The route repeats the shortest path from AA to BB
  • Direct route ABAB has length kk
  • The best indirect route is AA to CC to BB, of length 5+6=115+6=11
  • Shortest path =min(k,11)=\min(k, 11)
  • For 0<k110<k\leqslant11 the route length is 67+k+k=67+2k67+k+k=67+2k
  • For k>11k>11 the route length is 67+k+11=78+k67+k+11=78+k
8
(8 marks)8
Notes
The arcs other than ABAB total 5+9+6+7+4+11+12+10+3=675+9+6+7+4+11+12+10+3=67, so the network weight is 67+k67+k. Only AA and BB are odd, so the shortest AA to BB path is repeated. The candidates are the arc ABAB itself, of length kk, and the path ACBACB, of length 1111; every other route is longer, since AA to DD to CC to BB costs 9+4+6=199+4+6=19. The repeat is therefore min(k,11)\min(k, 11), giving 67+2k67+2k while k11k\leqslant11 and 78+k78+k once k>11k>11, with the two expressions agreeing at k=11k=11.

D1-3.2 · The practical and classical Travelling Salesman problems. Determination of upper and lower bounds using minimum spanning tree methods. The nearest neighbour algorithm.

Tier 1 · Easy

Mark scheme for D1-3.2 Tier 1 · Easy
QuestionSchemeMarks
1
  • In the classical problem each vertex is visited exactly once
  • In the practical problem a vertex may be visited more than once
  • The practical problem is converted by replacing the network with the complete network of shortest distances between every pair of vertices
3
(3 marks)3
Notes
The classical problem asks for a Hamiltonian cycle of least weight, so no vertex may be revisited; the practical problem allows a tour to pass back through a vertex, which is what a real delivery round often needs. Replacing each pair of vertices by the shortest path between them produces a complete network in which any classical tour corresponds to a practical tour of the same length, so the two problems agree on the converted network.
2
  • From BB the nearest is CC at 99
  • From CC the nearest unvisited is DD at 1111
  • From DD the nearest unvisited is EE at 2121
  • From EE the only one left is AA at 1212, then AA back to BB at 1414
  • Tour BCDEABBCDEAB of length 9+11+21+12+14=679+11+21+12+14=67
  • Upper bound =67=67
4
(4 marks)4
Notes
Starting at BB, the arcs available are BA=14BA=14, BC=9BC=9, BD=18BD=18, BE=25BE=25, so CC is chosen. From CC the unvisited options are CA=20CA=20, CD=11CD=11, CE=17CE=17, so DD is chosen. From DD the unvisited options are DA=23DA=23 and DE=21DE=21, so EE is chosen; then AA is forced, and the tour closes with AB=14AB=14. Any actual tour is a candidate solution, so its length 6767 is an upper bound for the optimal tour.

Tier 2 · Standard

Mark scheme for D1-3.2 Tier 2 · Standard
QuestionSchemeMarks
1
  • From AA the nearest is EE at 1212
  • From EE the nearest unvisited is CC at 1717
  • From CC the nearest unvisited is BB at 99
  • From BB the only one left is DD at 1818, then DD back to AA at 2323
  • Tour AECBDAAECBDA of length 12+17+9+18+23=7912+17+9+18+23=79
  • The bound is poor, because the greedy choices leave the two longest arcs BDBD and DADA to the end
5
(5 marks)5
Notes
Nearest neighbour from AA takes AE=12AE=12, then EC=17EC=17 since EB=25EB=25 and ED=21ED=21 are longer, then CB=9CB=9, then the forced BD=18BD=18 and the forced return DA=23DA=23. The total is 7979. The algorithm never looks ahead, so cheap early arcs can strand a vertex whose remaining connections are expensive; here DD is left until last and both of its used arcs are long, which is why 7979 is a much weaker bound than a tour found from another start vertex.
2
  • Deleting CC leaves AA, BB, DD, EE with arcs AB=14AB=14, AD=23AD=23, AE=12AE=12, BD=18BD=18, BE=25BE=25, DE=21DE=21
  • Residual minimum spanning tree: AE=12AE=12, AB=14AB=14, BD=18BD=18
  • Residual weight =44=44
  • The two shortest arcs at CC are BC=9BC=9 and CD=11CD=11
  • Lower bound =44+9+11=64=44+9+11=64
5
(5 marks)5
Notes
Removing CC leaves a complete network on four vertices. Kruskal's algorithm on it takes AE=12AE=12, then AB=14AB=14, then BD=18BD=18, rejecting DE=21DE=21 and the rest as they would close cycles or are longer, giving a residual tree of weight 4444. The two shortest arcs meeting CC are BC=9BC=9 and CD=11CD=11. Any tour enters and leaves CC once, using two arcs at CC costing at least 9+119+11, and the rest of the tour is a spanning path of the remaining vertices, which is at least as heavy as their minimum spanning tree. The bound is therefore 44+9+11=6444+9+11=64.
3
  • AB=9AB=9, AC=15AC=15, AD=21AD=21, AE=29AE=29
  • BC=7BC=7, BD=12BD=12, BE=20BE=20
  • CD=6CD=6, CE=14CE=14
  • DE=8DE=8
  • ADAD uses AA to CC to DD or AA to BB to DD, both of length 2121
  • AEAE uses AA to CC to EE or AA to CC to DD to EE, both of length 2929
  • BEBE uses BB to DD to EE, of length 12+8=2012+8=20
6
(6 marks)6
Notes
The direct arcs are already shortest for ABAB, BCBC, BDBD, CDCD, CECE and DEDE, and AC=15AC=15 beats AA to BB to CC at 9+7=169+7=16. For the missing pairs, AA to DD costs 15+6=2115+6=21 through CC and also 9+12=219+12=21 through BB; AA to EE costs 15+14=2915+14=29 through CC and 21+8=2921+8=29 through CC and DD; and BB to EE costs 12+8=2012+8=20 through DD, beating 7+14=217+14=21 through CC. Collecting these gives the complete network of shortest distances.

Tier 3 · Hard

Mark scheme for D1-3.2 Tier 3 · Hard
QuestionSchemeMarks
1
  • Deleting AA: residual tree BC=9BC=9, CD=11CD=11, CE=17CE=17, weight 3737; two shortest at AA are 1212 and 1414; bound =63=63
  • Deleting CC: residual tree AE=12AE=12, AB=14AB=14, BD=18BD=18, weight 4444; two shortest at CC are 99 and 1111; bound =64=64
  • Deleting DD: residual tree BC=9BC=9, AE=12AE=12, AB=14AB=14, weight 3535; two shortest at DD are 1111 and 1818; bound =64=64
  • The best lower bound is 6464
  • The nearest neighbour tour from BB is BCDEABBCDEAB of length 6767
  • 64T6764\leqslant T\leqslant67, where TT is the optimal tour length
9
(9 marks)9
Notes
For each deletion, run Kruskal on the four remaining vertices and add the two cheapest arcs at the deleted vertex. Deleting AA leaves BB, CC, DD, EE with tree BC=9BC=9, CD=11CD=11, CE=17CE=17 of weight 3737, and AE=12AE=12, AB=14AB=14 are the two shortest at AA, giving 6363. Deleting CC gives the tree AE=12AE=12, AB=14AB=14, BD=18BD=18 of weight 4444 and the arcs BC=9BC=9, CD=11CD=11, giving 6464. Deleting DD gives the tree BC=9BC=9, AE=12AE=12, AB=14AB=14 of weight 3535 and the arcs CD=11CD=11, BD=18BD=18, giving 6464. Every one of these is a valid lower bound, so the largest, 6464, is the best. The nearest neighbour tour from BB is a genuine tour of length 6767, so the optimal length lies between 6464 and 6767 inclusive.
2
  • Minimum spanning tree: BC=9BC=9, CD=11CD=11, AE=12AE=12, AB=14AB=14
  • Weight =46=46
  • Upper bound by doubling =2×46=92=2\times46=92
  • Nearest neighbour tour from AA is AECBDAAECBDA of length 7979
  • The nearest neighbour bound of 7979 is better, because it is smaller
  • A smaller upper bound is more useful, since it narrows the interval containing the optimal tour
8
(8 marks)8
Notes
Kruskal on the whole network takes BC=9BC=9, CD=11CD=11, AE=12AE=12 and AB=14AB=14, rejecting CE=17CE=17 and BD=18BD=18 as they would close cycles, for a tree of weight 4646. Walking out and back along every arc of the tree gives a closed walk of length 9292 that visits every vertex, so 9292 is an upper bound. The nearest neighbour tour from AA has length 7979. Both are valid, but an upper bound is only as good as it is small, so 7979 is the one to quote; the doubling bound is usually weak until short cuts are used to skip repeated vertices.
3
  • Any tour visits the deleted vertex XX exactly once, arriving on one arc and leaving on another
  • Those two arcs cost at least the sum of the two shortest arcs at XX
  • Removing XX and its two arcs from the tour leaves a path through every other vertex
  • A path through every other vertex is a spanning tree of them, so it weighs at least the residual minimum spanning tree
  • Adding the two parts gives a quantity that no tour can fall below, so it is a lower bound
  • The bound is only attained when the residual tree happens to be a path and both cheapest arcs at XX are usable
  • Different choices of XX relax different parts of the problem, so the bounds differ and the largest is the most useful
7
(7 marks)7
Notes
Split any tour at the deleted vertex XX. The tour uses exactly two arcs at XX, whose total is at least the sum of the two smallest weights at XX, and the remainder of the tour is a Hamiltonian path on the other vertices, which is a particular spanning tree of them and therefore weighs at least the residual minimum spanning tree. Adding these two lower estimates gives a number that every tour exceeds or equals. The estimate is loose whenever the residual minimum spanning tree branches, since a genuine tour needs a path, so the amount of slack depends on which vertex was deleted; taking the maximum over all deletions therefore gives the strongest bound available by this method.
4
  • Shortest distances: AB=9AB=9, AC=15AC=15, AD=21AD=21, AE=29AE=29, BC=7BC=7, BD=12BD=12, BE=20BE=20, CD=6CD=6, CE=14CE=14, DE=8DE=8
  • From CC the nearest is DD at 66, then EE at 88, then BB at 2020, then AA at 99, then AA back to CC at 1515
  • Nearest neighbour tour CDEBACCDEBAC of length 6+8+20+9+15=586+8+20+9+15=58
  • Deleting AA leaves BB, CC, DD, EE; residual minimum spanning tree CD=6CD=6, BC=7BC=7, DE=8DE=8, weight 2121
  • The two shortest arcs at AA are AB=9AB=9 and AC=15AC=15
  • Lower bound =21+9+15=45=21+9+15=45
  • The optimal practical tour length TT satisfies 45T5845\leqslant T\leqslant58
9
(9 marks)9
Notes
The missing distances are AD=21AD=21 through CC or BB, AE=29AE=29 through CC, and BE=20BE=20 through DD. Nearest neighbour from CC takes CD=6CD=6, then DE=8DE=8, then EB=20EB=20 since EA=29EA=29 is longer, then the forced BA=9BA=9 and the closing AC=15AC=15, giving 5858. Deleting AA leaves the complete network on BB, CC, DD, EE, whose minimum spanning tree by Kruskal is CD=6CD=6, BC=7BC=7, DE=8DE=8 of weight 2121, and the two shortest arcs at AA are 99 and 1515, so the bound is 4545. The optimal tour therefore lies between 4545 and 5858; the two do not meet, so this pair of calculations does not identify the optimum.
5
  • The optimal tour length TT satisfies 64T6764\leqslant T\leqslant67
  • The upper bound 6767 comes from an actual tour, so a tour of length 6767 is known to exist
  • The lower bound 6464 need not be achievable, since it comes from a relaxed problem
  • It cannot be concluded that the optimum is 6464, nor that any particular tour is optimal
  • The possible values of TT are 6464, 6565, 6666 and 6767 if all arc weights are integers
  • The optimum is settled only when an upper bound and a lower bound coincide
6
(6 marks)6
Notes
An upper bound is the length of a tour that has actually been constructed, so it is attainable; a lower bound comes from a relaxation in which the tour condition has been weakened, so it may be strictly below every real tour. Together they confine the optimum to the interval [64,67][64, 67], and with integer weights that leaves four candidate values. Nothing in the pair of numbers identifies which, so the only way to conclude a value from bounds alone is to find a tour whose length equals a valid lower bound, at which point both bounds are tight and that tour is optimal.