in Algorithms retagged by
2,158 views
1 vote
1 vote

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.

in Algorithms retagged by
2.2k views

1 comment

this statement seems to be true to me.
0
0

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.

2 Comments

Except line graph depth of dfs always greater than depth of the bfs

Best way to take small example solve your own it becomes easy
0
0
Thanks sir. Thanks for acadflix group. Shashank here
0
0

Related questions