Kruskal’s Algorithm constructs a Minimum Spanning Tree (MST) by selecting the smallest edges while ensuring no cycles are formed. For the algorithm to function correctly, the graph must be connected, meaning there exists a path between any two vertices. In a disconnected graph, Kruskal’s Algorithm would result in a Minimum Spanning Forest, not a single tree. Connectivity ensures that all vertices are included in a unified MST. Steps: • Sort edges by weight. • Use a Disjoint Set to detect and prevent cycles. • Add edges until all vertices are connected. Why Other Options Are Incorrect: 1. Directed Graph: Kruskal works on undirected graphs; additional considerations are needed for directed graphs. 2. Weighted Graph: While weights are essential, connectivity is a stricter requirement. 3. Distinct Weights: Not required; ties can be resolved arbitrarily. 4. No Cycles: The algorithm actively avoids cycles but does not require the graph to be cycle-free initially. Kruskal’s reliance on graph connectivity is a cornerstone of its application in MST problems.
In the data set given below, what is the difference between the Median and the Mode?
{2.1, 5, 6, 7, 8, 9.3,11,15, 17, 19.21, 27, 31, 31, 33, 16.5, 14, 10}
Which day falls on 04th March of a year? If 16th December of the previous year was a Monday.
A certain number of people are sitting in a row, facing north. N is sitting third to the left of P. M is sitting third to the left of N. O is sitting th...
In a certain code language, 'your attention please' is written as 'puw cuw zuw', 'kind attention' is written as 'muw zuw', and 'please pay attention' is...
What should come in place of '?' in the given series?
4 22 112 562 2812 ?
Select the option that is related to the fifth letter-cluster in the same way as the second letter-cluster is related to the first letter-cluster and th...
A, B, C, D, E, F, G and H are sitting around a square table not facing the centre. Some of them are sitting at the corners while some are sitting at the...
In a family there are husband, wife, two sons and two daughters, all the ladies were invited to a dinner. Both sons went out to play. Husband did not r...
Nine Persons – C, D, B, A, J, F, G, H and K – are sitting in a straight line facing north, but not necessarily in the same order. G sits second to t...
If '÷' is replaced with '+', '×' is replaced with '–', '+' is replaced with '×' and '–' is replaced with, '÷' then what will be the value of the...