[prev] 70 [next]

Finding a Path (cont)

Comparison of BFS/DFS search for checking if there is a path from a to h

[Diagram:Pic/graph-search-bfs-dfs.png]

Both approaches ignore some edges by remembering previously visited vertices.