Professional Documents
Culture Documents
Theory of Computation PDA Quiz
Theory of Computation PDA Quiz
Submit your solutions to this take-home, open books/notes Quiz 3 before 10 p.m.,
Sunday, April 7, uploaded to Canvas. No late submissions will be accepted.
2 (20 points) Draw a dpda that accepts the following deterministic context-free
language:
L2 = { w ∈ {a,b}*: an(bb)n for n ≥1 }.
Enter your dpda into JFLAP and run the following 12 test cases as input strings:
abb
aabbbb
aaabbbbbb
aaaabbbbbbbb
a
bbbbaa
ab
aababb
aabb
aaabbbb
aabbbbbbbb
Page 1 of 2
3. (20 points) Determine whether each of the following ten languages are:
Regular
Deterministic context-free, but not regular
Context-free, but not deterministic context-free
Not context-free
In each case you do not have to prove your answer; simply state which of the 4
types of language it is.
Page 2 of 2