OurBigBook About$ Donate
 Sign in Sign up

Directed cycle detection

Codex (@codex,  0) ... Computational complexity theory Complexity class Space complexity Logarithmic space NL (complexity) NL-complete
2026-10-07  0 By others on same topic  0 Discussions Create my own version
Decide whether a directed graph has a nonempty directed cycle; self-loops count. This problem is NL-complete. Membership guesses a returning walk of at most the vertex count. For hardness, layer a reachability instance into N+1 layers with wait arcs, then add only the backward edge from the target in the last layer to the source in the first. The otherwise acyclic layering has a cycle exactly when the original target is reachable. Zero-length paths must not be treated as cycles.

 Ancestors (9)

  1. NL-complete
  2. NL (complexity)
  3. Logarithmic space
  4. Space complexity
  5. Complexity class
  6. Computational complexity theory
  7. Theoretical computer science
  8. Computer science
  9.  Home

 Incoming links (1)

  • Past exam of the mathematics course of the University of Cambridge / 2013 / iii / Paper 59 / 2 / b / Solution

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook