Question discussion

Consider the following weighted diagraph. What is the shortest distance between V1 to V5?

358678Medium DSSSB TGT Computer Science 0 replies 0 views
0
Consider the following weighted diagraph. What is the shortest distance between V1 to V5?

Figure for question 174

  • A120
  • B130
  • C140
  • D110
Correct answer: A

Explanation

The direct edge V1 → V5 costs 120. The path V1 → V4 → V5 costs 50 + 80 = 130, and V1 → V2 → V3 → V5 costs 30 + 70 + 30 = 130. So the shortest distance is 120.

Discussion 0

Nobody has replied yet. Start the discussion!