BFS/DFS for connected components (

From Algorithm Wiki
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

-

Reference