Decision 1: Algorithms, graphs, shortest paths, route inspection and TSP – Edexcel A Level Further Mathematics (9FM0)
43 questions · page 1 of 3 · Clear filters
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
Question text
2. The vertical height, h m, above horizontal ground, of a passenger on a fairground ride,
t seconds after the ride starts, where t 5, is modelled by the differential equation
d 2 h
d h
t 2
2 t
2 h t 3
(I)
t
d t
2
d
(a) Given that t = e x , show that
d h d h
(i) t
=
d t
d x
d 2 h d 2 h d h
(ii) t
2
2
d x
d t 2
d x
(4)
(b) Hence show that the transformation t = e x transforms equation (I) into the equation
d h
d 2 h
2 h e 3 x
3
d x
d x
2
(1)
(c) Hence show that
1 3
h = At + Bt 2 +
t
2
where A and B are constants.
(6)
d h
= –1
Given that when t = 1, h = 2.5 and when t = 2,
d t
(d) determine the height of the passenger above the ground 5 seconds after the start of
the ride.
(5)
Question 2 continued
Question 2 continued
Question 2 continued
(Total for Question 2 is 16 marks)
Question text
7. With respect to a fixed origin O the point A has coordinates (3, 6, 5) and the line l
has equation
( r – (12i + 30j + 39k) ) × (7i + 13j + 24k) = 0
The points B and C lie on l such that AB = AC = 15
Given that A does not lie on l and that the x coordinate of B is negative,
(a) determine the coordinates of B and the coordinates of C
(4)
(b) Hence determine a Cartesian equation of the plane containing the points A, B and C
(3)
The point D has coordinates (–2, 1, α), where α is a constant.
Given that the volume of the tetrahedron ABCD is 147
(c) determine the possible values of α
(4)
Given that α > 0
(d) determine the shortest distance between the line l and the line passing through the
points A and D, giving your answer to 2 significant figures.
(4)
Question 7 continued
Question 7 continued
Question 7 continued
Question 7 continued
(Total for Question 7 is 15 marks)
Question text
1.
A
E
B
D
C
Figure 1
Figure 1 shows the graph G.
(a) State whether G is Eulerian, semi-Eulerian, or neither, giving a reason for
your answer.
(1)
(b) Write down an example of a Hamiltonian cycle on G.
(1)
(c) State whether or not G is planar, justifying your answer.
(1)
(d) State the number of arcs that would need to be added to G to make the graph K 5
(1)
A
E
5
10
7
4
8
B
D
15
3
2
C
Figure 2
Direct roads between five villages, A, B, C, D and E, are represented in Figure 2. The
weight on each arc is the time, in minutes, required to travel along the corresponding
road. Floyd’s algorithm is to be used to find the complete network of shortest times
between the five villages.
(e) For the network represented in Figure 2, complete the initial time matrix in the
answer book.
(1)
The time matrix after four iterations of Floyd’s algorithm is shown in Table 1.
A
B
C
D
E
A
–
10
13
15
5
B
10
–
3
5
4
C
13
3
–
2
7
D
15
5
2
–
7
E
5
4
7
7
–
Table 1
(f) Perform the final iteration of Floyd’s algorithm that follows from Table 1, showing
the time matrix for this iteration.
(2)
(Total for Question 1 is 7 marks)