Question
Which condition must be satisfied for Kruskal’s
Algorithm to function correctly?Solution
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.
Who is the author of the book ‘Era of Darkness’ ?
Infosys, Indian IT services company, announced a multi-year partnership with which women's tennis player?
In August 2017, the Chief Minister of which state received the Global Agriculture Leadership Award 2017 from the Indian Council of Food and Agriculture ...
The Tropical Forest Research Institute is situated in which of the cities of the state Madhya Pradesh?
Match the following planets with their features:
The Week Magazine is released by?
Which of the following organizations is not a regulatory body?
Kelucharan Mohapatra is associated with which of the following dances?
As per Nov 2020, How many countries have membership in the World Trade Organisation?
Who conducted X-ray spectroscopic study of a large number of elements and showed that the frequency of X-rays emitted by an element is related to the a...