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.
The difference between the compound interest compounded annually and simple interest of a sum at 6% p.a. for 2 years is Rs. 36. Find the sum.
X invested Rs. 3600 at an annual simple interest rate of (a + 10)% and Rs. 2400 at an annual simple interest rate of a%. After 3 years, the total intere...
A sum of Rs.8 is lent to be returned in 9 months installments of Rs.1 each, interest simple. The rate of interest is: -
'Fatima' deposited Rs. 6,500 in a SIP at simple interest of 10% p.a. If she earned Rs. 3,900 as interest, then find the duration (in years) for which th...
The simple interest on a sum of Rs X in 5 years is (2/5)of the principal. What is the annual rate of interest?
Rs. 6,000 is deposited in Scheme 'X' which provides compound interest at 8% per annum, compounded annually. Another amount of Rs. 5600 is invested in Sc...
Rs. 9500 is invested in scheme ‘A’ for a year at simple interest of 50% p.a. The interest received from scheme ‘A’ is reinvested for 2 years in ...
The amount of a certain sum in 3 years at simple interest at x % p.a. is ₹5,472 and the amount of the same sum in 7(1/2) years at the same rate, at si...
- Ankit borrowed Rs.1800 from a loan company. At a certain rate of simple interest, the total amount becomes Rs.2124 after 3 years. If the rate of interest i...
A took a loan of Rs.4880 at simple interest of 25% p.a. and invested the same money in a scheme at simple interest of 35% p.a. Find the profit earned by...