Gate CS-2003 Question Paper With Solutions

Q. 2 Consider the following graph

Gate CS-2003 Question Paper With Solutions

Among the following sequences

1. abeghf 

2. abfehg

3. abfhge

4. agfhbe

Which are depth first traversals of the above graph?

(A) 1, 2 and 4 only

(B) 1 and 4 only

(C) 2, 3 and 4 only

(D) 1, 3 and 4 only

Answer: (D)

Explanation:

Gate CS-2003 Question Paper With Solutions

Learn More:   Gate CS-2015-3 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here