

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


DR VIJAY KUMAR GUPTA
| 14-May-2019 08:57:27 | 45.115.62.
DR VIJAY KUMAR GUPTA | 14-May-2019 08:57:27 | 45.115.62.
RCS
Page 1 of 2
Printed Pages: 02 Sub Code: RCS Paper Id: 110257 Roll No. B TECH (SEM-IV) THEORY EXAMINATION 2018- THEORY OF AUTOMATA AND FORMAL LANGUAGES
Time: 3 Hours Total Marks: 70 Note: Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
1. Attempt all questions in brief. 2 x 7 = 14
a. For the given language L 1 = ε, L 2 = {a}, L 3 = Ø. Compute L 1 L 2 *^ U L 3 *^. b. Design a FA to accept the string that always ends with 101. c. Write regular expression for set of all strings such that number of a’s divisible by 3 over Σ = {a,b} d. e. f. g.
Construct the CFG for the Language L = {a2n^ bn^ |n>=3}. What do you mean by ε-Closure in FA? Explain Universal TM. Explain Two Stack PDA. SECTION B
2. Attempt any three of the following: 7 x 3 = 21
a. Construct a minimum state DFA from given FA
Fig. 1 b. Find the regular expression corresponding to the finite automata given bellow:
Fig. 2
P.T.O
DR VIJAY KUMAR GUPTA
| 14-May-2019 08:57:27 | 45.115.62.
DR VIJAY KUMAR GUPTA | 14-May-2019 08:57:27 | 45.115.62.
RCS
Page 2 of 2
c. Convert the following CFG to its equivalent GNF: S → AA | a, A → SS | b. d. Design a PDA for the following language: L = {a i^ bj^ c k^ | i = j or j = k} e. Design a TM for the following language: L = { a n+2^ bn^ | n >0 }
3. Attempt any one part of the following: 7 x 1 = 7
(a) Design FA for ternary number divisible by 5. (b) Explain Myhill-Nerode Theorem using suitable example.
4. Attempt any one part of the following: 7 x 1 = 7
(a) Prove that the following Language L = {a n^ bn^ } is not regular (b) Explain the Closure properties of regular expression.
5. Attempt any one part of the following: 7 x 1 = 7
(a) Design the CFG for the following language: i) L = {0 m 1 n^ | m ≠ n & m,n ≥ 1} ii) L = {a l^ b mc n^ | l + m = n & l,m ≥ 1} (b) Prove that the following Language L = {a n^ bn^ cn^ } is not Context Free.
6. Attempt any one part of the following: 7 x 1 = 7
(a) Design a PDA for the Language L ={WWR^ | W={a,b} *^ } (b) Generate CFG for the given PDA M is defined as M = ({q 0 , q1}, {0,1} {x, z 0 }, δ, q 0 , z 0 , q 1 ) where δ is given as follows: δ (q 0 ,1, z 0 ) = (q 0 , xz 0 ) δ (q 0 ,1, x) = (q 0 , xx) δ (q 0 ,0, x) = (q 0 , x) δ (q 0 , ε, x) = (q1 , ε) δ (q 1 , ε, x) = (q1 , ε ) δ (q 1 ,0, x) = (q 1 , xx) δ (q 1 ,0, z 0 ) = ( q 1 , ε)
7. Attempt any one part of the following: 7 x 1 = 7
(a) Design a TM for the following language: L = { a n^ bn^ cn^ | n≥ 1} (b) Write short note on: i) Recursive Language and Recursively Enumerable Language. ii) PCP problem and Modified PCP Problem