Automata Theory Midterm Exam
Automata Theory Midterm Exam
Department of Mathematics
2021 - 2022 Fall Semester
3) Consider the language given by the following regular expression over Σ = {a, b, c}:
∗
aca∗ a∗ ba∗ ba∗ ca
4) Find a regular expression equivalent to the language over Σ = {a, b, c} recognized by the following NFA:
b b
a b c
ε
5) Consider the language L over Σ = {0, 1} composed of strings of the type wwR where wR is the reverse
of a string. For example, 10011R = 11001.
Some examples in L are:
1)
1 1 1 1
2)
a b a
a, b ε b
ε b
a, b b b
3)
(ac∗ b ∪ ε)bb
(ac∗ b ∪ ε)(b ∪ c)
or equivalently:
∗ ∗
ac bbb ∪ bb (ac∗ bb ∪ ac∗ bc ∪ b ∪ c)
bb(ac∗ b ∪ ε)
ac∗ b ∪ ε b∪c
5) Assume L is regular, let the pumping let be p. Consider the test string
s = 0p 110p
This string cannot be pumped. Therefore, by pumping lemma this language is NOT regular.
Bonus) This language is regular. The following NFA recognizes it:
a a a
a
b b b b
a a a
a
b b b b
a a a
a
b b b b
a a a
a
b b b b
a a a
a