Sei sulla pagina 1di 4
C 3152 B.E/B.Tech. DEGREE EXAMINATION, MAY/JUNE 2007. Fifth Semester Computer Science and Engineering CS 1303 — THEORY OF COMPUTATION (Regulation 2004) ‘Time : Three hours . Maximum : 100 marks 10. Answer ALL questions. PART A — (10 x 2 = 20 marks) What is a finite automation? Give two examples. Enumerate dhe differences between DPA and NPA. Verify whether L={2™ |n 21} is regular. Mention the closure properties of regular languages. Let the productions of a grammar be S > 0B|1A, A> 00S [1 AA,B->1 |1S| OBB. For the string 0110 find a rightmost derivation. Define the languages generated by a PDA using the two methods of accepting a language, State pumping lemma for context - free language. Define a Turing Machine. Differentiate between recursive and recursively enumerable languages. Mention any two undecidability properties for recursively enumerable languages. PART B — (6 x 16 = 80 marks) 11. (a) @ Prove the following by the principle of induction po = M2 +1) Qn +1) 6 (ii) For the finite state machine M given in the following table, test whether the strings 101101,11111 are accepted by M. Cy State Input 0 1 F-@ wm % DN Gs GG Oc n Ge (iii) Construct a DFA that accepts all the strings on {0,1} except those containing the substring 101. © Or (b) G@) Prove that there is no string x in (a, b)* such that ax = xb. 6) i) Construct a non-deterministic finite automation accepting the same set of strings over (a, b} ending in aba, Use it to construct a DFA accepting the same set of ‘strings. (10) 12, (a) (i) Verify whether the finite automata M, and M, given below are equivalent over (a, bl. (3) (ii) Construct transition diagram of a finite automaton corresponding to the regular expression (a b + c#)* b. (8) Or C3152 2 (b) Gi) Gi) Construct a minimum state automaton equivalent to a given automaton M whose transition table is given below. State Input ab PH Hm % nN % 4% WM Ge % Ys UW % % Wom Ou a 8) Find the regular expression corresponding to the finite automaton given helow (8) 13. (a) (i) Gi) (iii) Find a derivation tree of a¥*b+a+b given that a*b+a*b is in L(G) where Gis given by $ 4S +S|S#8,S ald © Show that the grammar S~>a|abSb| aAb,A>bS|aAAb is ambiguous. ) Consider the following productions: S—aBlba A aS [bAAla BbS|aBB|b. For the string aaabbabbba, find a leftmost derivation. cc) Or C3152

Potrebbero piacerti anche

  • Toc MJ07
    Toc MJ07
    Documento4 pagine
    Toc MJ07
    chituuu
    Nessuna valutazione finora
  • PCD ND07
    PCD ND07
    Documento3 pagine
    PCD ND07
    chituuu
    Nessuna valutazione finora
  • PCD Am08
    PCD Am08
    Documento3 pagine
    PCD Am08
    chituuu
    Nessuna valutazione finora
  • MG1351 POM Nov/Dec Question Paper
    MG1351 POM Nov/Dec Question Paper
    Documento2 pagine
    MG1351 POM Nov/Dec Question Paper
    sinisterlm
    Nessuna valutazione finora
  • Toc Am08
    Toc Am08
    Documento2 pagine
    Toc Am08
    chituuu
    Nessuna valutazione finora
  • MPMC ND07
    MPMC ND07
    Documento2 pagine
    MPMC ND07
    chituuu
    Nessuna valutazione finora
  • PCD Am08
    PCD Am08
    Documento3 pagine
    PCD Am08
    chituuu
    Nessuna valutazione finora
  • Document
    Document
    Documento1 pagina
    Document
    chituuu
    Nessuna valutazione finora
  • Document
    Document
    Documento1 pagina
    Document
    chituuu
    Nessuna valutazione finora
  • Document
    Document
    Documento1 pagina
    Document
    chituuu
    Nessuna valutazione finora
  • Document
    Document
    Documento1 pagina
    Document
    chituuu
    Nessuna valutazione finora
  • Ai Am08
    Ai Am08
    Documento3 pagine
    Ai Am08
    chituuu
    Nessuna valutazione finora
  • DBMS MJ07
    DBMS MJ07
    Documento3 pagine
    DBMS MJ07
    chituuu
    Nessuna valutazione finora
  • CS1302 CN 2008 Question Paper
    CS1302 CN 2008 Question Paper
    Documento3 pagine
    CS1302 CN 2008 Question Paper
    sinisterlm
    Nessuna valutazione finora
  • Toc Am08
    Toc Am08
    Documento2 pagine
    Toc Am08
    chituuu
    Nessuna valutazione finora
  • PCD ND07
    PCD ND07
    Documento3 pagine
    PCD ND07
    chituuu
    Nessuna valutazione finora