Exam-style question
Try this first
A weighted graph has edges A-B = 4, A-C = 1, C-B = 2, B-D = 1 and C-D = 7. What is the shortest distance from A to D?.
- A.4
- B.5
- C.7
- D.8
Answer and explanation
Concise answer
8
Why this is correct
The shortest route is A to C to B to D, with total distance 1 + 2 + 1 = 4.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
