Home /
Expert Answers /
Other Math /
please-explain-your-method-and-your-reasoning-1-calculate-the-shortest-distance-between-vertices-pa622
(Solved): Please explain your method and your reasoning
1. Calculate the shortest distance between vertices ...
Please explain your method and your reasoning
1. Calculate the shortest distance between vertices A and F in the graph below. What is the key data structure used to decide the order in which vertices are visited?
we have to find the shortest distance to reach F vertex from A vertex,so we have to use dijkstra's method to to find shortest path,the logical aproch is to sind thati,eif { d(u)+c(u,v) d(v)= d(u)+c(u,v)d(u)=distance to vertex,c(u,v)=cost of the edgein the above graph vertex A connected to two vertex named C,Bapplying in the above formula,and first we have to assume that the connected vertex's distance is infinite.so now finding distance from A to B,ifit was satisfied so,