# Question: Give an example of a directed graph G V E a source

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, yet the set of edges E π cannot be produced by running BFS on G, no matter how the vertices are ordered in each adjacency list.

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

There are two types of professional wrestlers: "good guys" and "bad guys." Between any pair of professional wrestlers, there may or may not be a rivalry. Suppose we have n professional wrestlers and we have a list of r pairs ...Show that a depth-first search of an undirected graph G can be used to identify the connected components of G, and that the depth-first forest contains as many trees as G has connected components. More precisely, show how to ...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) = ...The compressor in a refrigerator takes refrigerant R-134a in at 100 kPa, 20C and compresses it to 1 MPa, 40C. With the room at 20C find the minimum compressor work.Fresh water can be produced from saltwater by evaporation and subsequent condensation. An example is shown in Fig. P10.12 where 150-kg/s saltwater, state 1, comes from the condenser in a large power plant, the water is ...Post your question