0

Is it dfs or bfs has more than one solution?

Irritating with graphs (data structures ) While tracing the solution it is showing one answer ,but it is not equal to the result display by the compiler...... Plz help

10th Nov 2019, 3:13 AM
atharupu saravana
atharupu saravana - avatar
1 Odpowiedź
+ 1
The different between DFS and BFS is the traversing direction. DFS will go deep at priority, and BFS will go wide at priority.
15th Nov 2019, 4:30 PM
Dendi Handian
Dendi Handian - avatar