...
UGC NET CS 2007 June-Paper-2
October 13, 2023
UGC NET CS 2007 June-Paper-2
October 13, 2023
UGC NET CS 2007 June-Paper-2
October 13, 2023
UGC NET CS 2007 June-Paper-2
October 13, 2023

UGC NET CS 2007 June-Paper-2

Question 2
Depth ion travels of the following directed graph is :
A
A B C D E F
B
A B D E F C
C
A C E B D F
D
None of the above
Question 2 Explanation: 
To find depth ion traverse using DFS.
Option-A: It is ruled out because we can’t move after C to D. It is violating DFS property.
Option-B: It is following actual DFS structure.

Option-C: It is ruled out because after visiting E we can’t visit B again. It is violating DFS properties.
Correct Answer: B
Question 2 Explanation: 
To find depth ion traverse using DFS.
Option-A: It is ruled out because we can’t move after C to D. It is violating DFS property.
Option-B: It is following actual DFS structure.

Option-C: It is ruled out because after visiting E we can’t visit B again. It is violating DFS properties.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!