A depth-first search is performed on a directed acyclic graph. Let d[u] denote…

GATE · 2007 · IT

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. A.

    d[u] < d[v]

  2. B.

    d[u] < f[v]

  3. C.

    f[u] < f[v]

  4. D.

    f[u] > f[v]

Attempted by 308 students.

Show answer

Correct answer: D

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…