Meaning and assumptions
A deterministic finite automaton reads a word one symbol at a time, remembering only one of finitely many states. It accepts exactly when the state reached after the final symbol is accepting. This methods guide explains transitions, word testing and the limits of finite memory.[1]
DFA over a fixed finite alphabet Σ: every state–symbol pair has exactly one successor state. The initial state may be accepting, in which case the empty word belongs to the language.[1]
Why the approach works
The extended transition function δ* repeatedly applies δ to a complete word. Initially δ*(q,ε)=q. For a word w followed by a final symbol a, first process w and then take the transition for a. A state meaning such as “an even number of ones has been read” is an invariant over every processed prefix. Establish it initially and show preservation for0 and1; acceptance then follows from the accepting set. Regular expressions and finite automata describe the same class of languages, but not every conceivable language is regular.[1]
Two complete worked examples
An even number of ones
- Given
- Q={E, O}, start E, F={E};0 preserves the state and1 toggles E↔O. Test1011.
- Find
- Result
Trace every input symbol.
Test acceptance only after the complete word.
Result: Result:1011 is rejected; it contains three ones.
Check: Counting gives an odd total of3, agreeing with state O.
A regular expression for the same language
- Given
- Find binary words containing an even number of1s, includingε.
- Find
- Result
Pair the ones, allowing any number of zeros between them.
Allow any number of such pairs and surrounding zeros.
Result: Result:0*(10*10*)* describes the automaton’s language.
Check: ε and000 are included;101 has two ones and is included;1 has one and is excluded.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Visualising the relationship
Symbols read and Parity of ones
Free with a Quanta account. Your download stays ready after registration.
Five exercises with solutions
Calculate · Application
Does the even-ones automaton accept1100?
Show hint
State the approach and assumptions before substituting.
Learning goal: Does the even-ones automaton accept1100?
Show solution and calculation
E→O→E→E→E; final E is accepting.
Interpret · Application
What happens toε in the example automaton?
Show hint
State the approach and assumptions before substituting.
Learning goal: What happens toε in the example automaton?
Show solution and calculation
No transition is taken.
Initial state E is accepting, soε is included.
Error analysis · Application
A student checks acceptance after the first symbol and stops. What is missing?
Show hint
State the approach and assumptions before substituting.
Learning goal: A student checks acceptance after the first symbol and stops. What is missing?
Show solution and calculation
A DFA accepts a complete word.
Every symbol must be processed before membership of the final state in F decides.
Transfer · Challenge
How do you change the automaton to accept an odd number of ones?
Show hint
State the approach and assumptions before substituting.
Learning goal: How do you change the automaton to accept an odd number of ones?
Show solution and calculation
Keep transitions and initial E; replace the accepting set by F={O}.
Interpret · Application
Why is a single “not seen yet” state insufficient to distinguish even and odd counts?
Show hint
State the approach and assumptions before substituting.
Learning goal: Why is a single “not seen yet” state insufficient to distinguish even and odd counts?
Show solution and calculation
Prefixesε and1 must react differently to the same continuation.
A single shared state could no longer distinguish them.
Check your understanding with the formula’s reference test.
6 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Related next steps
Related foundations: Boolean algebra identities and De Morgan laws, Graph search: BFS, DFS and shortest paths.
Sources for this explanation
Quanta · Updated November 6, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Locally authored DE/EN article with two original examples, five exercises, model limits and a native diagram.
Cite this reference page
Quanta. Finite automata and regular languages. Updated November 6, 2026. https://quanta-study.de/en/formula-sheet/endliche-automaten-regulaere-sprachen
When citing a specific scientific statement, also cite the specialist source linked to that statement.