Texts: Algorithms & Complexity Lab: Spanning Tree
For the given graph, perform: Dijkstra's algorithm, Kruskal's algorithm, Prim's algorithm for finding the spanning tree of the graph. Take node A as the starting node if necessary.
B
3
1
2
D
3
G
1. Dijkstra's algorithm
Fill in the table showing the course of Dijkstra's algorithm for the given graph:
1.1 The course of Dijkstra's algorithm
Node Cost Predecessor
A 0
B -
C -
D -
E -
F -
G -
Note: The table is incomplete and will be filled in as the algorithm progresses.