Graph Theory37 sections · 1633 units
Open in CourseQuiz: When DFS Fails
Knowledge check
Check Your Understanding
You need the SHORTEST path in an unweighted graph. You use DFS and find a path of length . Can you guarantee this is the shortest?
- A.No, DFS explores depth-first and may find longer paths first
- B.Yes, DFS always finds shortest paths
- C.Yes, but only in trees
- D.No, but running DFS multiple times fixes this