edited by
1,315 views
0 0 votes
In DFS traversal every vertex of the graph is visited exactly once. True / False?

2 Answers

0 0 votes

definite it false.....becoz

when we visit vertex first time we pushed it in to stack and go right,,,,let right child is null then again root vertex is popped and checked for left.......

we can say that no. of times a vertex is visited could be equal to the no. child of a vertex...

Position:
Show:

Related questions

6 6 votes
3 3 answers
6.5k
6.5k views
rahul sharma 5 asked Dec 9, 2017
6,541 views
Consider the following graph:The minimum size of queue required when performing BFS on above graph is ________.(Size of queue is represented by maximum number of element ...
1 1 vote
0 0 answers
1.1k
1.1k views
1 1 vote
0 0 answers
458
458 views
3 3 votes
3 answers 3 answers
1.6k
1.6k views
focus _GATE asked Jan 11, 2017
1,598 views
Consider the following graphAmong the following sequences1. abcfgde2. abdcefg3.cedgfba4. efgdcbaWhich are depth first traversals of above?