in Others recategorized by
786 views
0 votes
0 votes

​​​​Consider performing depth-first search (DFS) on an undirected and unweighted graph $G$ starting at vertex $s$. For any vertex $u$ in $G, d[u]$ is the length of the shortest path from $s$ to $u$. Let $(u, v)$ be an edge in $G$ such that $d[u]<d[v]$. If the edge $(u, v)$ is explored first in the direction from $u$ to $v$ during the above DFS, then $(u, v)$ becomes a $\_\_\_\_\_\_\_\_$ edge.

  1. tree
  2. cross
  3. back
  4. gray

in Others recategorized by
by
786 views

1 Answer

0 votes
0 votes
A

Related questions