VB MMO-41(P3) Theory of Computation-II, 2016
Visva-Bharati question paper, M.Sc. Mathematics Semester IV, 2016. Theory of Computation-II. Typed in LaTeX, searchable, with a printable PDF.
Open this paper in MathQP
- Let G= langle S,A , 0,1,2 ,P,S rangle where P consists of par S to 0SA2 mid 012, 2A to A2, 1A to 11 . par Show that L(G)= 0 n1 n2 n mid n ge 1 .
- Find a grammar G generating L(G)= a nb nc i mid n ge 1;i ge 0 .
- Define a recursively enumerable set. Show that a context-sensitive language is recursive.
- Define regular expression. Construct a deterministic finite automaton whose behaviour is the valuation of the regular expression ab(a mid b) *ba .
- Construct a regular grammar G generating the regular set represented by the regular expression a *b(a mid b) * .
- Show that L= a p mid p is prime is not a regular set.
- Define a context-free grammar. When can a context-free grammar be ambiguous? Show that for the grammar G with production rules par hspace * 4em S to aAa; par hspace * 4em A to Sb mid bCC mid DaA; par hspace * 4em C to abb mid DD; par hspace * 4em D to aDA; par hspace * 4em E to aC, par there exists a reduced grammar which is equivalent to G.
- Define a Push-down automaton. Define an instantaneous description of a Push-down automaton. Explain the move operation between instantaneous descriptions.
- What is top-down parsing? Using FIRST() and FOLLOW() functions construct a top-down parser for L(G) , the language of arithmetic expressions involving + and * generated by the production rules par hspace * 4em E to E+T mid T par hspace * 4em T to T*F mid F par hspace * 4em F to (E) mid id. par Hence obtain a top-down parsing for w=id+id*id . par hfill P.T.O.
- Define a Turing machine, an instantaneous description of a Turing machine. Consider a Turing machine described by the transition table: par l|c|c|c|c|c 0 1 x y b hline q 1 xRq 2 bRq 5 q 2 0Rq 2 yLq 3 yRq 2 q 3 0Lq 4 xRq 5 yLq 3 q 4 0Lq 4 xRq 1 q 5 yRq 5 bRq 6 (q 6) Describe the processing of the string `0011' using instantaneous descriptions. When a string w in Sigma * is said to the accepted by a Turing machine? Design a Turing machine to recognize the language 1 n2 n3 n mid n ge 1 .
- Define primitive recursive function over N= 0,1,2, ldots . Show that the function f(x,y)=x.y is primitive recursive. When is a function said to be partial recursive? When can a function be Turing computable? Design a Turing machine for computing the successor function S(x) . Use it to show that S(1)=2 .