VB MMO-41(P10/A12) Theory of Computation-II, 2019
Visva-Bharati question paper, M.Sc. Mathematics Semester IV, 2019. Theory of Computation-II. Typed in LaTeX, searchable, with a printable PDF.
Open this paper in MathQP
- Define a phrase-structure grammar G . Define L(G) , language generated by G . If G= langle S , a,b , S to aS ,| ,bS ,| ,a ,| ,b ,S rangle , find L(G) . Construct a grammar G generating language L(G)= a nb nc i ,| ,n ge 1, i ge 0 .
- Define type-1 and type-2 rules in connection with context sensitive language (CSL) and Context Free Language (CFL) respectively. Show that L(CSL) supsetneqq L(CFL) .
- Define regular expression and valuation of regular expression. Show that every regular expression corresponds to a transition system.
- Construct a regular expression whose state diagram is given by unreadable figure: states q 1 (start, loop 0), q 2 (loop 1), q 3 ; edges q 1 to q 2 on 1, q 2 to q 3 on 0, q 3 to q 1 on 0, q 3 to q 2 on 1
- Construct a deterministic finite automaton corresponding to the regular expression (a * ,| ,b *)ab .
- Define a Context-Free Grammar (CFG). Find an equivalent reduced grammar corresponding to G= langle S,A,B,C , a,b ,P,S rangle where P= S to AB ,| ,CA, B to BC ,| ,AB, A to a, C to aB ,| ,b .
- Define a push-down automaton. Construct a deterministic push-down automaton accepting the language generated by a CFG, G= langle S,A,B,C , a,b,c ,P,S rangle where P= S to AB, A to Ca, B to Ba ,| ,Cb ,| ,b, C to cb ,| ,b .
- What is parsing? Construct a top-down parser for the grammar of arithmetic expressions involving + and * generated by the production rules par E to E+T ,| ,T , quad T to T*F ,| ,F , quad F to (E) ,| ,id . par Find a left-most derivation of (id+id)*id . par P.T.O.
- Define a Turing machine. A Turing machine is described by the transition table c|ccc blank 0 1 hline q 1 1Lq 2 0Rq 1 --- q 2 blank Rq 3 0Lq 2 1Lq 2 q 3 --- blank Rq 4 blank Rq 5 q 4 0Rq 5 0Rq 4 1Rq 4 q 5 0Lq 2 --- --- write down the computation sequence of the input string 00 blank .
- Design a Turing machine to recognize the language 1 n2 n3 n ,| ,n ge 1 .
- Define primitive and partial recursive functions over mathbb N . Show that f(x,y)=x y is primitive recursive. Construct a Turing machine to compute the projection function U i m . Hence compute U 2 3(1,2,1) .