Decidable Problems about Context-Free Languages (CFLs)stchang/cs420/f20/lectures/... · 2020. 10....
22
Decidable Problems about Context-Free Languages (CFLs)
Transcript of Decidable Problems about Context-Free Languages (CFLs)stchang/cs420/f20/lectures/... · 2020. 10....
-
Decidable Problems about
Context-Free Languages (CFLs)
-
HW 5/6 questions?
-
•
•
-
•
•
•
•
•
-
•• w G
•• G
• S -> 0S or S -> S
•
••
-
• n• n
• n – 1
• 2n – 1 n
-
S0• S0 S S
-
S0• S0 S S
A ε • A
• A A• R uAv R uv
• A• R uAvAw R uvAw, R uAvw, R -> uvw
-
S0• S0 S S
A ε • A
• A A• R uAv R uv
• A• R uAvAw R uvAw, R uAvw, R -> uvw
A B • B u A u
-
S0• S0 S S
A ε • A
• A A• R uAv R uv
• A• R uAvAw R uvAw, R uAvw, R -> uvw
A B • B u A u
• A wxyz A wB, B xC, C yz
• W w, X x, Y y, Z z
-
•
-
•
•
-
• G •
-
•
•
• C
••
-
•
• A ∩ B =
•
-
•
-
•
•
•
•
-
••
•
••
••
•
-
Check-in Quiz 10/28
End of Class Survey 10/28