You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following graph that is G.V = {u, v, w}, G.E = {(u, v), (v, w), (u, w), (w, v)}
Consider what happens when we call DFS-VISIT(u):
A depth-first tree of this graph should be a linear order (either u->v->w or u->w->v). But the algorithm given in the solution will mark u as the parent of both v and w in the depth first tree.
The text was updated successfully, but these errors were encountered:
Consider the following graph that is G.V = {u, v, w}, G.E = {(u, v), (v, w), (u, w), (w, v)}
Consider what happens when we call DFS-VISIT(u):
A depth-first tree of this graph should be a linear order (either u->v->w or u->w->v). But the algorithm given in the solution will mark u as the parent of both v and w in the depth first tree.
The text was updated successfully, but these errors were encountered: