D1: Graphs and minimum spanning trees – Edexcel IAL Decision Mathematics (WDM1)
10 questions · Clear filters
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
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
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)
Question text
5.
D
20
18
24
23
C
G
29
16
28
E
A
19
21
17
27
B
21
26
F
17
21
19
25
H
Figure 3
(a) Explain why it is impossible to draw a graph with eight vertices in which the vertex
orders are 1, 2, 2, 3, 3, 4, 4 and 6
(1)
Figure 3 shows the network T. The numbers on the arcs represent the distances, in km,
between the eight vertices, A, B, C, D, E, F, G and H.
(b) Determine whether or not A – C – D – E – C – B – F is an example of a path on T.
You must justify your answer.
(2)
(c) Use Prim’s algorithm, starting at A, to find the minimum spanning tree for T. You
must clearly state the order in which you select the arcs of the tree.
(3)
(d) Draw the minimum spanning tree using the vertices given in Diagram 1 in the
answer book.
(1)
The weight of arc CF is now increased to a value of x. The minimum spanning tree for
T is unique and includes the same arcs as those found in (c).
(e) Write down the smallest interval that must contain x.
(2)
(Total for Question 5 is 9 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
1.
Use the binary search algorithm to try to locate the name Hilbert in the following alphabetical list.
Clearly indicate how you chose your pivots and which part of the list is being rejected at each stage.
Descartes
Euler
Gauss
Hamilton
Lagrange
Noether
Poisson
Ramanujan
Stokes
Turing
(Total 4 marks)
2.
A
B
C
D
E
F
G
H
A
–
27
51
32
29
23
47
40
B
27
–
24
35
20
42
33
28
C
51
24
–
37
43
31
26
34
D
32
35
37
–
39
45
44
30
E
29
20
43
39
–
38
45
55
F
23
42
31
45
38
–
53
45
G
47
33
26
44
45
53
–
39
H
40
28
34
30
55
45
39
–
The table represents a network that shows the average journey time, 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) Draw the minimum spanning tree using the vertices given in Diagram 1 in the answer book.
(1)
(c) State the weight of the minimum spanning tree.
(1)
(Total 5 marks)
3.
A
1
A
1
B
2
B
2
C
3
C
3
4
4
D
D
E
E
5
5
F
6
F
6
Figure 1
Figure 2
Figure 1 shows the possible allocations of six workers, A, B, C, D, E and F, to six tasks, 1, 2, 3,
4, 5 and 6. Each task must be assigned to only one worker and each worker must be assigned to
exactly one task.
Figure 2 shows an initial matching.
(a) Starting from the given initial matching, use the maximum matching algorithm to find an
alternating path from A to 4. Hence find an improved matching. You should list the alternating
path you use, and state your improved matching.
(3)
(b) Explain why it is not possible to find a complete matching.
(1)
After training, task 1 is added to worker A’s possible allocations.
(c) Starting from the improved matching found in (a), use the maximum matching algorithm to
find a complete matching. You should list the alternating path you use, and state your complete
matching.
(3)
(Total 7 marks)
4.
23
18
27
9
25
10
12
30
24
The numbers in the list represent the weights, in kilograms, of nine suitcases. The suitcases are to
be transported in containers that will each hold a maximum weight of 45 kilograms.
(a) Calculate a lower bound for the number of containers that will be needed to transport the
suitcases.
(2)
(b) Use the first-fit bin packing algorithm to allocate the suitcases to the containers.
(2)
(c) Using the list provided, carry out a bubble sort to produce a list of the weights in descending
order. You need only give the state of the list after each complete pass.
(4)
(d) Use the first-fit decreasing bin packing algorithm to allocate the suitcases to the containers.
(2)
(e) Explain why it is not possible to transport the suitcases using fewer containers than the number
used in (d).
(1)
(Total 11 marks)
5.
B
C
13.2
8.9
2.4
A
D
11.5
5.3
6.5
5.5
F
2.7
E
G
4.9
10.2
1.2
12.5
J
3.1
1.9
I
H
6.4
10.5
K
Figure 3
[The total weight of the network is 106.7]
Figure 3 models a network of cycle tracks that have to be inspected. The number on each arc
represents the length, in km, of the corresponding track. Angela needs to travel along each cycle
track at least once and wishes to minimise the length of her inspection route. She must start and
finish at A.
(a) Use an appropriate algorithm to find the tracks that will need to be traversed twice. You should
make your method and working clear.
(5)
(b) Find a route of minimum length, starting and finishing at A. State the length of your route.
(2)
A new cycle track, AC, is under construction. It will be 15 km long. Angela will have to include
this new track in her inspection route.
(c) State the effect this new track will have on the total length of her route. Justify your answer.
(2)
(Total 9 marks)
6.
A
14
D
8
4
21
8
25
B
10
5
E
C
2x
4
H
17
12
F
4
9
x
6
G
Figure 4
Figure 4 represents a network of roads. The number on each arc represents the time taken, in
minutes, to drive along the corresponding road.
Stieg wishes to minimise the time spent driving from his home at A, to his office at H. The amount
of traffic