Science, asked by viveknk1692, 1 year ago

Explain dfs and bfs with help of example

Answers

Answered by ashutoshsharma2
0
The breadth first search ( BFS) and the depth
first search (DFS ) are the two algorithms
used for traversing and searching a node in
a graph. They can also be used to find out
whether a node is reachable from a given
node or not.
Similar questions