Question: Which algorithm is better for finding connected components in a graph?
Options:
Correct Answer: Both are equally good
Solution:
Both BFS and DFS can be used to find connected components in a graph, and they are equally effective for this purpose.