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

10 questions

0 / 0Answer a question to start your score.
New quizSaved 0

Quick quiz: 10 random questions from this topic. Answer them all, then open the Summary.

Advertisement
1
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)

2
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)

3
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)

Advertisement
4
9FM0 Option paper 3 D · Oct/Nov 2021 · Section 1, Question 3Oct/Nov 2021Option paper 3 D8 marks
Loading question…
Question text

3.
A
B
C
D
E
F
G
H
A
–
24
42
48
34
37
32
22
B
24
–
40
35
30
41
39
44
C
42
40
–
21
26
45
38
36
D
48
35
21
–
32
37
29
27
E
34
30
26
32
–
34
40
28
F
37
41
45
37
34
–
43
41
G
32
39
38
29
40
43
–
38
H
22
44
36
27
28
41
38
–
Table 1
Table 1 shows the shortest distances, in miles, between eight towns, A, B, C, D, E, F, G and H.
(a) Use Prim’s algorithm, starting at A, to find the minimum spanning tree for this table of
distances. You must clearly state the order in which you select the edges of your tree.
(3)
(b) State the weight of the minimum spanning tree.
(1)
A
B
C
D
E
F
G
H
J
31
27
50
29
43
25
49
35
Table 2
Table 2 shows the distances, in miles, between town J and towns A, B, C, D, E, F, G and H.
Pranav needs to visit all of the towns, starting and finishing at J, and wishes to minimise
the total distance he travels.
(c) Starting at J, use the nearest neighbour algorithm to obtain an upper bound for the
length of Pranav’s route. You must state your route and its length.
(2)
(d) Starting by deleting J, and all of its edges, find a lower bound for the length of
Pranav’s route.
(2)
(Total for Question 3 is 8 marks)

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

3.
B
42
E
50
J
37
23
21
8
7
30
35
28
A
G
C
45
32
7
41
43
10
11
34
22
D
F
H
32
Figure 4
Figure 4 represents a network with nodes, A, B, C, D, E, F, G, H and J.
The number on each edge gives the length of the corresponding edge.
(a) (i) Use Dijkstra’s algorithm to find the shortest path from A to J.
(ii) State the length of the shortest path from A to J.
(6)
One application of Dijkstra’s algorithm has order n 2 , where n is the number of nodes in
the network.
It takes a computer 0.0312 seconds to find the shortest path from a given start node to a
given end node in a network of 9 nodes.
(b) Calculate approximately how long it would take, in minutes, for the computer to
find the shortest path from a given start node to a given end node for a network of
9000 nodes.
(2)
(Total for Question 3 is 8 marks)

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

1.
A
E
B
D
C
Figure 1
Question 1 continued
(e) Initial time matrix
A
B
C
D
E
A
–
B
–
C
–
D
–
E
–
(f) Final iteration
A
B
C
D
E
A
–
B
–
C
–
D
–
E
–
(Total for Question 1 is 7 marks)

7
9FM0 Option paper 3 D · Oct/Nov 2021 · Section 1, Question 5Oct/Nov 2021Option paper 3 D10 marks
Loading question…
Question text

5.
30 12 5 2 23 18 36 10 15 24
(a) The list of ten numbers above is to be sorted into descending order. Use a quick sort
to obtain the sorted list. You should show the result of each pass and identify your
pivots clearly.
(4)
The ten numbers 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 original list of ten numbers, the
following allocation is obtained.
Bin 1: 30 12 2
Bin 2: 5 23 10
Bin 3: 18 15
Bin 4: 36
Bin 5: 24
(b) Explain why the value of the integer n must be either 44 or 45
(3)
(c) Use the first-fit decreasing bin packing algorithm to determine how the numbers can
be packed into bins of size 45
(3)
(Total for Question 5 is 10 marks)

8
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)

Advertisement
9
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)

10
9FM0 Option paper 4 A · Jun 2023 · Question 5May/June 2023Option paper 4 A8 marks
Loading question…
Question text

5. (i) A security code is made up of 4 numerical digits followed by 3 distinct uppercase
letters.
Given that the digits must be from the set {1, 2, 3, 4, 5} and the letters from the set
{A, B, C, D}
(a) determine the total number of possible codes using this system.
To enable more codes to be generated, the system is adapted so that the 3 letters can
appear anywhere in the code but no letter can be next to another letter.
(b) Determine the increase in the number of codes using this adapted system.
(4)
(ii) A combination lock code consists of four distinct digits that can be read as a
positive integer, N = abcd, satisfying
•
all the digits are odd
N is divisible by 9
•
•
the digits appear in either ascending or descending order
N ≡ e (mod ab ) where ab is read as a two-digit number and e is the odd digit
•
that is not used in the code
(a) Use the first two properties to determine the four digits used in the code.
(b) Hence determine the code on the lock.
(4)
Question 5 continued
Question 5 continued
Question 5 continued
(Total for Question 5 is 8 marks)

Advertisement