πŸ“Š Design and Analysis of Algorithms
Q. Kruskal’s algorithm can efficiently implemented using the disjoint-set data structure.
  • (A) s1 is true but s2 is false
  • (B) both s1 and s2 are false
  • (C) both s1 and s2 are true
  • (D) s2 is true but s1 is false
πŸ’¬ Discuss
βœ… Correct Answer: (D) s2 is true but s1 is false

Explanation: in kruskal’s algorithm, the disjoint-set data structure efficiently identifies the components containing a vertex and adds the new edges. and kruskal’s algorithm always finds the mst for the connected graph.


Explanation by: Mr. Dubey
in kruskal’s algorithm, the disjoint-set data structure efficiently identifies the components containing a vertex and adds the new edges. and kruskal’s algorithm always finds the mst for the connected graph.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
1010
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate