Decision 1: Algorithms, graphs, shortest paths, route inspection and TSP – Edexcel A Level Further Mathematics (9FM0)

53 questions · page 1 of 4

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
9FM0 Option paper 3 A · Jun 2025 · Question 8May/June 2025Option paper 3 A7 marks
Loading question…
Question text

8. The ellipse E has equation
x 2
y 2
1
64 36
The line l has equation y = mx + c where m and c are constants.
(a) Show that the x coordinates of the points of intersection of E and l satisfy
the equation
16 m
9 x 2 32 cmx 16 c 2 k 0
2
where k is a constant to be determined.
(2)
Hence, given that the line l
•
is a tangent to E
•
passes through the point (10, 20)
(b) determine the possible equations of l
(5)
Question 8 continued
Question 8 continued
Question 8 continued
(Total for Question 8 is 7 marks)

2
9FM0 Option paper 3 D · Jun 2025 · Section 1, Question 1May/June 2025Option paper 3 D5 marks
Loading question…
Question text

1.
4.7 2.9 5.5 1.4 5.8 2.8 3.8 6.5 5.1 6.3 4.1
(a) Use the first-fit bin packing algorithm to determine how the numbers listed above
can be packed into bins of size 13
(3)
(b) Use the first-fit decreasing bin packing algorithm to determine how the numbers
listed above can be packed into bins of size 13
(2)
(Total for Question 1 is 5 marks)

3
9FM0 Option paper 3 D · Jun 2025 · Section 1, Question 2May/June 2025Option paper 3 D10 marks
Loading question…
Question text

2.
271 828 182 845 904 523 536 028 747 135
The list of ten numbers above is to be sorted into descending order.
(a) Perform a quick sort on the list to obtain the sorted list. You should show the result
of each pass and identify the pivots clearly.
(4)
A list of n numbers is to be sorted into descending order using bubble sort.
(b) Determine, in the worst case, the total number of comparisons required to sort the
list. Give your answer as a simplified expression in terms of n.
(2)
The following algorithm determines an approximation to the value of e
Step 1
Start
Step 2
Let a = 1
Step 3
Let b = 1
Step 4
Let c = 1
Step 5
Let d = a
Step 6
Let c c b
Let d d 1 c
Step 7
Step 8
If b = 6 go to Step 11
Step 9
Let b = b + 1
Step 10
Go to Step 6
Step 11
Output d
Step 12
Stop
(c) Complete the table in the answer book to show the results obtained at each step of
the algorithm.
(3)
(d) Calculate, to 3 significant figures, the percentage error in using the value found in
(c) to approximate the value of e
(1)
(Total for Question 2 is 10 marks)

Advertisement
4
9FM0 Option paper 3 D · Jun 2025 · Section 1, Question 3May/June 2025Option paper 3 D10 marks
Loading question…
Question text

3.
G
F
12
11
47
24
14
A
E
35
31
9
35
25
11
8
B
40
D
17
C
Figure 1
Direct roads between seven villages, A, B, C, D, E, F and G, are represented in
Figure 1. The weight on each arc is the time, in minutes, taken to travel along the
corresponding road. Three roads, AB, AD and GE, are one-way, as indicated by the
arrow on the corresponding arc.
Floyd’s algorithm is to be used to find the complete network of shortest times between
the seven villages.
(a) Set up an initial time matrix for this network.
(2)
The time matrix after three iterations of Floyd’s algorithm is shown below.
A
B
C
D
E
F
G
A
–
9
49
17
35
44
11
B
–
40
8
35
87
∞
∞
C
40
–
17
75
47
∞
∞
D
8
17
–
11
31
64
∞
E
35
44
84
11
–
14
46
F
35
75
31
14
–
12
∞
G
11
20
47
28
24
12
–
(b) Perform the next two iterations of Floyd’s algorithm that follow from the
table above.
You should show only the time matrix after each iteration.
(5)
The final time matrix after completion of Floyd’s algorithm is shown below.
A
B
C
D
E
F
G
A
–
9
34
17
28
23
11
B
–
25
8
33
45
54
19
C
25
–
17
42
47
58
28
D
8
17
–
11
25
37
46
E
35
19
28
11
–
14
26
F
32
42
25
14
–
12
23
G
11
20
45
28
24
12
–
Albert must visit each village. He will start and finish at B and wishes to minimise the
total time taken to visit each village.
(c) (i) Use the nearest neighbour algorithm, starting at B, to find a Hamiltonian cycle
in the complete network of shortest times shown above.
(ii) Find the total travel time for this cycle.
(iii) Given that he travels the Hamiltonian cycle found in (c)(i), interpret this cycle in
terms of the actual villages visited by Albert.
(3)
(Total for Question 3 is 10 marks)

5
9FM0 Option paper 3 D · Jun 2025 · Section 1, Question 4May/June 2025Option paper 3 D13 marks
Loading question…
Question text

4.
B
24
E
10
10
13
J
6
F
C
5
17
16
13
A
4
9
11
22
K
17
G
1
7
25
D
19
H
Figure 2
[The total weight of the network is 268]
Figure 2 represents a network of corridors between 10 offices, A, B, C, D, E, F, G, H, J
and K, in a building. The number on each edge represents the length, in metres, of the
corresponding corridor.
On Monday morning, Turvi needs to walk from J to K via A. She wishes to minimise
the distance she travels along the corridors.
(a) (i) Use Dijkstra’s algorithm, starting at A, to find the shortest route from J to K via A.
(ii) State the length of this route.
(6)
On Monday afternoon, Turvi needs a route that traverses each corridor at least once. She
plans to start at J and finish at A and wants to minimise the distance travelled.
(b) (i) By considering the pairings of all relevant nodes, find the corridors that would
need to be traversed twice. You must make your method and working clear.
(ii) State the total length of this route.
(5)
Turvi discovers that she cannot walk along corridors AB, CD and JK because they are
being decorated. Turvi walks from J to A travelling along all the other corridors at least
once. She does this in the minimum distance possible.
(c) Determine the difference between the length of the route Turvi travels and the length
of the route found in (b). You must make the values used in your calculation clear.
(2)
(Total for Question 4 is 13 marks)

6
9FM0 Option paper 3 D · Jun 2025 · Section 2, Question 2May/June 2025Option paper 3 D10 marks
Loading question…
Question text

2.
271 828 182 845 904 523 536 028 747 135
Question 2 continued
You may not need to use all the rows in this table.
It may not be necessary to complete all boxes in each row.
(c)
a
b
c
d
Table continued on page 5.
Question 2 continued
Output:
(Total for Question 2 is 10 marks)

7
9FM0 Option paper 3 D · Jun 2025 · Section 2, Question 3May/June 2025Option paper 3 D10 marks
Loading question…
Question text

3.
(a) Initial time matrix
A
B
C
D
E
F
G
A
B
C
D
E
F
G
(b) Fourth iteration
A
B
C
D
E
F
G
A
B
C
D
E
F
G
Fifth iteration
A
B
C
D
E
F
G
A
B
C
D
E
F
G
Question 3 continued
(Total for Question 3 is 10 marks)

8
9FM0 Option paper 3 D · Jun 2025 · Section 2, Question 4May/June 2025Option paper 3 D13 marks
Loading question…
Question text

4.
39
B
24
E
10
J
10
13
6
F
5
16
A
C
17
13
4
9
K
11
22
17
G
1
D
7
H
25
19
Key:
Order of
Final
Vertex
labelling
value
Working value
Shortest route from J to K via A:
Length of shortest route from J to K via A:
Question 4 continued
Question 4 continued
Question 4 continued
(Total for Question 4 is 13 marks)

Advertisement
9
9FM0 Option paper 4 A · Jun 2025 · Question 5May/June 2025Option paper 4 A10 marks
Loading question…
Question text

5. (i) A password is to be created from 5 characters using the following criteria
•
one capital letter
•
3 distinct single digits
•
one of the four symbols @
£
$
&
Determine how many different passwords can be created if
(a) the characters are in the order of the bullet points above,
(2)
(b) the characters can be in any order.
(1)
(ii) Use Fermat’s Little Theorem to determine the least positive residue of 4 50 modulo 13
(3)
(iii) Determine the total number of different, positive odd numbers, less than 1000, that
contain the digit 2
(4)
Question 5 continued
(Total for Question 5 is 10 marks)

10
9FM0 Option paper 4 B · Jun 2025 · Question 4May/June 2025Option paper 4 B13 marks
Loading question…
Question text

4. The weights of apples Sam grows are normally distributed with a mean of 131 g and a
standard deviation of 6 g
A supermarket will only buy apples with weights in the range 125 g to 137 g
(a) Find the proportion of apples Sam grows that the supermarket will buy.
(1)
Some of Sam’s apple trees are treated with the aim of reducing the variability in weight
of apples, without significantly affecting the mean weight. The weights of apples are
still normally distributed.
A random sample of 25 apples was taken from treated trees and the weight, x grams, of
each apple was recorded. The results are summarised by the following statistics
x 3250 x
n 25
422 862
2
(b) Use a 5% level of significance to carry out a suitable test to determine whether
there is evidence that the variance of the weights of apples from treated trees
has decreased.
You should clearly state your test statistic, hypotheses and critical value.
(6)
(c) Calculate a 95% confidence interval for the mean weight of apples produced by
Sam’s trees after treatment.
You should clearly state the formula and numerical expression you have used.
(3)
(d) (i) State, giving a reason, whether the aims of the treatment have been met.
(ii) Give an estimate of the proportion of apples the supermarket will buy from
Sam’s trees that have been treated.
(3)
Question 4 continued
Question 4 continued
Question 4 continued
(Total for Question 4 is 13 marks)

11
9FM0 Option paper 3 D · Jun 2024 · Section 1, Question 1May/June 2024Option paper 3 D7 marks
Loading question…
Question text

1.
17
8
16
12
24
19
23
11
20
13
4
The eleven numbers listed above are to be packed into bins of size n where n is a
positive integer. When the first-fit bin packing algorithm is applied to the eleven
numbers, the bins are packed as shown below.
Bin 1:
17
8
12
Bin 2:
16
24
Bin 3:
19
11
4
Bin 4:
23
13
Bin 5:
20
(a) Explain why this packing means that the value of n must be 40
(1)
The original list of eleven numbers is to be sorted into descending order.
(b) Use a quick sort to obtain the fully sorted list. You must make your pivots clear.
(4)
(c) Apply the first-fit decreasing bin packing algorithm to the fully sorted list to pack
the numbers into bins of size 40
(2)
(Total for Question 1 is 7 marks)

12
9FM0 Option paper 3 D · Jun 2024 · Section 1, Question 2May/June 2024Option paper 3 D13 marks
Loading question…
Question text

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.
A
B
C
D
E
F
G
H
J
A
–
50
59
26
50
40
87
63
59
B
50
–
28
61
79
63
45
64
48
C
59
28
–
33
57
35
70
36
45
D
26
61
33
–
24
64
71
37
33
E
50
79
57
24
–
40
64
30
31
F
40
63
35
64
40
–
47
70
71
G
87
45
70
71
64
47
–
34
67
H
63
64
36
37
30
70
34
–
33
J
59
48
45
33
31
71
67
33
–
(a) 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.
(3)
(b) State the weight of the minimum spanning tree found in part (a).
(1)
(c) Draw the minimum spanning tree using the vertices given in Diagram 1 in the
answer book.
(1)
A historian needs to visit all of the castles, starting and finishing at the same castle, and
wishes to minimise the total distance travelled.
(d) Use your answer to part (b) to calculate an initial upper bound for the length of the
historian’s route.
(1)
(e) (i) Use the nearest neighbour algorithm, starting at D, to find an upper bound for
the length of the historian’s route.
(ii) Write down the route which gives this upper bound.
(3)
Using the nearest neighbour algorithm, starting at F, an upper bound of length 352 miles
was found.
(f) 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.
(1)
(g) 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.
(h) 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.
(1)
(Total for Question 2 is 13 marks)

13
9FM0 Option paper 3 D · Jun 2024 · Section 1, Question 3May/June 2024Option paper 3 D13 marks
Loading question…
Question text

3.
B
E
37
K
41
17
20
25
12
5
25
27
34
47
J
A
F
D
6
4
18
26
15
24
9
C
G
21
H
Figure 1
[The total weight of the network is 413]
Figure 1 represents a network of cycle tracks between ten towns, A, B, C, D, E, F,
G, H, J and K. The number on each arc represents the length, in kilometres, of the
corresponding track.
(a) Use Dijkstra’s algorithm to find the shortest path from A to J.
(5)
Abi needs to travel along every track shown in Figure 1 to check that they are all in
good repair. She needs to start her inspection route at town G and finish her route at
either town J or town K.
Abi wishes to minimise the total distance required to traverse every track.
(b) By considering all relevant pairings of vertices, determine whether Abi should finish
her inspection route at town J or town K. You must
state which tracks she will repeat in her route
•
•
state the total length of her route
(6)
The direct track between town B and town C and the direct track between town H and
town K are now closed to all users. A second person, Tarig, is asked to check all the
remaining tracks starting at G and finishing at H.
Tarig wishes to minimise the total length of his inspection route.
(c) Determine which route, Abi’s or Tarig’s, is shorter. You must make your
working clear.
(2)
(Total for Question 3 is 13 marks)

Advertisement
14
9FM0 Option paper 3 D · Jun 2024 · Section 1, Question 4May/June 2024Option paper 3 D8 marks
Loading question…
Question text

4. (a) Explain why it is not possible to draw a graph with exactly six nodes with
degrees 1, 2, 3, 4, 5 and 6
(1)
A tree, T, has exactly six nodes. The degrees of the six nodes of T are
1
2
(4 – x)
(2x – 5)
(4x – 11)
(3x – 5)
where x is an integer.
(b) Explain how you know that T cannot be Eulerian.
(1)
(c) (i) Determine the value of x
(ii) Hence state whether T is semi-Eulerian or not. You must justify your answer.
(5)
Figure 2
Figure 2 shows a graph, G, with six nodes with degrees 1, 2, 3, 3, 3 and 4
(d) Using the vertices in Diagram 1 in the answer book, draw a graph with exactly six
nodes with degrees 1, 2, 3, 3, 3 and 4 that is not isomorphic to G.
(1)
(Total for Question 4 is 8 marks)

15
9FM0 Option paper 4 D · Jun 2024 · Section 1, Question 1May/June 2024Option paper 4 D10 marks
Loading question…
Question text

1.
C 1
2 2
A
E
17
15 8
x
13
11
13
13
19 7
5 5
12 12
D
B
S
T
4
7
4
10
5
15
y
4
16
10
12
16
C
F
11 8
C 1
Figure 1
Figure 1 shows a capacitated, directed network of pipes. The numbers in circles
represent an initial flow from S to T. The other number on each arc represents the
capacity, in litres per second, of the corresponding pipe.
(a) (i) State the value of x
(ii) State the value of y
(2)
(b) State the value of the initial flow.
(1)
(c) State the capacity of cut C 1
(1)
(d) Find, by inspection, a flow‑augmenting route to increase the flow by four units.
You must state your route.
(1)
The flow‑augmenting route from (d) is used to increase the flow from S to T.
(e) Prove that the flow is now maximal.
(3)
A vertex restriction is now applied so that no more than 12 litres per second can flow
through E.
(f) (i) Complete Diagram 1 in the answer book to show this restriction.
(ii) State the value of the maximum flow through the network with this restriction.
(2)
(Total for Question 1 is 10 marks)

Advertisement