261 views
1 1 vote

Let $G=(V,E)$ be a directed graph, and let $G^R$ denote the graph obtained by reversing all the edges of $G$.

Which of the following statements is/are TRUE?

  1. If a vertex $v$ is reachable from a vertex $u$ in $G$ using DFS, then $u$ is reachable from $v$ in $G^R$ using BFS.
     
  2. If $G$ is weakly connected, then $G^R$ is not weakly connected.
     
  3.  The set of strongly connected components of $G$ is always different from the set of strongly connected components of $G^R$.
     
  4. For every vertex $u$, the out-degree of $u$ in $G$ is equal to the out-degree of $u$ in $G^R$.

Please log in or register to answer this question.

Answer:
Position:
Show:

Related questions

0 0 votes
2 2 answers
347
347 views
GO Classes asked Feb 17
347 views
A binary tree has the following traversals:Preorder traversal$: P, Q, S, E, R, F, G$ Inorder traversal$: S, Q, E, P, F, R, G$ Which of the following statement(s) is/are T...
0 0 votes
1 1 answer
260
260 views
GO Classes asked Feb 17
260 views
Consider the following Python code:def outer(): x = [] def inner(val): x.append(val) return x return innerNow consider:f1 = outer() f2 = outer...
1 1 vote
2 2 answers
371
371 views
GO Classes asked Feb 17
371 views
Consider the following function:def fun(L, i = 0): if i >= len(L) - 1: return 0 if L[i] L[i + 1]: L[i], L[i + 1] = L[i + 1], L[i] return ...
1 1 vote
3 3 answers
338
338 views
GO Classes asked Feb 17
338 views
Consider the following function:def mystery(n): if n <= 0: return 1 else: return mystery(n - 1) + mystery(n - 2)If the function is called as $\tex...