Examveda

What is a primary use case for Depth-First Search (DFS)?

A. To find the minimum spanning tree.

B. To find the shortest path in a weighted graph.

C. To find a path between two nodes.

D. To check the connectivity of a graph.

Answer: Option D


Join The Discussion

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