1,099 views
1 1 vote
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 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
Position:
Show:

Related questions

3 3 votes
1 1 answer
3.9k
3.9k views
Satbir asked Jun 1, 2019
3,892 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.
1 1 vote
0 0 answers
983
983 views
Shivam Kasat asked Jan 20, 2019
983 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 and...
0 0 votes
0 0 answers
972
972 views
Shivam Kasat asked Jan 10, 2019
972 views
S1:Every subgroup of an abelian group is also abelian?True or false
0 0 votes
0 0 answers
818
818 views
Shivam Kasat asked Jan 8, 2019
818 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.