VB MMO-41(P3) Theory of Computation-II, 2018
Visva-Bharati question paper, M.Sc. Mathematics Semester IV, 2018. Theory of Computation-II. Typed in LaTeX, searchable, with a printable PDF.
Open this paper in MathQP
- Define a grammar G and the language generated by G . par Consider a grammar G= langle S,C , a,b ,P,S rangle , par where P= S to aCa; C to aCa mid b . par Compute L(G) , the language generated by G .
- Let L be the set of all palindromes over sum = a,b . Construct a grammar G generating the language L .
- Define a recursive set. Show that a context-sensitive language is recursive.
- Define a regular expression. Construct a minimal state finite automation equivalent to the regular expression left (a *+b * right )abb .
- Define a regular set. Construct a regular grammar G generating the regular set a *b(a+b) * .
- Show, by using Pumping lemma for regular set, that the set L= left ww mid w in a,b * right is not regular.
- Define Chomsky Normal Form of a Context-Free Grammar. Reduce the following grammar G= langle S,A,B , b,c ,P,S rangle , where P= S to ASA mid bA, A to B mid S, B to c to Chomsky Normal Form.
- Is it possible for a regular grammar to be ambiguous?
- A Context-Free Grammar is defined by the productions S to a mid Sa mid bSS mid SSb mid SbS . Show that every string in L(G) has more a's than b's.
- Show that L= a p mid p is a prime is not a Context-Free language.
- Define a push-down automaton. Construct a push-down automaton A , accepting the set of all strings over a,b with equal number of a's and b's.
- Consider the following grammar for arithmetic expression par hspace * 2em E to E+T mid T par hspace * 2em T to T*F mid F par hspace * 2em F to (E) mid id. par Construct a predictive parsing table and write down the moves by a predictive parser on input id+id*id .
- Define a Turing machine. par Design Turing machines par hspace * 1em i) enspace that copies strings of 1's and ; par hspace * 1em ii) enspace that accepts 0 n1 n mid n ge 1 . par hfill P.T.O. ( 2 )
- Consider a Turing machine described by the following table: par l|c|c|c Present states backslash Input not ! c blank 1 hline to (q 1) not ! c ,Rq 1 --- blank ,Rq 2 q 2 --- --- blank ,Rq 1 Generate the type-0 grammar that corresponds to the Turing machine.
- Define regular function and partial recursive function over mathbb N . Show that f(x)= frac x2 is a partial recursive function over mathbb N .
- Explain Turing model for computation. Design a Turing machine for computing the successor function.