Use the following directed graph.
A: to B is 4 & to F is2
B: to A is 1 & C is 3 & to D is4
C: to A is 6 & to B is 3 & to D is7
D: to A is 6 & to E is 2
E: to D is 5
F: to D is 2 & to E is 3
a) Do Dijkstra’s shortest path algorithm starting with Cending with E.Trace the algorithm using the sameformat as I use. Replace ?’s and give the tableper step.
Initially:
Tree has: C
Fringe (F*) has: A6, B3 andD7
DistTo of these are initialized to be the edge weightsfrom C.
DistTo CandidateEdge
T* C 0 start
F* A6 fromC
F* B3 fromC
F* D7 fromC
Einf
Finf
Step1:
Pick B