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.
हिन्दी सीखने के लिए राजभाषा विभाग द्वारा परिकल्पित वेब ए�...
निम्नलिखित हिंदी वाक्य का अंग्रेजी अनुवाद वाला सही विकल�...
कोंकणी और नेपाली भाषाएँ संविधान के किस संशोधन में जोड़ी ग�...
राजभाषा नियम १९७६ के १२ वें नियम के अनुसार अनुपालन का ...
इनमें से क्या ‘प्रावधान’ का सही अंग्रेजी पर्याय है ?
निम्न में से ‘ supply-side intervention’ का सही अर्थ है ?
यदि केंद्र सरकार का कोई कार्यालय पणजी ( गोवा ) में स्थित है �...
दिए गए वाक्य का उचित हिंदी अनुवाद चुने –
"The contract was terminated due to r...
Deputation का हिन्दी अर्थ है ?
निम्नलिखित में से कौन सा 12 प्र के अंतर्गत नहीं आता –