BFS/DFS for connected components (
Jump to navigation
Jump to search
Time Complexity
$O(m)$
Space Complexity
$O(n)$ auxiliary words
((can be easily derived))
Description
Approximate?
Exact
Randomized?
No, deterministic
Model of Computation
Word RAM
Year
-