M

Mr. Dubey • 52.30K Points
Coach

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
Correct : Option (D)

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.

Share

Discusssion

Login to discuss.

Be the first to start discuss.