Questions On Spanning Tree, BFS & DFS
Questions On Spanning Tree, BFS & DFS
Q2. Using Prim’s Algorithm, find the cost of minimum spanning tree
(MST) of the given graph
Q3. The Breadth First Search algorithm has been implemented using the
queue data structure. One possible order of visiting the nodes of the
following graph is:
(a) P, Q, R, S, T, U (b) P, Q, R, U, S, T
(c) P, Q, R, U, T, S (d) P, Q, T, R, U, S
Q6. Dijkstra’s single source shortest path algorithm when run from vertex
a in the below graph, computes the correct shortest path distance to
Ans:
1) D
2) --
3) C
4) D
5) B
6) D
7) C