NL
Builds on Space complexityNondeterministic Turing machineComplexity classFormal languageLP
Definition
Let be a finite alphabet. The complexity class NL is where is defined through the space complexity of nondeterministic Turing machines with a read-only input tape. So a language lies in NL when some such machine decides it using work-tape cells on every branch, for inputs of length .
Remarks
Example: directed reachability lies in . An input is a directed graph with vertices and two vertices . The machine stores the current vertex and a step counter, starts at , and guesses an out-neighbour at each step. It accepts when it reaches and rejects after steps, using cells. Some branch accepts exactly when has a path from to .
Non-example: a machine that guesses a whole path and writes it on the work tape may use about cells, so it does not show membership in .
Directed reachability is NL-complete under logarithmic-space reductions. One has , where L is the class L and P is the class P. NL is closed under complement, by the Immerman–Szelepcsényi theorem.
Reading path
To understand this page from the ground up, read these 7 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Complexity class concept
- Formal language concept
- L concept
- Nondeterministic Turing machine concept
- P concept
- Space complexity concept
- NL definition
Further reading
About this page
| Tag | DJY12HF27K |
|---|---|
| URI | m2://DJY12HF27K |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q15 |
| Defines | NL |
| Uses | Space complexity, Nondeterministic Turing machine, Complexity class, Formal language, L, P |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.