









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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Some concept of Automata and Complexity Theory are Administrivia, Closure Properties, Context-Free Grammars, Decision Properties, Deterministic Finite Automata, Intractable Problems, More Undecidable Problems. Main points of this lecture are: Limitations of Context Free Languages, Pumping Lemma, Not Regular, Regular Languages, Languages, Same Number, Some Intuition, Pushdown Automaton, Context-Free Grammar, Derivations
Typology: Slides
1 / 15
This page cannot be seen from the preview
Don't miss anything!
1
= {a
n
b
n
: n ≥ 0}
2
= {x: x has same number of as and bs}
3
n
: n is prime}
4
= {a
n
b
n
c
n
: n ≥ 0}
5
= {x#x
R
: x ∈ {0, 1}*}
6
= {x#x: x ∈ {0, 1}*}
4
B → CS | b
C → SB | a
⇒ aSC
⇒ aBCC
⇒ abCC
⇒ abaC
⇒ abaSB
⇒ abaBCB
⇒ ababCB
⇒ ababaB
⇒ ababab
S ⇒ BC
⇒ CSC
⇒ aSC
⇒ aBCC
⇒ abCC
⇒ abaC
⇒ abaSB
⇒ abaBCB
⇒ ababCB
⇒ ababaB
⇒ ababab
a
b a b a b
n
n
u
v
v
v
w
x
y
3
3
A
A
A
A
x
x
Pumping lemma for context-free
languages
i
i
u w y
x v
Pumping lemma for context-free
languages
i
i
u w y
x v
adversary
choose n
write z = uvwxy
(|vwx| ≤ n,|vx| ≥ 1)
you
choose z ∈ L
choose i
you win if uv
i
wx
i
y ∉ L
1
2
adversary
n
write z = uvwxy
you
z = a
n
b
n
c
n
i =?
1
2
4
n
n
n
u w y
x v
2
2
2
2
x
v
a a a ... a a b b b ... b b c c c ... c c
x
v
a a a ... a a b b b ... b b c c c ... c c