retagged by
207 views

1 Answer

0 votes
0 votes
YES for find and union,

but if u're asking of finding the connected components in the graph (like we do in kruskal's algo) then the whole time complexity comes down to O(ElogV).

refer CLR page 631

Related questions

0 votes
0 votes
2 answers
1
srestha asked Oct 25, 2016
1,049 views
What is Union Find algorithm? Which type of algo we can search with Union Find algo?
0 votes
0 votes
1 answer
2
Gate Mm asked Dec 11, 2015
350 views
Can someone plz help me understand union find algo?Or provide a good resource other thah GfGeeks,for this