1.

In the given graph, identify the shortest path having minimum cost to reach vertex E if A is the source vertex.(a) a-b-e(b) a-c-e(c) a-c-d-e(d) a-c-d-b-eThe question was posed to me during an internship interview.I'm obligated to ask this question of Shortest Path topic in portion Shortest Path of Data Structures & Algorithms II

Answer»

Correct ANSWER is (b) a-C-e

For explanation: The minimum cost REQUIRED to travel from vertex A to E is via vertex C

A to C, cost= 3

C to E, cost= 2

Hence the total cost is 5.



Discussion

No Comment Found

Related InterviewSolutions