• edited by
1,785 views
1 1 vote

DFS Graph Traversal:
Starting vertex $=\mathrm{V}_{6}$

Identify valid DFS.

  1. $6,8,7,5,4,2,1$
  2. $6,3,1,2,4,5,8,7$
  3. $6,3,7,8,5,2,4,1$
  4. $6,8,5,4,2,1,7$

1 Answer

2 2 votes
V6(3,8) V3(1,7) V7(8) V8(4,5) V5(2) V2(1,4) V4() V1()    

because it is DFS use the stack. in bracket i have put the node adjacent to the vertex.

Position:
Show:

Related questions

4 4 votes
1 1 answer
1.3k
1.3k views
0 0 votes
0 0 answers
1.5k
1.5k views
Lakshman Bhaiya asked Nov 13, 2018
1,481 views
Consider the following sequence of nodes for the undirected graph given below$:$$(1)PQSTWVUR$$(2)PQRSTUWV$$(3)PQRTUSVW$A Depth First Search (DFS) is started at node $P.$T...
1 1 vote
1 1 answer
1.5k
1.5k views
Aditya Bahuguna asked Jan 7, 2018
1,545 views
Consider the graph belowThe sequence of vertex that are not pushed onto stack using DFS starting from vertex ' 8 '.4,7$6,7,5$2,3None
0 0 votes
0 0 answers
471
471 views
saumya mishra asked Sep 25, 2017
471 views
What is the correct answer please provide with reason?