1.

In the given graph, how many intermediate vertices are required to travel from node a to node e at a minimum cost?(a) 2(b) 0(c) 1(d) 3The question was asked in exam.I need to ask this question from Shortest Path in division Shortest Path of Data Structures & Algorithms II

Answer»

Right choice is (C) 1

Explanation: The MINIMUM cost to TRAVEL from node a to node e is 1 by passing VIA nodes B and c.

a-b, cost 5

b-c, cost 3

c-e, cost -7

Hence the total cost is 1.



Discussion

No Comment Found

Related InterviewSolutions