All topic tests topics

D1: Algorithms on graphs IIEdexcel International A Level Maths: Topic test

20 questions, 54 marks

Edexcel International A Level Maths

D1: Algorithms on graphs II topic test

Total 54 marks

Name

Class

Date

  1. 1
    A park ranger must walk along every path in a park at least once, starting and finishing at the car park AA. The paths join six junctions AA, BB, CC, DD, EE and FF. The path lengths, in hundreds of metres, are AB=5AB=5, AC=7AC=7, BC=4BC=4, BD=6BD=6, CD=8CD=8, CE=3CE=3, DE=5DE=5, DF=9DF=9 and EF=4EF=4. There are no other paths.
    (a)
    Which junctions have an odd number of paths meeting at them?
    [1 mark]
    • AAA and FF
    • BBB and EE
    • CCC and DD
    • DBB, CC and EE
    (b)
    What is the shortest total length of path that must be walked a second time?
    [1 mark]
    • A44
    • B1111
    • C77
    • D1515
    (c)
    Find the length of the shortest route that starts and finishes at AA and uses every path at least once.
    [2 marks]

    Total for question 1: 4 marks

  2. 2
    A mountain rescue base HH is joined to three huts AA, BB and CC by tracks of length HA=4HA=4 km, HB=5HB=5 km and HC=6HC=6 km. There are no other tracks. A tour starts at HH, visits every hut and returns to HH.
    (a)
    Why can the classical travelling salesman problem not be solved on this network?
    [1 mark]
    • AThe triangle inequality is not satisfied
    • BThere are too many vertices for a tour to exist
    • CThe network is directed
    • DNo cycle visits every vertex exactly once
    (b)
    What is the length of the shortest tour in the practical problem?
    [1 mark]
    • A3030 km
    • B1515 km
    • C2222 km
    • D2626 km
    (c)
    Write down the lengths ABAB, ACAC and BCBC in the complete network of shortest distances between the three huts.
    [2 marks]

    Total for question 2: 4 marks

  3. 3
    A surveyor must visit five weather stations FF, GG, HH, JJ and KK, starting and finishing at FF. Every pair of stations is joined by a direct road. The road lengths in km are FG=8FG=8, FH=12FH=12, FJ=6FJ=6, FK=10FK=10, GH=7GH=7, GJ=11GJ=11, GK=9GK=9, HJ=13HJ=13, HK=5HK=5 and JK=14JK=14.
    (a)
    Use the nearest neighbour algorithm, starting at FF, to find an upper bound for the length of the shortest route that visits every station once and returns to FF. State the route you use.
    [3 marks]
    (b)
    By deleting FF, find a lower bound for the length of the shortest route that visits every station once and returns to FF.
    [4 marks]

    Total for question 3: 7 marks

  4. 4
    Five harbours JJ, KK, LL, MM and NN are linked by ferry routes. The only direct routes, and their lengths in nautical miles, are JK=7JK=7, JL=9JL=9, JM=12JM=12, KL=5KL=5, KN=8KN=8, LN=6LN=6 and MN=4MN=4.
    (a)
    An inspector must travel along every route at least once, starting and finishing at MM. Determine the length of the shortest such journey. You must make your method and all your pairings clear.
    [6 marks]
    (b)
    The network of shortest distances between the harbours has JK=7JK=7, JL=9JL=9, JM=12JM=12, JN=15JN=15, KL=5KL=5, KM=12KM=12, KN=8KN=8, LM=10LM=10, LN=6LN=6 and MN=4MN=4. A cargo vessel must visit every harbour once, starting and finishing at JJ. (i) Use the nearest neighbour algorithm from JJ to find an upper bound. (ii) By deleting JJ, find a lower bound.
    [6 marks]

    Total for question 4: 12 marks

  5. 5
    A museum security guard must patrol every corridor at least once, starting and finishing at the entrance TT. The corridors join five junctions PP, QQ, RR, SS and TT. The corridor lengths, in tens of metres, are PQ=6PQ=6, PR=8PR=8, QR=5QR=5, QS=14QS=14, RS=7RS=7, RT=10RT=10 and ST=4ST=4. There are no other corridors.
    (a)
    What is the sum of the degrees of the five junctions?
    [1 mark]
    • A1414
    • B77
    • C5454
    • D1010
    (b)
    What is the shortest total length of corridor that must be patrolled a second time?
    [1 mark]
    • A1414
    • B2121
    • C1919
    • D1212
    (c)
    Find the length of the shortest patrol route, and state which corridors are walked twice.
    [2 marks]

    Total for question 5: 4 marks

  6. 6
    A complete network has four towns UU, VV, WW and XX. Three of the road lengths, in km, are UV=5UV=5, VW=7VW=7 and UW=14UW=14.
    (a)
    Which statement about the triangle inequality for UU, VV and WW is correct?
    [1 mark]
    • AIt is satisfied because UVUV is the shortest arc
    • BIt is satisfied because 5+14>75+14>7
    • CIt is not satisfied because UW>UV+VWUW>UV+VW
    • DIt cannot be tested without the other lengths
    (b)
    In the practical travelling salesman problem, what is the shortest distance from UU to WW?
    [1 mark]
    • A1414 km
    • B1212 km
    • C77 km
    • D2626 km
    (c)
    A driver on a tour is about to use the direct road UWUW. Explain how the driver can shorten the tour, and state the saving.
    [2 marks]

    Total for question 6: 4 marks

  7. 7
    Five field stations RR, SS, TT, UU and VV are joined by a complete network of direct tracks whose lengths, in km, satisfy the triangle inequality: RS=10RS=10, RT=6RT=6, RU=8RU=8, RV=7RV=7, ST=16ST=16, SU=4SU=4, SV=5SV=5, TU=12TU=12, TV=13TV=13 and UV=9UV=9.
    (a)
    Use Kruskal's algorithm to find a minimum spanning tree for the stations. List the arcs in the order you select them, and state the weight of the tree.
    [3 marks]
    (b)
    Use your tree to find an upper bound for the shortest tour that visits every station once. Then use shortcuts to find a better upper bound, stating the tour you find and its length.
    [4 marks]

    Total for question 7: 7 marks

  8. 8
    A bus company's routes join five towns LL, MM, NN, PP and QQ. The only direct routes, and their lengths in km, are LM=8LM=8, LN=5LN=5, LP=11LP=11, MN=6MN=6, MQ=9MQ=9, NQ=7NQ=7 and PQ=10PQ=10.
    (a)
    An inspector must travel along every route at least once, starting and finishing at PP. Determine the length of the shortest such journey. You must make your method and all your pairings clear.
    [6 marks]
    (b)
    The network of shortest distances between the towns has LM=8LM=8, LN=5LN=5, LP=11LP=11, LQ=12LQ=12, MN=6MN=6, MP=19MP=19, MQ=9MQ=9, NP=16NP=16, NQ=7NQ=7 and PQ=10PQ=10. A tour L→N→M→Q→P→LL\to N\to M\to Q\to P\to L of length 4141 km is known. (i) By deleting PP, find a lower bound for the shortest tour. (ii) A planner claims that a tour of length 3838 km exists. Use your answer to comment on the claim, and state the interval that contains the shortest tour.
    [6 marks]

    Total for question 8: 12 marks

End of questions

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).