Regular language
Builds on Formal languageDeterministic finite automatonAlphabet
Definition
Let be an alphabet. A formal language is regular when there is a deterministic finite automaton with input alphabet such that .
Remarks
Example: over , the language of words with an even number of 's is regular. The DFA with states , initial and accepting state , where swaps the two states and fixes them, accepts it. Non-example: is not regular. Suppose a DFA with states accepted it. Then two of the words , say and with , would lead to the same state. So and would be both accepted or both rejected. This is a contradiction, since and . Equivalent forms: is regular if and only if it is accepted by a nondeterministic finite automaton, if and only if it is the language of a regular expression. Every finite language is regular.
Reading path
To understand this page from the ground up, read these 4 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Alphabet concept
- Deterministic finite automaton concept
- Formal language concept
- Regular language definition
Further reading
About this page
| Tag | NJ7G0XFCX3 |
|---|---|
| URI | m2://NJ7G0XFCX3 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q45 |
| Defines | Regular language |
| Uses | Formal language, Deterministic finite automaton, Alphabet |
| 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.