All topic tests topics

Decision Mathematics 1: Algorithms and graph theoryEdexcel A-Level Further Maths: Topic test

20 questions, 54 marks

Edexcel A-Level Further Maths

Decision Mathematics 1: Algorithms and graph theory topic test

Total 54 marks

Name

Class

Date

  1. 1
    A caterer must pack eight containers, of masses 9, 7, 11, 16, 5, 18, 12 and 14 kg, into crates that each hold at most 25 kg. The containers are considered in the order listed.
    (a)
    How many crates are needed when the first-fit algorithm is used?
    [1 mark]
    • A4
    • B5
    • C6
    • D3
    (b)
    What is the lower bound for the number of crates needed?
    [1 mark]
    • A3
    • B5
    • C6
    • D4
    (c)
    Use the first-fit decreasing algorithm to pack the containers. State the contents of each crate.
    [2 marks]

    Total for question 1: 4 marks

  2. 2
    The list 17, 4, 12, 9, 20, 6 is to be sorted into ascending order.
    (a)
    What is the list after the first pass of a bubble sort?
    [1 mark]
    • A4, 6, 9, 12, 17, 20
    • B4, 17, 12, 9, 20, 6
    • C4, 12, 9, 17, 6, 20
    • D4, 12, 9, 17, 20, 6
    (b)
    How many comparisons are made in the first pass of a bubble sort on this list?
    [1 mark]
    • A5
    • B6
    • C4
    • D15
    (c)
    Perform the first pass of a quick sort on the list, using the middle item as the pivot. Show the resulting sublists.
    [2 marks]

    Total for question 2: 4 marks

  3. 3
    Six teams each play every other team exactly once. The fixtures are modelled by the complete graph K6K_6, with a vertex for each team and an edge for each match.
    (a)
    Show that there are 15 matches, and explain why K6K_6 is not Eulerian.
    [3 marks]
    (b)
    Find the least number of edges that must be deleted from K6K_6 so that the remaining graph is Eulerian. Justify your answer and give an example of a suitable set of edges.
    [4 marks]

    Total for question 3: 7 marks

  4. 4
    Graph GG has six vertices PP, QQ, RR, SS, TT and UU and nine edges: PQPQ, QRQR, RSRS, STST, TUTU, UPUP, PSPS, QTQT and RURU.
    (a)
    Use the planarity algorithm to show that GG is not planar.
    [6 marks]
    (b)
    The edge PSPS is deleted from GG to give the graph HH. Show that HH is planar, and determine whether HH is Eulerian, semi-Eulerian or neither.
    [6 marks]

    Total for question 4: 12 marks

  5. 5
    A connected simple graph GG has 8 vertices and 11 edges. Two of the vertices have degree 2 and the other six have degree 3.
    (a)
    How many edges does a spanning tree of GG have?
    [1 mark]
    • A8
    • B11
    • C7
    • D6
    (b)
    What is the least number of edges that must be deleted from GG to form a spanning tree?
    [1 mark]
    • A3
    • B4
    • C7
    • D11
    (c)
    Determine whether GG is Eulerian, semi-Eulerian or neither, giving a reason.
    [2 marks]

    Total for question 5: 4 marks

  6. 6
    A computer uses a bubble sort to sort lists of nn numbers. The time taken is modelled as proportional to the number of comparisons made.
    (a)
    What is the greatest number of comparisons that a bubble sort needs to sort a list of 12 numbers, when each pass compares every adjacent pair that is not yet in its final position?
    [1 mark]
    • A66
    • B132
    • C144
    • D11
    (b)
    What is the order of the bubble sort algorithm?
    [1 mark]
    • Ann
    • Bnlog⁡nn\log n
    • C2n2^n
    • Dn2n^2
    (c)
    A list of 50 numbers takes 3 seconds to sort. Using the order of the algorithm, estimate the time taken to sort a list of 200 numbers.
    [2 marks]

    Total for question 6: 4 marks

  7. 7
    Graph NN has seven vertices AA, BB, CC, DD, EE, FF and GG. A Hamiltonian cycle of NN is ABCDEFGAABCDEFGA. The only other edges of NN are ACAC, BEBE, CFCF and EGEG.
    (a)
    List the pairs of edges that are not on the Hamiltonian cycle and that must be drawn on opposite sides of the cycle when the planarity algorithm is used.
    [3 marks]
    (b)
    Complete the planarity algorithm to show that NN is planar. The edge BFBF is added to NN to form N′N'. Show that N′N' is not planar.
    [4 marks]

    Total for question 7: 7 marks

  8. 8
    The degrees of the seven vertices of a connected simple graph NN, in the order in which the vertices are labelled AA to GG, are 3, 5, 6, 3, 2, 4, 3.
    (a)
    Use a bubble sort to sort the degrees into descending order. Show the list after each pass.
    [6 marks]
    (b)
    Find the number of edges of NN and determine whether NN is Eulerian, semi-Eulerian or neither. Given that NN has a Hamiltonian cycle, find how many edges are not on the cycle, and how many of these are incident with the vertex of degree 6.
    [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).