in DS
719 views
4 votes
4 votes

in DS
by
719 views

4 Comments

Option C
0
0
please provide complete explanation. in (c), R was discovered before Q, then how can it finish before Q?
0
0
0
0
yes, got it. thanks
0
0

1 Answer

0 votes
0 votes
A. S isn't part of PQR component.

B. Q -> R, but then P and S are separate component.

D. For Q its (1,2) it means it isn't connected to any other vertex.

For C: Start with R then Q (start time 2), S (start time 3), then P (start time P). So graph is connected. As its undirected graph we don't need to worry about direction of edges.

C is correct.

Related questions