Regular Languages
Learn about regular languages and explore some more examples of deterministic finite automata.
Formal definition
A regular language is a formal language for which there exists a deterministic finite automaton that accepts all and only those strings in the language.
Let’s look at a few examples of regular languages and their corresponding DFA.
DFA accepting strings starting with and ending with
Consider the language , of all strings that begin with an and end with a . We can write this language as . If the first symbol is a , then there is no hope of the machine accepting it. The following figure shows a machine that accepts all the strings starting with an and ending with a .
Get hands-on with 1400+ tech skills courses.