491 views
1 votes
1 votes
How to know no. of back edges in directed as well in undirected graph using DFS..can some1 tell some good source.??

1 Answer

2 votes
2 votes

Tree edges which used in Dfs traversal.

Back edges ehich is goes already visited node ( condition here is it is ancestors)  in dfs traversal.

edited by

Related questions

1.5k
views
1 answers
3 votes
Satbir asked Jun 1, 2019
1,501 views
Please give an example case for which all the three conditions$f(n)\neq O(g(n))$,$f(n)\neq \Theta (g(n))$ and$f(n)\neq \Omega (g(n))$holds true.
432
views
0 answers
1 votes
Shivam Kasat asked Jan 20, 2019
432 views
I am confused about indexing being densed or sparse, Read a lot of answer but can’t figure outPrimary Index is always sparse : since indexing is done of key attribute a...
401
views
0 answers
0 votes
Shivam Kasat asked Jan 10, 2019
401 views
S1:Every subgroup of an abelian group is also abelian?True or false
452
views
0 answers
0 votes
Shivam Kasat asked Jan 8, 2019
452 views
Is there any better approach to solve 0/1 knapsack problem other than tabular method ? as it consumes a lot of time when greater number of objects are given.