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.
There is a school by the side of the road. Three children of nursery class stray away from the school on to the road. A truck driver, who was driving t...
In which case, while fastening the liability on the accused, the Court stated that – “They also serve who only stand and wait”?
The term debt has been defined under IBC as _________________
Money Bills shall not be introduced in:
What does the term "central recordkeeping agency" refer to?
Which landmark case held that general consent of a State under Section 6 can be withdrawn?Â
How many persons are needed to call robbery a dacoity?
Which of the following is not true about High Courts in India?
On the direction of State Government duty may be levied on excisable articles:
Consider the following statements regarding scheduled offences under PMLA, 2002:
Statement 1: Scheduled offences are limited to those listed u...