0
53kviews
Explain DFS and BFS algorithm with example.
1 Answer
6
6.8kviews

Depth First Search:

The general idea behind depth first traversal is that, starting from any random vertex, single path is traversed until a vertex is found whose all the neighbors are already been visited. The search then backtracks on the path until a vertex with unvisited adjacent vertices is found …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.