retagged by
1,873 views
1 votes
1 votes

Consider the following graph G



 

modified DFS on G is as folows:

starting vertex is 'a'

vertex is visited on alphabetic order

vertices are visited in order a,c,d,.....

it works same as DFS except the visiting order restriction

Which of the following is not a back edge during above DFA traversal on G?

(a) {f,b}

(b) {e,a}

(c){d,a}

(d){c,a}

retagged by

1 Answer

Best answer
3 votes
3 votes

In a directed graph , DFS tree has 4 edges ==> tree edge, forward edge, back edge and cross edge .

But, in case of undirected graph , DFS tree has 2 edges ==> Tree edge and back edge (Forward edges and back edges cannot be distinguished and cross edges are not there.)

Hence, (f,b) and (a,d) are back edges .In case of directed graph, (e,a) is a cross edge , but they don' t exist here .

Also, (c,a) is a tree edge , and , hence , it is not a back edge.

edited by

Related questions