The most efficient algorithm for finding the number of connected components in
an undirected graph on n vertices and m edges has time complexity
- A\(\Theta (n)\)
- B\(\Theta (m)\)
- C\(\Theta (m+n)\)
- D\(\Theta (mn)\)
Solve it on GATE DA practice →More Graph Theory & Algorithms problems