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

53 questions · page 4 of 4

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
46
9FM0 Option paper 3 D · Oct/Nov 2020 · Section 1, Question 6Oct/Nov 2020Option paper 3 D11 marks
Loading question…
Question text

6.
E
B
x
19
15
24
45
42
F
A
C
21
24
65
31
34
D
y
G
Figure 4
[The total weight of the network is 320 + x + y]
(a) State, with justification, whether the graph in Figure 4 is Eulerian, semi-Eulerian or neither.
(2)
The weights on the arcs in Figure 4 represent distances. The weight on arc EF is x where
12 < x < 26 and the weight on arc DG is y where 0 < y < 10
An inspection route of minimum length that traverses each arc at least once is found.
The inspection route starts and finishes at A and has a length of 409
It is also given that the length of the shortest route from F to G via A is 140
(b) Using appropriate algorithms, find the value of x and the value of y.
(9)
(Total for Question 6 is 11 marks)

47
9FM0 Option paper 3 D · Oct/Nov 2020 · Section 2, Question 3Oct/Nov 2020Option paper 3 D9 marks
Loading question…
Question text

3. (a)
Initial time matrix
Initial route matrix
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
(b)
Time matrix
Route matrix
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
Time matrix
Route matrix
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
If you make an error there are spare copies of these matrices on Page 9.
Question 3 continued
Question 3 continued
Question 3 continued
Only use these matrices if you have made an error in your working.
(a)
Spare copy of initial time matrix
Spare copy of initial route matrix
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
(b)
Spare copy of time matrix
Spare copy of route matrix
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
Spare copy of time matrix
Spare copy of route matrix
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
(Total for Question 3 is 9 marks)

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

1.
2.1
1.7
3.0
1.9
3.2
1.2
3.3
1.4
1.5
0.2
(a) Use the first-fit bin packing algorithm to determine how the numbers listed above can
be packed into bins of size 5
(2)
The list of numbers is now to be sorted into descending order.
(b) Perform a quick sort on the original list to obtain the sorted list. You should show the
result of each pass and identify your pivots clearly.
(4)
For a list of n numbers, the quick sort algorithm has, on average, order n log n.
Given that it takes 2.32 seconds to run the algorithm when n = 450
(c) calculate approximately how long it will take, to the nearest tenth of a second, to run
the algorithm when n = 11 250. You should make your method and working clear.
(2)
(Total for Question 1 is 8 marks)

Advertisement
49
9FM0 Option paper 3 D · Jun 2019 · Section 1, Question 2May/June 2019Option paper 3 D14 marks
Loading question…
Question text

2.
D
42
B
E
15
38
10
17
C
75
10
A
14
J
7
G
20
12
23
42
6
F
39
H
Figure 1
[The total weight of the network is 370]
Figure 1 represents a network of corridors in a building. The number on each arc
represents the length, in metres, of the corresponding corridor.
(a) Use Dijkstra’s algorithm to find the shortest path from A to D, stating the path and
its length.
(6)
On a particular day, Naasir needs to check the paintwork along each corridor. Naasir
must find a route of minimum length. It must traverse each corridor at least once,
starting at B and finishing at G.
(b) Use an appropriate algorithm to find the arcs that will need to be traversed twice.
You must make your method and working clear.
(4)
(c) Find the length of Naasir’s route.
(1)
On a different day, all the corridors that start or finish at B are closed for redecorating.
Naasir needs to check all the remaining corridors and may now start at any vertex and
finish at any vertex. A route is required that excludes all those corridors that start or
finish at B.
(d) (i) Determine the possible starting and finishing points so that the length of Naasir’s
route is minimised. You must give reasons for your answer.
(ii) Find the length of Naasir’s new route.
(3)
(Total for Question 2 is 14 marks)

50
9FM0 Option paper 3 D · Jun 2019 · Section 1, Question 3May/June 2019Option paper 3 D14 marks
Loading question…
Question text

3.
B
15
5
7
C
A
4
18
D
9
3
3
E
Figure 2
The network in Figure 2 shows the direct roads linking five villages, A, B, C, D and E.
The number on each arc represents the length, in miles, of the corresponding road.
The roads from A to E and from C to B are one-way, as indicated by the arrows.
(a) Complete the initial distance and route tables for the network provided in the answer book.
(2)
(b) Perform the first three iterations of Floyd’s algorithm. You should show the distance
table and the route table after each of the three iterations.
(5)
After five iterations of Floyd’s algorithm the final distance table and partially completed
final route table are shown below.
Distance table
Route table
A
B
C
D
E
A
B
C
D
E
A
A
–
12
7
6
3
A
B
B
15
–
22
21
18
A
B
C
C
7
5
–
4
7
A
B
C
D
D
11
9
4
–
3
C
C
C
D
E
E
14
12
7
3
–
D
D
D
D
E
(c) (i) Explain how the partially completed final route table can be used to find the shortest
route from E to A.
(ii) State this route.
(3)
Mabintou decides to use the distance table to try to find the shortest cycle that passes through each
vertex. Starting at D, she applies the nearest neighbour algorithm to the final distance table.
(d) (i) State the cycle obtained using the nearest neighbour algorithm.
(ii) State the length of this cycle.
(iii) Interpret the cycle in terms of the actual villages visited.
(iv) Prove that Mabintou’s cycle is not optimal.
(4)
(Total for Question 3 is 14 marks)

51
9FM0 Option paper 3 D · Jun 2019 · Section 2, Question 2May/June 2019Option paper 3 D14 marks
Loading question…
Question text

2.
Length of shortest path from A to D:
Shortest path from A to D:
6
J
10
H
14
23
17
D
39
G
10
42
E
12
7
15
20
C
F
B
75
42
38
value
Final
Working values
labelling
Order of
A
Vertex
Key:
Question 2 continued
D
42
B
E
15
38
10
17
C
75
10
A
14
J
7
G
20
12
23
42
6
F
39
H
Figure 1
Question 2 continued
Question 2 continued
(Total for Question 2 is 14 marks)

52
9FM0 Option paper 3 D · Jun 2019 · Section 2, Question 3May/June 2019Option paper 3 D14 marks
Loading question…
Question text

3. (a)
Initial distance table
Initial route table
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
(b) 1st iteration
Distance table
Route table
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
2nd iteration
Distance table
Route table
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
3rd iteration
Distance table
Route table
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
Turn to page 11 for spare copies of these tables if you need to correct your work.
Question 3 continued
Question 3 continued
Question 3 continued
Only use these tables if you need to correct your work.
(a)
Initial distance table
Initial route table
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
(b) 1st iteration
Distance table
Route table
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
2nd iteration
Distance table
Route table
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
3rd iteration
Distance table
Route table
A
B
C
D
E
A
B
C
D
E
A
A
B
B
C
C
D
D
E
E
(Total for Question 3 is 14 marks)

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

3.
–24
32
A
G
D
18
29
28
13
20
19
24
E
H
B
T
S
x
19
–24
27
–17
–25
24
17
14
F
I
C
13
–30
J
Figure 1
In Figure 1 the weight of arc SB is denoted by x where x . 0
(a) Explain why Dijkstra’s algorithm cannot be used on the directed network in Figure 1.
(1)
It is given that the minimum weight route from S to T passes through B.
(b) Use dynamic programming to find
(i) the range of possible values of x
(ii) the minimum weight route from S to T.
(12)
(Total for Question 3 is 13 marks)

Advertisement