











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The closure properties of regular languages under various operations and provides proofs using different models of regular languages. It also presents the pumping lemmas for regular languages and context-free languages, and their use in proving that certain languages are not regular or context-free. Examples and formal proofs.
Typology: Study notes
1 / 19
This page cannot be seen from the preview
Don't miss anything!












CMPSCI 601: Recall From Last Time Lecture 4
Kleene’s Theorem: Let
be any language. Then the following are equivalent:
, for some DFA
.
, for some NFA without transitions
, for some NFA.
, for some regular expression.
is regular.
Myhill-Nerode Theorem: The language
is regular iff has a finite number of equivalence classes. Fur- thermore, this number of equivalence classes is equal to the number of states in the minimum-state DFA that ac- cepts
.
CMPSCI 601: Regular Language Closure Lecture 4
Closure Theorem for Regular Sets: Let
be
be homomorphisms. Then the following languages are regular:
is
.
be a homomorphism.
, we can compute a
regular expressions. Then we can prove by induction that
and
, we can
as follows. States, start, and
and
Then for any
, and
CMPSCI 601: Review of CFL’s Lecture 4
Definition: A context-free grammar (CFG) is a 4-
,
Parse Tree:
V
T F F C D
( E ) E + T E + T T F F V L D 3 * ( x 1 + y 1 + z 1 )
F V L D
T
E
L D
Pumping Lemma for Regular Sets: Let
be a DFA. Let
. Let
s.t.
s.t. the following all hold:
Proof: Let
s.t.
.
By the Pigeonhole Principle,
. Thus,
for all
CFL Pumping Lemma: Let
be a CFL. Then there is a constant
, depending only on
, such that if
such that:
be a CFG with
.
Let
be so large that for
for some
, the parse tree for
has height
.
Let
,
.
The parse tree for
has height greater than
.
Thus, some path repeats a nonterminal,.
y
S
N
N
u v w x
N
Prop: