retagged by
2,180 views
1 votes
1 votes

The depth of any DFS (Depth First Search) tree rooted at a vertex is at least as much as the depth of any BFS tree rooted at the same vertex.

I think in line graph has the same depth in both DFS and BFS. So it may be false.

retagged by

1 Answer

2 votes
2 votes
The statement is true.

statement says depth of dfs tree  is greater than or EQUAL to depth of bfs tree.

Line graph is the example where depth of dfs tree and deptih of bfs tree are same.

Related questions

0 votes
0 votes
2 answers
1
gshivam63 asked May 31, 2016
1,091 views
If average weight of a minimum spanning tree is Aavg.Then minimum spanning tree will have weight almost (n-1)Aavg, where n is no of vertices in the graph. It is true or f...
1 votes
1 votes
1 answer
4
rahul sharma 5 asked Oct 4, 2017
667 views
If in a given graph all edge weights are equal and negative then BFS will correctly find out single source shortest path to all vertices,starting from vertex v? True/Fals...