edited by
2,103 views
1 votes
1 votes

edited by

2 Answers

Best answer
2 votes
2 votes

Forest : Collection of Trees

In Kruskal Algorithm we place all the edges of the graph in non-decreasing order and start selecting the edges from the smallest edge and for rest of the graph we do the same recursively until and unless that edge we are picking results in a circuit. If that happens we skip that edge and continue the algorithm for rest of the graph. This Algorithm may lead to intermediate forests in graph.

In Prim's algorithm we start with a particular vertex in graph and select smallest edge from that vertex we do this again for that sub-graph and recursively do this for all edges but in this algorithm there is no possibility of forest because we keep on adding edges on the same sub-graph.

So the answer is B

selected by
2 votes
2 votes

option b

in this example first graph using kruskal intermidiate result is not a forest .

but in second graph intermediate result is forest.

Related questions

1 votes
1 votes
0 answers
1
Na462 asked Feb 19, 2018
629 views
Given a graph with positive and distinct edge weights. If I double or triple.. the edge weights then:- 1. Shortest path will remain same2. Mst will remain sameRight?Note ...
4 votes
4 votes
1 answer
3
srestha asked Apr 30, 2018
3,167 views
1) Kruskal Algorithm2) Prims Algorithm3) Dijkstra Algorithm4) Bellman Ford Algorithm5) Floyd Warshall AlgorithmAmong these which one works for onlyi) Positive edge weight...