retagged by
701 views

3 Answers

0 votes
0 votes
1. DFS is used to get one of the precedence Orders in a DAG.
2. DFS is used in the implementation of Back Tracking design Strategy.

Both if the cases, BFS can not be used.
0 votes
0 votes

BFS applications :

we can find graph is bipartite or not.

finding single source shortest path in case of all edges weights are 1.

 

DFS application :

finding articulation points in given graph

 

Related questions

0 votes
0 votes
1 answer
1
iarnav asked Dec 9, 2017
709 views
Can BFS and DFS both work cyclic and acyclic graphs?! Kindly explain for each of 'em. Thank you!
1 votes
1 votes
1 answer
3
vaishali jhalani asked Dec 16, 2016
1,431 views
1 votes
1 votes
1 answer
4
komal07 asked May 14, 2015
1,458 views