D1: Graphs and minimum spanning trees – Edexcel IAL Decision Mathematics (WDM1)
23 questions · page 1 of 2 · Clear filters
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
8.
M
Q
x + 8
2x + 1
28
22
4x + 4
27
32
N
L
R
T
25
4x + 8
29
25
26
3x + 1
P
S
2x – 1
Figure 4
[The total length of the network is 16x + 235]
Figure 4 shows a network of cables between eight computer stations, L, M, N, P, Q, R,
S and T. The number on each arc is the distance, in metres, between the corresponding
nodes, where x is an unknown value less than 12
(a) State whether LMNPRST is an example of a path, giving reasons for your answer.
(2)
An engineer must check every cable for damage. She must find a route of minimum
length, which travels along every cable at least once, starting at L and finishing at T.
Given that each of the two possible routes repeats exactly 3 arcs,
(b) determine the range of possible values of x
(5)
Given that the two possible routes have the same length,
(c) calculate the length of the route, justifying your answer.
(3)
(Total for Question 8 is 10 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
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
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
2.
I
B
17
8
7
7
A
6
4
J
21
15
22
9
D
12
12
12
C
5
8
H
9
8
10
28
F
17
14
16
K
E
16
25
G
Figure 1
Figure 1 shows a network of paths between eleven viewing points in a bird sanctuary.
The number on each arc represents the time taken, in minutes, to walk between the
viewing points.
Use Dijkstra’s algorithm to determine the quickest route from C to K. You should state
the route and the quickest time.
(Total for Question 2 is 6 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)
Question text
6.
A
B
C
D
E
F
G
H
A
‑
24
19
28
25
32
29
31
B
24
‑
22
31
25
23
37
41
C
19
22
‑
18
21
41
31
35
D
28
31
18
‑
24
21
27
26
E
25
25
21
24
‑
17
31
25
F
32
23
41
21
17
‑
26
31
G
29
37
31
27
31
26
‑
24
H
31
41
35
26
25
31
24
‑
The table shows the least distances, in km, between eight towns. Imani wants to visit all
eight towns. She needs to find a route which minimises the distance travelled, starting
and finishing at A.
(a) Show that there are two nearest neighbour routes starting at A. You must make your
method clear and state the routes and their lengths.
(4)
(b) State, giving a reason, which route from part (a) gives the better upper bound for the
length of Imani’s route.
(1)
(c) By deleting A and all of its arcs, use Prim’s algorithm, starting at B, to obtain a
lower bound for the length of Imani’s route. You must show your working.
(4)
A second lower bound of 172 km is obtained by deleting H.
(d) Write down the smallest interval that must contain the optimal length for
Imani’s route.
(1)
(Total for Question 6 is 10 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
C
E
10
4
7
J
3
8
4
4
13
A
10
F
7
8
5
4
4
H
D
G
9
Figure 2
[The total weight of the network is 100]
Figure 2 represents a network of pipes in a building. The number on each arc represents
the length, in metres, of the corresponding pipe.
(a) Use Dijkstra’s algorithm to find the shortest path from A to J. State your path and
its length.
(6)
On a particular day Kim needs to check each pipe. A route of minimum length, which
traverses each pipe at least once and starts and finishes at A, needs to be found.
(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) Write down a possible route, giving its length.
(2)
All the pipes directly attached to B are removed. Kim needs to check all the remaining
pipes and may now start at any vertex and finish at any vertex. A route is required that
excludes all those pipes directly attached to B.
(d) State all possible combinations of starting and finishing points so that the length of
Kim’s route is minimised. State the length of Kim’s route.
(3)
(Total for Question 3 is 15 marks)
Question text
2:
P
Q
R
S
T
U
V
P
–
105
90
195
270
95
155
Q
105
–
195
295
370
190
255
R
90
195
–
110
185
180
245
S
195
295
110
–
75
115
170
T
270
370
185
75
–
180
245
U
95
190
180
115
180
–
65
V
155
255
245
170
245
65
–
The table shows the least distances, in metres, between seven signposts, P, Q, R, S, T, U
and V.
Aisha must visit each signpost to check that it has not been damaged. She needs to find
a route which minimises the distance travelled, starting and finishing at P.
(a) Use Prim’s algorithm, starting at P, to obtain a minimum spanning tree for the
network. You must clearly show the order in which you select arcs.
(2)
(b) Use the answer to part (a) to obtain an initial upper bound for the length of
Aisha’s route.
(2)
(c) Use the nearest neighbour algorithm, starting at P, to find a second upper bound for
the length of Aisha’s route. You should state both the route and its length.
(3)
(d) By deleting T and all of its arcs, and using the answer to part (a), obtain a lower
bound for the length of Aisha’s route.
(2)
(Total for Question 2 is 9 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
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
4.
J
31
15
A
B
19
36
15
65
7
24
E
84
23
H
39
C
13
56
10
G
40
17
D
F
Figure 3
[The total weight of the network is 494]
Direct roads between nine factories, A, B, C, D, E, F, G, H and J, are represented in
Figure 3.
The number on each arc represents the lengths, in kilometres, of the corresponding road.
The table below shows the shortest distances, in kilometres, between the nine factories.
A
B
C
D
E
F
G
H
J
A
‑
15
7
25
15
42
64
51
46
B
15
‑
22
40
30
57
49
36
31
C
7
22
‑
32
22
49
71
58
53
D
25
40
32
‑
10
17
57
70
71
E
15
30
22
10
‑
27
67
66
61
F
42
57
49
17
27
‑
40
53
72
G
64
49
71
57
67
40
‑
13
32
H
51
36
58
70
66
53
13
‑
19
J
46
31
53
71
61
72
32
19
‑
Table of shortest distances
(a) Starting at A, use Prim’s algorithm to find a minimum spanning tree for the table of
shortest distances. You must state the order in which you select the arcs of your tree.
(3)
(b) State the weight of the minimum spanning tree.
(1)
A route is needed that minimises the total distance to traverse each road at least once.
The route must start at E and finish at F.
(c) Determine the length of this route. You must give a reason for your answer.
(2)
It is now decided to start the route at C and finish the route at A. The route must include
every road at least once and must still minimise the total distance travelled.
(d) By considering the pairings of all relevant nodes, find the roads that need to be
traversed twice.
(4)
Naoko needs to visit all nine factories, starting and finishing at the same factory, and
wishes to minimise the total distance travelled.
(e) Starting at B, use the nearest neighbour algorithm on the table of shortest distances
to find an upper bound for the length of Naoko’s route. Write down the cycle,
obtained from the table of shortest distances, which gives this upper bound.
(2)
(f) By deleting C and all of its arcs, use the values in the table of shortest distances to
find a lower bound for the length of Naoko’s route.
(2)
(Total for Question 4 is 14 marks)
Question text
2.
A
B
C
D
E
F
G
H
A
–
34
29
35
28
30
37
38
B
34
–
32
28
39
40
32
39
C
29
32
–
27
33
39
34
31
D
35
28
27
–
35
38
41
36
E
28
39
33
35
–
36
33
40
F
30
40
39
38
36
–
34
39
G
37
32
34
41
33
34
–
35
H
38
39
31
36
40
39
35
–
Table 1
Table 1 represents a network that shows the travel times, in minutes, 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
network. 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
33
37
41
35
40
28
42
x
Table 2
Table 2 shows the travel times, in minutes, between town J and towns A, B, C, D, E, F,
G and H.
The journey time between towns E and J is x minutes where x > 28
A salesperson needs to visit all of the nine towns, starting and finishing at J.
The salesperson wishes to minimise the total time spent travelling.
(c) Starting at J, use the nearest neighbour algorithm to find an upper bound for
the duration of the salesperson’s route. Write down the route that gives this
upper bound.
(2)
Using the nearest neighbour algorithm, starting at E, an upper bound of 291 minutes for
the salesperson’s route was found.
(d) State the best upper bound that can be obtained by using this information and your
answer to (c). Give the reason for your answer.
(1)
Starting by deleting J and all of its arcs, a lower bound of 264 minutes for the duration
of the salesperson’s route was found.
(e) Determine the value of x. You must make your method and working clear.
(3)
(Total for Question 2 is 10 marks)