retagged by
13,668 views
52 votes
52 votes

A depth-first search is performed on a directed acyclic graph. Let $d[u]$ denote the time at which vertex $u$ is visited for the first time and $f[u]$ the time at which the DFS call to the vertex $u$ terminates. Which of the following statements is always TRUE for all edges $(u, v)$ in the graph ?

  1. $d[u] < d[v]$
  2. $d[u] < f[v]$
  3. $f[u] < f[v]$
  4. $f[u] > f[v]$
retagged by

11 Answers

0 votes
0 votes
ans is D

because the the vertex is visited first is terminated at the last

and the start ttime/ finish time is the notation when u start solving ay graph finish time iin dfs
0 votes
0 votes
For all edges, u to v,there are two choices to cover the vertex v.

Either we can cover from u or when u tries to cover v using u-> ,the v is already covered.

So in both the cases the vertex v will finish first as in first case u will cover v and v will finish first then  and in the later case when u tries to cover v it is already covered.
Answer:

Related questions

1 votes
1 votes
4 answers
3
1 votes
1 votes
1 answer
4
Kuldeep Pal asked Jul 16, 2017
359 views