Professional Documents
Culture Documents
Ca2 Qps
Ca2 Qps
4.
Graph G:
Apply Prim’s minimum spanning tree algorithm to the graph G. Consider A as the starting
vertex.
Graph X:
Implement Dijkstra’s shortest path algorithm to the graph X with source vertex as A.
6. Derive a shortest path table to the above graph X with Dijkstra’s algorithm with source
vertex as D
7. Consider a binary search tree T represented by the array, where the nodes are labeled by
the integer i and 1≤ i ≤10.
10. Graph G:
Apply Prim’s minimum spanning tree algorithm to the graph G. Consider D as the starting
vertex.
11. Apply Kruskal’s minimum spanning tree algorithm to the graph G
12.
Graph X:
Implement Dijkstra’s shortest path algorithm to the graph X with source vertex as A.
13. Derive a shortest path table to the above graph X with Dijkstra’s algorithm with source
vertex as D