D1: Shortest paths (Dijkstra's and Floyd's algorithms) – Edexcel IAL Decision Mathematics (WDM1)
4 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
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.
B
F
147
203
84
91
70
77
56
E
182
84
133
A
C
J
G
98
84
56
175
42
224
154
D
H
Figure 1
[The total weight of the network is 1960 m]
The network shown in Figure 1 represents the paths between nine attractions in a
theme park.
The number on each edge is the length, in metres, of the corresponding path.
(a) (i) Use Dijkstra’s algorithm to find the shortest path from A to J.
(ii) State the length of the shortest path from A to J in metres.
(6)
Sarita needs to inspect the paths between the attractions. She must travel along each
path at least once.
Sarita decides to start and finish her inspection route at A. She wishes to minimise the
length of her route.
(b) By considering the pairings of all relevant nodes, find the length of Sarita’s route.
(4)
Sarita now decides to start her inspection route at A, but finish at a different attraction.
She must still minimise the length of her route and travel along each path at least once.
(c) (i) Determine where Sarita should finish her route. You must justify your answer.
(ii) Calculate the difference between the lengths of the two inspection routes.
(3)
(Total for Question 2 is 13 marks)
Question text
2.
E
5
8
H
C
13
17
3
A
1
0
B
11
4
30
10
8
J
G
5
D
16
8
1
3
21
F
30
Key:
Order of
Final
Vertex
labelling
value
Working values
Shortest path from A to J:
Length of shortest path from A to J:
Question 2 continued
E
8
5
H
C
13
3
17
A
4
11
B
30
10
8
8
G
J
5
16
3
D
1
21
30
F
Figure 1
[The total weight of the network is 193]
Question 2 continued
Question 2 continued
(Total for Question 2 is 16 marks)