D1: Shortest paths (Dijkstra's and Floyd's algorithms) – Edexcel IAL Decision Mathematics (WDM1)
1 question · Clear filters
0 / 0Answer a question to start your score.
WDM1 D1 · Oct/Nov 2021 · Question 1Oct/Nov 2021D110 marks
Loading question…
Question text
1.
(a) Explain what is meant by the term ‘path’.
(2)
E
B
13
8
5
23
5
16
F
H
A
15
9
5
C
10
17
7
27
19
9
6
J
15
G
D
Figure 1
Figure 1 represents a network of roads. The number on each arc represents the length, in km, of the
corresponding road. Piatrice wishes to travel from A to J.
(b) Use Dijkstra’s algorithm to find the shortest path Piatrice could take from A to J.
State your path and its length.
(6)
Piatrice needs to return from J to A via G.
(c) Find the shortest path Piatrice could take from J to A via G and state its length.
(2)
(Total 10 marks)