D1: Graphs and minimum spanning trees – Edexcel IAL Decision Mathematics (WDM1)
Quick quiz: 10 random questions from this topic. Answer them all, then open the Summary.
Question text
3.
H
F
40
C
20
33
14
17
24
9
48
5
12
E
G
B
22
I
15
81
34
D
51
18
J
46
A
Figure 2
[The total length of the network is 489]
Figure 2 represents a network of cycle paths between ten locations, A, B, C. D, E, F,
G, H, I and J. The number on each arc is the time, in minutes, to cycle between the
corresponding locations.
(a) State, with a reason, whether the network is Eulerian, semi‑Eulerian or neither.
(1)
(b) (i) Use Dijkstra’s algorithm to determine the shortest time to cycle from A to H
(ii) State the quickest cycle route from A to H
(6)
The paths from A to B, A to J and B to C become blocked and cannot be used.
(c) Determine the increase in the shortest time to cycle from A to H. You must justify
your answer.
(2)
(Total for Question 3 is 9 marks)
Question text
1. The following list of ten numbers is to be sorted into ascending order.
18 13 21 17 23 14 20 15 16 19
(a) Use bubble sort to sort the list into ascending order. You should only show the result
of each pass.
(3)
(b)
B
E
17
14
13
19
15
21
D
A
20
18
16
23
C
F
Figure 1
The list of ten numbers in part (a) represents the lengths of cables, in metres, that
connect six workstations, as shown in Figure 1.
The workstations must be connected using the minimum amount of cabling.
(i) Use Kruskal’s algorithm to find the minimum spanning tree for the network. You
must clearly show the order in which the arcs are selected.
(ii) State the weight of the minimum spanning tree.
(4)
(Total for Question 1 is 7 marks)
Question text
1.
The table below shows the distances, in km, between six data collection points, A, B, C, D, E and F.
A
B
C
D
E
F
A
–
35
42
55
48
50
B
–
35
40
49
52
31
C
–
42
40
47
53
49
D
–
55
49
47
39
44
E
–
48
52
53
39
52
F
–
50
31
49
44
52
Ferhana must visit each data collection point. She will start and finish at A and wishes to minimise
the total distance she travels.
(a) Starting at A, use the nearest neighbour algorithm to obtain an upper bound for the distance
Ferhana must travel. Make your method clear.
(2)
(b) Starting by deleting B, and all of its arcs, find a lower bound for the distance Ferhana must
travel. Make your calculation clear.
(3)
(Total 5 marks)
2.
C
19
B
32
A
29
25
34
30
15
22
E
F
D
30
32
13
11
17
23
18
J
H
G
20
Figure 1
(a) Define the terms
(i) tree,
(ii) minimum spanning tree.
(3)
(b) Use Kruskal’s algorithm to find the minimum spanning tree for the network shown in Figure 1.
You must clearly show the order in which you consider the edges. For each edge, state whether
or not you are including it in the minimum spanning tree.
(3)
(c) Draw the minimum spanning tree using the vertices given in Diagram 1 in the answer book and
state the weight of the minimum spanning tree.
(2)
(Total 8 marks)
3.
4
24
D(x)
10
24
E(7)
J(9)
A(4)
I(7)
33
7
0
F(5)
K(10)
z
B(5)
33
0
17
y
L(11)
G(9)
C(7)
28
17
7
33
M(9)
H(10)
17
7
Figure 2
The network in Figure 2 shows the activities that need to be undertaken by a company to complete
a project. Each activity is represented by an arc and the duration, in days, is shown in brackets.
Each activity requires one worker. The early event times and late event times are shown at each
vertex.
The total float on activity D is twice the total float on activity E.
(a) Find the values of x, y and z.
(3)
(b) Draw a cascade chart for this project on Grid 1 in the answer book.
(4)
(c) Use your cascade chart to determine a lower bound for the minimum number of workers
needed to complete the project in the shortest possible time. You must make specific reference
to time and activities. (You do not need to provide a schedule of the activities.)
(2)
(Total 9 marks)
Question text
3.
C
61
E
H
9
18
10
40
7
13
A
52
30
J
D
51
38
8
27
20
59
B
13
34
9
F
G
5
Figure 2
Figure 2 models a network of tracks between nine ranger stations,
A, B, C, D, E, F, G, H and J, in a forest. The number on each edge gives the time, in
minutes, to travel along the corresponding track. The forest ranger wishes to travel from
A to J as quickly as possible.
(a) Use Dijkstra’s algorithm to find the shortest time needed to travel from A to J.
State the quickest route.
(6)
(b) Hence determine the weight of the minimum spanning tree for the network given in
Figure 2. Give a reason for your answer.
You do not need to find the minimum spanning tree.
(2)
(Total for Question 3 is 8 marks)
Question text
6.
y
35
30
25
20
15
10
5
0
35 x
0
5
10
15
20
25
30
Question 6 continued
Question 6 continued
Question 6 continued
Use this graph only if you need to redraw your answer to part (b).
y
35
30
25
20
15
10
5
0
35 x
0
5
10
15
20
25
30
(Total for Question 6 is 9 marks)
Question text
7.
A
B
C
D
E
F
G
H
A
–
43
38
52
44
39
57
48
B
43
–
41
39
50
46
36
43
C
38
41
–
48
53
44
51
45
D
52
39
48
–
43
52
47
49
E
44
50
53
43
–
50
42
46
F
39
46
44
52
50
–
48
54
G
57
36
51
47
42
48
–
42
H
48
43
45
49
46
54
42
–
The table above shows the shortest distance, in miles, between eight towns, A, B, C, D,
E, F, G and H.
A delivery driver must visit each town at least once and return to the starting point. The
driver wishes to minimise the total distance travelled.
(a) (i) Using Prim’s algorithm, starting at D, obtain a minimum spanning tree for
the network. You must clearly state the order in which you select the arcs of
your tree.
(ii) State the weight of the tree.
(3)
(b) Draw the minimum spanning tree on the diagram in the answer book.
(1)
(c) Use your answer to part (a) to determine an initial upper bound for the length of the
delivery driver’s route.
(1)
(d) Use one shortcut, starting from B, to obtain an improved upper bound with a
length less than 500 miles, stating the shortcut used and the length of the improved
upper bound.
(2)
(e) Show that there are two nearest neighbour routes starting from A, stating both routes
and their lengths.
(3)
Question 7 continued
(f) By deleting H and all of its arcs, calculate a lower bound for the length of the
delivery driver’s route.
(2)
A second lower bound of 321 miles is calculated by deleting A and all of its arcs.
(g) Write down the smallest interval that must contain the length of the delivery
driver’s route.
(1)
(Total for Question 7 is 13 marks)
Question text
6.
A
B
C
D
E
F
G
H
J
K
A
‑
16
26
19
22
34
30
41
45
36
B
16
‑
10
15
38
33
40
25
29
20
C
26
10
‑
12
39
30
31
15
19
10
D
19
15
12
‑
33
18
25
28
31
22
E
22
38
39
33
‑
15
8
33
20
29
F
34
33
30
18
15
‑
7
24
19
28
G
30
40
31
25
8
7
‑
25
12
21
H
41
25
15
28
33
24
25
‑
13
5
J
45
29
19
31
20
19
12
13
‑
9
K
36
20
10
22
29
28
21
5
9
‑
(a) Explain the difference between the classical Travelling Salesman Problem and the
practical Travelling Salesman Problem.
(2)
The table shows the shortest distances, in miles, between ten towns, A, B, C, D, E, F, G,
H, J and K.
Kenzo must visit each town at least once, starting and finishing at A. Kenzo wishes to
minimise the total distance travelled.
(b) Use Prim’s algorithm, starting at A, to obtain a minimum spanning tree for the
network. You must clearly state the order in which you select the arcs of your tree.
(3)
(c) Use your answer to part (b) to determine an initial upper bound for the length of
Kenzo’s route.
(1)
(d) Use the nearest neighbour algorithm, starting at A, to find another upper bound for
the length of Kenzo’s route. Write down the route that gives this upper bound.
(3)
Using the answer to part (d), and given that the length of the nearest neighbour route
starting at G is 145 miles,
(e) state which of these two nearest neighbour routes gives the better upper bound.
Give a reason for your answer.
(1)
(f) By deleting A and all of its arcs, obtain a lower bound for the length of
Kenzo’s route.
(2)
(g) State the smallest interval that must contain the optimal length of Kenzo’s route.
(1)
(Total for Question 6 is 13 marks)
Question text
7.
A
B
C
D
E
F
G
H
A
–
38
37
37
42
41
27
x
B
38
–
26
32
33
38
37
34
C
37
26
–
39
38
39
30
39
D
32
39
–
37
36
29
36
x
E
37
33
38
37
–
32
33
30
F
42
38
39
36
32
–
31
28
G
41
37
30
29
33
31
–
33
H
27
34
39
36
30
28
33
–
The network represented by the table shows the least distances, in km, between eight
museums, A, B, C, D, E, F, G and H.
A tourist wants to visit each museum at least once, starting and finishing at A. The
tourist wishes to minimise the total distance travelled. The shortest distance between A
and D is x km where 32 x 35
(a) Using Prim’s algorithm, starting at A, obtain a minimum spanning tree for the
network. You must clearly state the order in which you select the arcs of your tree.
(3)
(b) Use your answer to (a) to determine an initial upper bound for the length of the
tourist’s route.
(1)
(c) Starting at A, use the nearest neighbour algorithm to find another upper bound for
the length of the tourist’s route. Write down the route that gives this upper bound.
(2)
The nearest neighbour algorithm starting at E gives a route of
E – H – A – D – G – C – B – F – E
(d) State which of these two nearest neighbour routes gives the better upper bound.
Give reasons for your answer.
(2)
Starting by deleting A, and all of its arcs, a lower bound of 235 km for the length of the
route is found.
(e) Determine the smallest interval that must contain the optimal length of the tourist’s
route. You must make your method and working clear.
(4)
(Total for Question 7 is 12 marks)
Question text
2.
D
G
26
32
25
27
23
I
C
F
18
A
33
25
31
29
22
20
30
24
H
28
27
B
E
Figure 1
Figure 1 represents nine buildings, A, B, C, D, E, F, G, H and I, recently bought by
Newberry Enterprises. The company wishes to connect the alarm systems between
the buildings to form a single network. The number on each arc represents the cost,
in pounds, of connecting the alarm systems between the buildings.
(a) Use Prim’s algorithm, starting at A, to find the minimum spanning tree for this
network. You must list the arcs that form your tree in the order that you select them.
(3)
(b) State the minimum cost of connecting the alarm systems in the nine buildings.
(1)
It is discovered that some alarm systems are already connected.
There are connections along BC and EF.
Since these already exist, it is decided to use these arcs as part of the spanning tree.
(c) Use Kruskal’s algorithm to find the minimum spanning tree that includes
arcs BC and EF. You must list the arcs in the order that you consider them.
In each case, state whether you are adding the arc to your spanning tree.
(3)
Since arcs BC and EF already exist, there is no cost for these connections.
(d) State the new minimum cost of connecting the nine buildings.
(1)
(Total for Question 2 is 8 marks)
Question text
3.
B
24
20
C
A
42
23
27
26
J
22
H
D
31
28
35
G
E
21
24
F
(Total weight 323 metres)
Figure 2
Figure 2 represents a network connecting nine locations. The number on each arc is the
distance in metres between the corresponding locations.
(i) (a) Explain how Kruskal’s algorithm can be adapted to obtain a spanning tree of
least weight that contains a specific arc.
(1)
Using the adaptation of Kruskal’s algorithm from part (i)(a) on the network in
Figure 2,
(b) find the spanning tree of least weight that includes arc BJ.
You must show your working and clearly state the order in which arcs are added.
(3)
(c) State the weight of the spanning tree found in part (i)(b).
(1)
(ii) An engineer needs to inspect the network in Figure 2. Her route must start and
finish at A. She must travel along each arc at least once, minimising the length of
her route.
(a) Determine the length of the engineer’s route. You must make your method clear
and state the arcs which need to be repeated.
(5)
On another day the engineer decides to start her route at F and end at J. She must
travel along each arc at least once, minimising the length of her route.
(b) Determine how much shorter this route is than the route obtained in part (ii)(a).
You must make your working clear.
(3)
(Total for Question 3 is 13 marks)