# Question: A depth first forest classifies the edges of a graph into

A depth-first forest classifies the edges of a graph into tree, back, forward, and cross edges. A breadth-first tree can also be used to classify the edges reachable from the source of the search into the same four categories.
a. Prove that in a breadth-first search of an undirected graph, the following properties hold:

1. There are no back edges and no forward edges.

2. For each tree edge (u, v), we have d[v] = d[u] + 1.

3. For each cross edge (u, v), we have d[v] = d[u] or d[v] = d[u] + 1.

b. Prove that in a breadth-first search of a directed graph, the following properties hold:

1. There are no forward edges.

2. For each tree edge (u, v), we have d[v] = d[u] + 1.

3. For each cross edge (u, v), we have d[v] ≤ d[u] + 1.

4. For each back edge (u, v), we have 0 ≤ d[v] ≤ d[u].

1. There are no back edges and no forward edges.

2. For each tree edge (u, v), we have d[v] = d[u] + 1.

3. For each cross edge (u, v), we have d[v] = d[u] or d[v] = d[u] + 1.

b. Prove that in a breadth-first search of a directed graph, the following properties hold:

1. There are no forward edges.

2. For each tree edge (u, v), we have d[v] = d[u] + 1.

3. For each cross edge (u, v), we have d[v] ≤ d[u] + 1.

4. For each back edge (u, v), we have 0 ≤ d[v] ≤ d[u].

**View Solution:**## Answer to relevant Questions

An Euler tour of a connected, directed graph G = (V, E) is a cycle that traverses each edge of G exactly once, although it may visit a vertex more than once. a. Show that G has an Euler tour if and only if in-degree (v) = ...Suppose that all edge weights in a graph are integers in the range from 1 to |V|. How fast can you make Kruskalâ€™s algorithm run? What if the edge weights are integers in the range from 1 to W for some constant W?A supply of steam at 100 kPa, 150C is needed in a hospital for cleaning purposes at a rate of 15 kg/s. A supply of steam at 150 kPa, 250C is available from a boiler and tap water at 100 kPa, 15C is ...Air flows through a constant pressure heating device, shown in Fig. P10.15. It is heated up in a reversible process with a work input of 200 kJ/kg air flowing. The device exchanges heat with the ambient at 300 K. The air ...Calculate the availability of the water at the initial and final states of Problem, and the irreversibility of the process.Post your question