# Question: Argue that in a breadth first search the value d u

Argue that in a breadth-first search, the value d[u] assigned to a vertex u is independent of the order in which the vertices in each adjacency list are given. Using Figure 22.3 as an example, show that the breadth-first tree computed by BFS can depend on the ordering within adjacency lists

## Answer to relevant Questions

Give an example of a directed graph G = (V, E), a source vertex s ¬ V, and a set of tree edges E π ¬ E such that for each vertex v ¬ V, the unique path in the graph (V, E π) from s to v is a shortest path in G, ...Explain how a vertex u of a directed graph can end up in a depth-first tree containing only u, even though u has both incoming and outgoing edges in G.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 ...Calculate the reversible work and irreversibility for the process described in Problem 5.65, assuming that the heat transfer is with the surroundings at20C.A 2-kg/s flow of steam at 1 MPa, 700C should be brought to 500C by spraying in liquid water at 1 MPa, 20C in an SSSF setup. Find the rate of irreversibility, assuming that surroundings are at ...Post your question