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.
In the question, assuming the given statements to be true, find which of the conclusion (s) among given three conclusions is /are definitely true and t...
Three of the following four letter-clusters are alike in a certain way and one is different. Pick the odd one out.
Select the option in which the numbers are related in the same way as are the numbers of the following sets.
(52, 13, 8)
(96, 16, 12) �...
One day, Anamika leaves her office and walks 30m towards east. She then turned right and walks 30m, and then she again turned right and walks 15m. From ...
If a meaningful four-letter English word is formed by using the 2nd, 5th, 6th and 10th letter (from the left end) of the word ‘COMPONENTS’ then whic...
Which of the following numbers will replace the question mark (?) in the given series?
102, 100, ?, 96, 112
Select the option that is related to the fifth number in the same way as the second number is related to the first number and the fourth number is relat...
Select the correct mirror image of the given figure when the mirror is placed to the right side of the f igure at ‘XY ’.
Which of the following numbers will replace the question mark (?) in the given series?
53, 62, 57, ?, 61, 70, 65
Who is spouse of Z?