Theory of Computation: Vignan University:: Vadlamudi - 522 213
Theory of Computation: Vignan University:: Vadlamudi - 522 213
UNIT 7 I
". onsider the follo2ing
3 4F!.
b {q } {r} c {r} {p}
q *r p {p } {q }
a {p } {q } {r}
-.
a& o)5ute the 3 closure of each state. ,& Gi9e all the strings of length three (or& less acce5ted ,y the auto)aton. c& on9ert the auto)aton to a +F!. 8%R9 State and 5ro9e 0yhill34eroche Theore).
UNIT 7 II 3. a& :rite closure 5ro5erties of regular languages. 6%08 ,& :rite regular e*5ression for the follo2ing language ;set of strings o9er al5ha,et <a, ,, c= containing at least one a and at least one ,>. 6%08
8%R9
7.
a& Find regular gra))ar for the language ? @ < an ,)/n A ) is e9en=. ,& Sho2 that ? @ < z n / n "= is not regular.
6%08 6%08
UNIT 7 III $. a& Gi9e conte*t free gra))ar for the language ? @ <ai ,B 1/ i B (or& i 1= ,& Gi9e the decision 5ro5erties of onte*t Free ?anguages ( F?S&. %. 8%R9 onsider the gra))ar. S a ! a D ,(, D ! Da ( D, +E D + ! D ( D a, a& !re there any useless sy),ols. Eli)inate the) if so.
" of -
6708
Regulation : R09/R10
6708 6708
- of -
Regulation : R09/R10
UNIT 7 IV F. a& Gi9e the definition of Gush +o2n !uto)ata(G+!& and difference ,et2een non deter)inistic G+! and deter)inistic G+!. 6708 ,& onstruct G+! for the language. 6C08 ?@
{ ww / w <a,b,c=H}
R
:here 2R is re9erse of 2
C.
8%R9
6"-08
:here na(2& is nu),er of as in 2 n,(2& is nu),er of ,s in 2. UNIT 7 V #. a& (riefly e*5lain a,out Uni9ersal Turing 0achine ,& (riefly discuss churchs thesis. 8%R9 ".. 6%08 6%08
Gi9e the definition of Turing 0achine (T0& and construct T0 for the language. 6"-08 ? @ {. i "i -i / i .}
3 of -