logo

Question detail

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?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Optimisation algorithms

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?.

  1. A.4
  2. B.5
  3. C.7
  4. D.8

Model answer

What a good answer should say

  • 4

Explanation

Why this works

The shortest route is A to C to B to D, with total distance 1 + 2 + 1 = 4.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.