The problems are exercises in .
Exercises 22.3-7
Give a counterexample to the conjecture that if there is a path from u to v in a directed graph G, and if d[u] < d[v] in a depth-first search of G, then v is a descendant of u in the depth-first forest produced.
Exercises 22.3-8
Give a counterexample to the conjecture that if there is a path from u to v in a directed graph G, then any depth-first search must result in d[v] ≤ f[u].
There is a counterexample for both problems in the following graph.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimbtAQ0gzUGH7i8sGk3rq02y442iqBS4z1lWzpU1LDKxzZKoG5xp6TruSiJZSVRAhu4THrQPGotZTUkhIiQ34Vy5vPaOR7MvlFpJzcOkcBQJpNATjhviGqvXp5fhC99zPLjjUqM6R7dLpF/s320/deepfirst.jpg)
Exercises 22.3-7
Give a counterexample to the conjecture that if there is a path from u to v in a directed graph G, and if d[u] < d[v] in a depth-first search of G, then v is a descendant of u in the depth-first forest produced.
Exercises 22.3-8
Give a counterexample to the conjecture that if there is a path from u to v in a directed graph G, then any depth-first search must result in d[v] ≤ f[u].
There is a counterexample for both problems in the following graph.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimbtAQ0gzUGH7i8sGk3rq02y442iqBS4z1lWzpU1LDKxzZKoG5xp6TruSiJZSVRAhu4THrQPGotZTUkhIiQ34Vy5vPaOR7MvlFpJzcOkcBQJpNATjhviGqvXp5fhC99zPLjjUqM6R7dLpF/s320/deepfirst.jpg)
Comments