COMP3630/6360: Theory of Computation Semester 1, 2020 The Australian National University Normal Forms and Closure Properties
1 / 33
COMP3630/6360: Theory of Computation Semester 1, 2020 The - - PowerPoint PPT Presentation
COMP3630/6360: Theory of Computation Semester 1, 2020 The Australian National University Normal Forms and Closure Properties 1 / 33 This lecture covers Chapter 7 of HMU: Properties of CFLs Chomsky Normal Form Pumping Lemma for CFGs
1 / 33
Chomsky Normal Form (CNF) for CFG
3 / 33
Chomsky Normal Form (CNF) for CFG
4 / 33
Chomsky Normal Form (CNF) for CFG
∗
G ǫ.
5 / 33
Chomsky Normal Form (CNF) for CFG
aProof in the Additional Proofs Section at the end 6 / 33
Chomsky Normal Form (CNF) for CFG
∗
G B
∗
G A).
∗
G B, but (A, B) is
7 / 33
Chomsky Normal Form (CNF) for CFG
bOutline of the proof is given in the Additional Proofs Section at the end 8 / 33
Chomsky Normal Form (CNF) for CFG
∗
G w for some w ∈ T ∗;
∗
G αXβ for some α, β ∈ (V ∪ T)∗; and
∗
G αXβ
∗
G w for some w ∈ T ∗ and α, β ∈ (V ∪ T)∗.
∗
G s. So s is generating
∗
G S so S is reachable.
9 / 33
Chomsky Normal Form (CNF) for CFG
10 / 33
Chomsky Normal Form (CNF) for CFG
cProof in the Additional Proofs Section at the end 11 / 33
Chomsky Normal Form (CNF) for CFG
dOutline of the proof is given in the Additional Proofs Section at the end 12 / 33
Chomsky Normal Form (CNF) for CFG
13 / 33
Pumping Lemma for CFLs
14 / 33
Pumping Lemma for CFLs
15 / 33
Pumping Lemma for CFLs
X X S ... X S ... X X S ... X |{z}
| {z }
| {z } | {z }
u v w x y u w y u v w x y x v
16 / 33
Pumping Lemma for CFLs
17 / 33
Closure Properties
18 / 33
Closure Properties
19 / 33
Closure Properties
∗
∗
∗
∗
∗
∗
∗
∗
∗
z }| {
20 / 33
Closure Properties
21 / 33
Closure Properties
22 / 33
Closure Properties
23 / 33
Closure Properties
1 ∪ Lc 2)c must be a CFL, but it is not.
24 / 33
Decision Properties
25 / 33
Decision Properties
26 / 33
Decision Properties
a1 a2 a3 a‘ · · · E1;1 E2;2 E3;3 E‘;‘ E1;2 E2;3 E3;4 E‘−1;‘ · · · · · · E‘−2;‘ E1;3 E2;4 · · · E1;‘−1 E2;‘ E1;‘ . . . ... . . .
27 / 33
Decision Properties
28 / 33
Additional Proofs
29 / 33
Additional Proofs
A . . . . . . sub-yield = › A − ! BCD A . . . . . .
G
A − ! CD yield: w yield: w ⇐ ⇒ Gno-› B C D S S C D
z }| {
30 / 33
Additional Proofs
∗
G B and B −
∗
G α in G.
31 / 33
Additional Proofs
G
Rule: R1
G
R2
G
R3
G
Rk
32 / 33
Additional Proofs
yield: w yield: w ... A B1 B2 B3 Bk−1 Bk D1 D2 Dk−2
. . . . . . S S ⇒ . . . B1 B3 Bk · · · B2 . . . G ˆ G
33 / 33