Consider the following graph. If b is the source vertex, what is the minimum cost to reach f vertex?

Linh Chi

New member
Consider the following graph.
If b is the source vertex, what is the minimum cost to reach f vertex?
A. 8
B. 9
C. 4
D. 6
 
Answer: d
Explanation: The minimum cost to reach f vertex from b vertex is 6 by having vertices g and e as intermediates.
b to g, cost is 1
g to e, cost is 4
e to f, cost is 1
hence total cost 1+4+1=6.
 

Tìm kiếm

Back
Top