Examveda

In which case is the BFS traversal algorithm particularly useful?

A. Finding the maximum flow in a network.

B. Checking if a graph is connected.

C. Finding the shortest path in a weighted graph.

D. Finding the shortest path in an unweighted graph.

Answer: Option D


Join The Discussion

Related Questions on Graph Algorithms (DFS, BFS, Dijkstras, etc)