1.
(4)
(Total for Question 1 is 4 marks)
4 specification points · notes, questions, answers and worked methods
Checked against Edexcel 9FM0 section D1-1. 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.
Explanation
Worked example
An algorithm of order sorts items in seconds. Find the time it takes on items, and the largest number of items it can sort in seconds.
Answer: It takes seconds on items, and can sort at most items in seconds.
Common mistakes
Exam tip
Draw the trace table before you start, with a column headed by every variable named in the algorithm; examiners award method marks for a correct partial table.
1.
(4)
(Total for Question 1 is 4 marks)
2.
(2)
(Total for Question 2 is 2 marks)
1.
(4)
(Total for Question 1 is 4 marks)
2.
(5)
(Total for Question 2 is 5 marks)
3.
(4)
(Total for Question 3 is 4 marks)
1.
(6)
(Total for Question 1 is 6 marks)
2.
(5)
(Total for Question 2 is 5 marks)
3.
(6)
(Total for Question 3 is 6 marks)
4.
(6)
(Total for Question 4 is 6 marks)
5.
(7)
(Total for Question 5 is 7 marks)
Explanation
Worked example
Items of size are packed into bins of capacity . Find the lower bound and apply first-fit decreasing.
Answer: The lower bound is bins, and first-fit decreasing achieves it with , and , so the packing is optimal.
Common mistakes
Exam tip
Write the descending list out in full before starting first-fit decreasing; most lost marks are sorting slips, not packing slips.
1.
(5)
(Total for Question 1 is 5 marks)
2.
(3)
(Total for Question 2 is 3 marks)
1.
(5)
(Total for Question 1 is 5 marks)
2.
(5)
(Total for Question 2 is 5 marks)
3.
(5)
(Total for Question 3 is 5 marks)
1.
(6)
(Total for Question 1 is 6 marks)
2.
(6)
(Total for Question 2 is 6 marks)
3.
(7)
(Total for Question 3 is 7 marks)
4.
(7)
(Total for Question 4 is 7 marks)
5.
(8)
(Total for Question 5 is 8 marks)
Explanation
Worked example
A connected graph has nodes of order . Find the number of edges and classify the graph.
Answer: The graph has edges and is semi-Eulerian; a trail covering every edge once must start at one node of order and finish at the other.
Common mistakes
Exam tip
List the degrees in order before answering; almost every part of these questions is settled by that list and the handshaking result.
1.
(3)
(Total for Question 1 is 3 marks)
2.
(3)
(Total for Question 2 is 3 marks)
1.
(5)
(Total for Question 1 is 5 marks)
2.
(5)
(Total for Question 2 is 5 marks)
3.
(4)
(Total for Question 3 is 4 marks)
1.
(6)
(Total for Question 1 is 6 marks)
2.
(6)
(Total for Question 2 is 6 marks)
3.
(5)
(Total for Question 3 is 5 marks)
4.
(6)
(Total for Question 4 is 6 marks)
5.
(6)
(Total for Question 5 is 6 marks)
Explanation
Worked example
A graph has the Hamiltonian cycle and the additional edges , and . Use the planarity algorithm to decide whether it is planar.
Answer: A consistent labelling exists, with and inside and outside, so the graph is planar.
Common mistakes
Exam tip
Write the cycle order along the top of your working and read each chord as the set of vertices it separates; the conflicts then fall out mechanically.
1.
(3)
(Total for Question 1 is 3 marks)
2.
(3)
(Total for Question 2 is 3 marks)
1.
(6)
(Total for Question 1 is 6 marks)
2.
(6)
(Total for Question 2 is 6 marks)
3.
(5)
(Total for Question 3 is 5 marks)
1.
(8)
(Total for Question 1 is 8 marks)
2.
(7)
(Total for Question 2 is 7 marks)
3.
(6)
(Total for Question 3 is 6 marks)
4.
(8)
(Total for Question 4 is 8 marks)
5.
(8)
(Total for Question 5 is 8 marks)
Answers begin on a new printed page so the question pack can be completed without the solutions alongside it.
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 4 |
| (4 marks) | 4 | |
| Notes | ||
| Each pass replaces the pair by , giving , , , , , , and . The test at Step 4 first fails when , after passes, so the algorithm stops with and . | ||
| 2 |
| 2 |
| (2 marks) | 2 | |
| Notes | ||
| For an order algorithm the run time is proportional to . The size is multiplied by , so the time is multiplied by , giving seconds. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 4 |
| (4 marks) | 4 | |
| Notes | ||
| Halving and taking the integer part gives , where has integer part and has integer part . Box 3 is used times before the test at Box 2 succeeds, so the output is . | ||
| 2 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| Substituting gives and , so the ratio is . The dominant term for large is , so the order is and the ideal ratio would be . At the term is about of but at the term is only of , so the measured ratio is below . | ||
| 3 |
| 4 |
| (4 marks) | 4 | |
| Notes | ||
| An order run time is proportional to , so tripling the size multiplies the time by , giving seconds. Dijkstra's algorithm assigns a permanent label to each of the vertices and updates at most working values each time, so it is a standard order network algorithm. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Each pass computes and then shifts the pair. Since , , and , the remainder first reaches on the fourth pass with , so the algorithm outputs . | ||
| 2 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| Run time is proportional to , so with . For , and . For , seconds. | ||
| 3 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Setting the times equal gives , and dividing by (with ) gives . At , algorithm P takes seconds while algorithm Q takes seconds, so P is faster. Since the ratio of Q's time to P's time is , which exceeds whenever , algorithm P is faster for every larger problem, as its lower order guarantees. | ||
| 4 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Choosing an unordered pair from items can be done in ways, so that is the comparison count: when and when . Expanding gives , whose dominant term is , so the algorithm has order . | ||
| 5 |
| 7 |
| (7 marks) | 7 | |
| Notes | ||
| Run time satisfies with . For , seconds. For , , so . Making the machine times faster replaces by , so and ; equivalently, a factor in speed buys only a factor in size for a quadratic algorithm. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| The items total , so at least bins are needed. Working along the list, opens bin 1; will not fit with it so opens bin 2; fits in bin 1; opens bin 3; opens bin 4; fits in bin 1, filling it to ; fits nowhere so opens bin 5; the final fits in bin 4, filling it to . Five bins are used. | ||
| 2 |
| 3 |
| (3 marks) | 3 | |
| Notes | ||
| Comparing adjacent pairs left to right: and swap to give ; and do not swap; and swap to give ; and swap to give . A list of items needs comparisons in the first pass, and the largest item has reached the end. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| Sorting into descending order gives . Then opens bin 1, opens bin 2, opens bin 3, the first opens bin 4 and the second joins it to make ; fits in bin 3 making ; fits in bin 2 making ; fits in bin 1 making . All four bins are exactly full, and since the lower bound is no packing can do better. | ||
| 2 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| For a descending sort a pair is swapped when the left item is smaller. Pass 1 swaps with , then with , then with and with , sending to the end and giving . Pass 2 works on the first six items and swaps with , then with and with , giving . Pass 3 works on the first five and swaps with and then with , giving . | ||
| 3 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| With the middle item is in position , which holds . Nothing is smaller than , so pass 1 gives the fixed pivot followed by the sublist in its original relative order. That sublist has , so its pivot is in position , which holds . Items smaller than are and items larger are , so pass 2 gives , , , . | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| The items total , so at least bins are needed. First-fit gives: opens bin 1; opens bin 2; joins bin 1 (); opens bin 3; joins bin 2 (); joins bin 1 (); opens bin 4; joins bin 4 (); joins bin 3 (). Four bins are used, matching the lower bound, so no packing uses fewer. | ||
| 2 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Sorting gives . Then opens bin 1, opens bin 2, opens bin 3, joins bin 3 (), joins bin 2 (), opens bin 4, joins bin 1 (), joins bin 4 () and joins bin 4 (). Four bins are used. First-fit decreasing places each item in the first bin with room and never moves it again, so it cannot recover from an early placement that blocks a later exact fit; that is why an examiner asks for the lower bound before accepting a packing as optimal. | ||
| 3 |
| 7 |
| (7 marks) | 7 | |
| Notes | ||
| For a descending sort, items larger than the pivot are written before it. With the first pivot is in position , namely ; the larger items go before it and the smaller items after it. On pass 2 the sublist has and pivot in position , namely , giving , , ; the sublist has and pivot in position , namely , giving , . On pass 3 the only sublist left is , whose pivot is , giving , . Every item is now a chosen pivot, so the sort is complete after passes. | ||
| 4 |
| 7 |
| (7 marks) | 7 | |
| Notes | ||
| With the first pivot is in position , namely ; nothing is smaller, so the pass gives then . That sublist has and pivot in position , namely , and nothing is larger, giving , . Next and the pivot is in position , namely , giving , . Then with pivot in position , namely , giving , . Finally with pivot in position , namely , giving , . Five passes are needed because each pass fixes only the pivots of the sublists that are still active. | ||
| 5 |
| 8 |
| (8 marks) | 8 | |
| Notes | ||
| In a descending bubble sort a pair is swapped when the left value is the smaller. Pass 1 makes nine comparisons and swaps with , then carries rightwards past , , , and , and finally swaps with , giving . Pass 2 works on the first nine entries, makes eight comparisons and carries past , and , then past and past , giving . The crates total tonnes, so at least lorries are needed. Applying first-fit to : opens lorry 1; opens lorry 2; opens lorry 3; opens lorry 4; opens lorry 5; joins lorry 5 (); joins lorry 4 (); joins lorry 3 (); joins lorry 2 (); fits nowhere and opens lorry 6. Six lorries are used, matching the lower bound. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 3 |
| (3 marks) | 3 | |
| Notes | ||
| The orders sum to , and each edge contributes to that sum, so there are edges. There are no odd nodes, so a connected graph of this type is Eulerian and has a closed trail using every edge exactly once. | ||
| 2 |
| 3 |
| (3 marks) | 3 | |
| Notes | ||
| Counting the edges at each vertex gives in so order ; in so order ; in so order ; in so order ; and in so order . The orders sum to , confirming edges. Exactly two vertices are odd, so the graph is semi-Eulerian. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| The vertex lies in so has order ; similarly is in , is in and is in , all of order ; is in and is in , both of order . With four odd vertices the graph is neither Eulerian nor semi-Eulerian. Each added edge raises the order of two vertices by one, so it can fix at most two odd vertices, and two added edges suffice: pairing with and with makes every order even. | ||
| 2 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| In every vertex joins to all others, so each has order and the degree sum is , giving edges. For this is order and edges, and since is even is Eulerian. In general is Eulerian when is even, so must be odd; has odd order at every vertex, and the next odd value is . | ||
| 3 |
| 4 |
| (4 marks) | 4 | |
| Notes | ||
| By the handshaking result the orders sum to twice the number of edges, so the total is . The seven listed orders sum to , leaving for the eighth vertex. That gives four odd vertices in all, so the graph is neither Eulerian nor semi-Eulerian. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Counting incidences: appears in ; in ; in ; in ; in . The orders are , summing to for edges, and four odd vertices means the graph is neither Eulerian nor semi-Eulerian. Repeating an edge raises the order of both its endpoints by one, so pairing the four odd vertices , , , into two pairs and repeating one edge for each pair makes every order even; two repeats are therefore the minimum for a closed trail. | ||
| 2 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Both degree lists sum to , so each graph has edges; equal edge counts are therefore not enough to decide isomorphism. Isomorphism requires a one-to-one correspondence of vertices preserving order, which forces the sorted degree lists to agree. Here has two vertices of order while has only one, so no such correspondence exists. Counting odd vertices classifies each graph: has two, so it is semi-Eulerian, while has four, so it is neither. | ||
| 3 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| By the handshaking result the orders sum to . If all vertices have order then and . Since every vertex has even order and the graph is connected, it is Eulerian. For a general the same argument gives , so , which indeed returns when . | ||
| 4 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Every edge adds to the order of each endpoint, so the degree sum equals and is even. Splitting the sum into even-order and odd-order vertices, the even part is even, so the odd part must be even too; a sum of odd numbers is even only when there is an even count of them, so three odd vertices are impossible. With vertices the even counts available are . The proposed list sums to , giving edges, and contains the four odd values , an even count, so the list passes both necessary tests and no contradiction arises. | ||
| 5 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| The degree sum is and , so the orders of and total . A semi-Eulerian graph has exactly two odd vertices and its trail runs between them, so and are the odd pair; the odd pairs summing to are , and . Adding a single edge raises both orders by one, making every vertex even, so the graph becomes Eulerian and one added edge is enough. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 3 |
| (3 marks) | 3 | |
| Notes | ||
| A cycle is a closed path, and a Hamiltonian cycle is one that visits each vertex once and only once before returning to the start. In every pair of vertices is joined, so the edges , , and all exist and is a Hamiltonian cycle. | ||
| 2 |
| 3 |
| (3 marks) | 3 | |
| Notes | ||
| With around a circle, the chord cuts off the single vertex . The chord has both endpoints among , , , on the other side of , so the two chords do not cross. With no conflicts at all, both chords can be drawn inside the circle and the graph is planar. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Place around a circle. Chord separates from ; chord separates from ; chord separates from ; chord separates from . Two chords conflict when exactly one endpoint of the second lies in the set separated by the first, which gives the pairs –, – and – and no others; and do not conflict, and – and – share a vertex. The conflicts form a chain, so alternating labels I, O, I, O works and the graph is planar. | ||
| 2 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| Each consecutive pair in takes one vertex from and one from , so every step is an edge of , and the six vertices each appear once, making it a Hamiltonian cycle. Since has edges and the cycle uses six, three chords remain: , and . Reading round the circle , the chord separates from , and has on one side and on the other, so they conflict; has on one side and on the other, so it conflicts with too; and separates from , so conflicts with as well. | ||
| 3 |
| 5 |
| (5 marks) | 5 | |
| Notes | ||
| The three long chords are the main diagonals of the hexagon. Reading round , each diagonal separates the other four vertices into two pairs with one endpoint of each remaining diagonal on each side, so every pair of diagonals conflicts. Labelling as I forces to be O and to be O, but and conflict and cannot share a label, so the algorithm fails and the graph is not planar. | ||
| Question | Scheme | Marks |
|---|---|---|
| 1 |
| 8 |
| (8 marks) | 8 | |
| Notes | ||
| With on a circle, separates from , separates from , separates from , separates from and separates from . Testing each of the ten pairs, the five listed pairs cross and the other five share a vertex. Following the conflicts from gives as I, as O, as I, as O and as I; but conflicts with , which is also I, a contradiction. The conflicts form a cycle of length five, and a cycle of odd length can never be labelled with two alternating labels, so is not planar. | ||
| 2 |
| 7 |
| (7 marks) | 7 | |
| Notes | ||
| Place the six vertices round a circle in cycle order. Two chords cross exactly when one endpoint of the second lies in the set the first separates and the other does not. Checking against : the set separated by is , which contains both and , so they do not cross. Checking against and against : each pair shares a vertex, so neither conflicts. That leaves only – and –, both of which cross. The conflict graph is therefore a star centred on , which is two-colourable: put outside and the other three chords inside. | ||
| 3 |
| 6 |
| (6 marks) | 6 | |
| Notes | ||
| The algorithm turns a plane-drawing question into a two-colouring question by fixing one cycle as a circle and forcing every remaining edge to be a chord drawn on one side or the other. That reduction depends on every vertex lying on the circle, which is exactly the Hamiltonian condition. A graph with no Hamiltonian cycle simply falls outside the method's scope, so the correct conclusion is that the algorithm gives no information, not that the graph fails to be planar; the algorithm proves non-planarity only when it is applied and the conflict labelling is forced into a contradiction. | ||
| 4 |
| 8 |
| (8 marks) | 8 | |
| Notes | ||
| Reading round , a pair of chords crosses when exactly one endpoint of the second lies in the set separated by the first. This gives the five listed conflicts; the remaining pairs –, –, –, – and – each share a vertex. Starting from as I forces to be O, then to be I, then to be O, then to be I; but conflicts with , which is already I. The conflicts close up into a cycle of five chords, and an odd cycle cannot be two-coloured, so the graph is not planar. | ||
| 5 |
| 8 |
| (8 marks) | 8 | |
| Notes | ||
| Place to around a circle in cycle order and read off the set each chord separates. A pair conflicts when exactly one endpoint of the second lies in that set. The chord cuts off only , so it crosses but not ; cuts off and , so it crosses both and ; cuts off , and , so it also crosses both. That is all five conflicts, because the three chords at share a vertex with one another and and share . The conflict graph therefore splits into the two groups and with every conflict running between them, so putting the first group inside and the second outside gives a plane drawing. | ||