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.
Quantity IÂ : AÂ Alone can complete a work in 21 days. If be alone work for eight days and then leaves, then B alone can complete the remaining work ...
Quantity-I: 65 km
Quantity-II: 'P' and 'Q' both start traveling simultaneously from point 'X' to ...
Quantity-I: A mixture contains 50% milk and the rest 360 litres water. When (x −15) litres of water and (x+10) litres of milk are added to this mixtu...
Quantity I: There are two types of animals in a pet shop. Some are puppies and some are kittens. Each kitten takes 8 biscuits and each puppy takes 11 bi...
Quantity-I: The total sum of all perfect square numbers in the range from 1 to 1000.
Quantity-II: The total sum of all p...
Quantity I: The price of rice is decreased by 30%, by how much % the consumption is increase so that the expenditure will decreased by 10%?
Quant...
Quantity I:Â An article is marked 36% above its cost price and then sold at a disc...
Quantity-I: 'Arjun' and 'Bheem' are running on a circular track with a diameter of 'a' meters, at speeds of 25 m/s and 40 m/s, r...
Quantity I: What will be the difference between compound interest and simple interest for 4 years on a principal of Rs.20480 at the rate of 25% per ann...
Quantity-I: 'B' can do 75% of work in 45 hours. Find the value of 'T' if the time taken by him to complete the whole work is 'T' hours.
Quantit...