Theory of Computation Question For Unit 4
Theory of Computation Question For Unit 4
THEORY OF COMPUTATION
DEPARTMENT OF COMPUTER ENGINEERING
Subject : TOC ASSIGNMENT NO – 04 Unit : IV
THEORY QUESTION
i ) By Final State
ii ) By Empty state
Construct PDA that accepts all palindrome string over {a, b} . Specify
simulation for string ‘aba’.
9. Explain Closure property of PDA with suitable example.
10. Construct PDA that accepts the language by the following CFG.SSS| (S) | ( )
11. Design a PDA for accepting a language L = {an bm cn | m,n>= l}
12. Design a PDA for accepting Language L = {W c WR | W ∈ (a,b)*}.
13. Construct PDA that accepts following language L anbn | n 0.Write simulation
for string ‘aaabbb’
n 2n
14. Design a PDA for the following LanguageL = {a b | n >=0}
15. Show that: L anbncn | n 1 not a CFL
2n n
16. Design a PDA for the following LanguageL = {a b | n >=1} n=3
17. What is Post Machine? Give formal definition of Post Machine. Construct a Post
Machine for accepting strings with equal number of a’s and b’s.
19. 13. Construct post Machine that accepts the following language.
L a b a | n 0
n n n
CFG TO PDA
S -> aSb | A
A -> bSa | S | Ɛ
NPDA
22.
23.
24.
26.
Give Context Free Grammar (CFG) generating the language accepted
by the PDA M = {(q0, q1), (a ,b), , q0, Z0, q1} where δ is as follows.
1. (q0, a, Z0) (q0, XZ0)
2. (q0, a, X) (q0, XX)
3. (q0, b, X) (q1, ∈ )
4. (q1, b, X) (q1, ∈ )
5. (q1, ∈ , Z0) (q1, ∈ )
27.
28.
29.
MISCELLNEOUS EXAMPLES
30.
31.
*********************THE END********************