#### Question

Give a counterexample to the conjecture that if a directed graph G contains a path from u to , then any depth-first search must result in v.d ≤ u.f.

#### Solution

Verified#### Step 1

1 of 10An idea would be to end a branch of a graph with $u$ and then go back to $v$. That would give us $v.d>u.f$, which is what we have to show.

[7pt]

We need not look any further for a counterexample, in fact, we only need to look back to a previous problem where we had the following search:

## Create an account to view solutions

By signing up, you accept Quizlet's Terms of Service and Privacy Policy

## Create an account to view solutions

By signing up, you accept Quizlet's Terms of Service and Privacy Policy

#### Recommended textbook solutions

#### Computer Organization and Design MIPS Edition: The Hardware/Software Interface

5th EditionDavid A. Patterson, John L. Hennessy220 solutions

#### Introduction to Algorithms

3rd EditionCharles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen726 solutions