Page 1 of 1

connected components

Posted: Fri Dec 19, 2003 3:29 pm
by IBelieve
Which algorithm is the best for finding the connected components in a graph ?

10x

Posted: Fri Dec 19, 2003 9:15 pm
by rjhadley
Breadth-First Search and Depth-First Search both run in linear time (wrt the size of the graph).