Two-way finite automaton
Builds on AlphabetStringDeterministic finite automatonRegular language
Definition
Let be an alphabet and let be two symbols not in , the left and right end markers. A two-way deterministic finite automaton (2DFA) is a tuple where:
- is a finite set of states, and are the start, accept and reject states, with ;
- is the transition function;
- for every state , has the form and has the form , so the head never leaves the marked input.
On an input string , the tape holds with and . A configuration is a pair with and ; it starts at . If and , the next configuration is when and when . The computation stops when it enters or . The 2DFA accepts when the computation enters ; it rejects when it enters or never stops.
Remarks
Example: over , a 2DFA can accept the words whose last letter is . It moves right in state until it reads , and then moves left once into a state . In state it goes to if it reads , and to otherwise. Non-example: a rule breaks clause 3, since it would move the head beyond the right end marker. Every DFA gives a 2DFA that always moves right and decides at . Conversely, the language accepted by a 2DFA is always a regular language, so 2DFAs and DFAs have the same power. The nondeterministic version, 2NFA, also accepts exactly the regular languages.
Reading path
To understand this page from the ground up, read these 5 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Alphabet concept
- Deterministic finite automaton concept
- Regular language concept
- String concept
- Two-way finite automaton definition
Further reading
About this page
| Tag | XMVN03292H |
|---|---|
| URI | m2://XMVN03292H |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q45 |
| Defines | Two-way finite automaton |
| Uses | Alphabet, String, Deterministic finite automaton, Regular language |
| 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.