History of CyclesByDFS

ClassS04CS141 | recent changes | Preferences


Revision 4 . . May 4, 2004 9:04 pm by Neal
Revision 3 . . May 4, 2004 9:02 pm by Neal
  

Difference (from prior major revision) (no other diffs)

Added: 41a42,49
Thus, to determine, in linear time, if a digraph has a cycle it suffices to do a DFS
and check for the presence of back edges.

If you find a back edge, it is easy to find a cycle containing it (using the tree edges).
If there is no back edge, then there is no cycle.





ClassS04CS141 | recent changes | Preferences
Search: