Lecture No. 12
Dated: 29-10-2024
Example
Kleene's Theorem part 3
If the language can be expressed by a regular expression
1 then there exists an finite automaton
2 accepting the language.
Union of Two Finite Automata
2
Imagine you are given 2 regular expressions
1 \(r_1\) and \(r_2\) then it is possible to make a finite automaton
2 using \(r_1 + r_2\).
Example
\[r_1 = (a + b)^*b\]
\[r_2 = (a + b)^* aa (a + b)^*\]
\(r_1\)
\(r_2\)
\(r_1 + r_2\)
The corresponding finite automaton
2 will have initial state
which matches the initial state
of both previous finite automata
.2
Same goes for the final state
.
\[r_1 + r_2 = (a + b)^*b + (a + b)^* aa (a + b)^*\]
References
-
Read more about regular expression. ↩↩