Toc university paper 2018-19 PDF

Title Toc university paper 2018-19
Author Aanjey Mani Tripathi
Course Theory of Computation
Institution APJ Abdul Kalam Technological University
Pages 2
File Size 254.5 KB
File Type PDF
Total Downloads 102
Total Views 122

Summary

Download Toc university paper 2018-19 PDF


Description

www.FirstRanker.com Printed Pages: 02 Paper Id: 110257

www.FirstRanker.com RCS403 Sub Code: RCS403

Roll No.

B TECH (SEM-IV) THEORY EXAMINATION 2018-19 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. a. b. c. d. e. f. g.

2 x 7 = 14 *

For the given language L1 = ε, L2 = {a}, L3 = Ø. Compute L1 L2 U L3*. Design a FA to accept the string that always ends with 101. Write regular expression for set of all strings such that number of a’s divisible by 3 over Σ = {a,b} Construct the CFG for the Language L = {a2nbn |n>=3}. What do you mean by ε-Closure in FA? Explain Universal TM. Explain Two Stack PDA. SECTION B

Attempt any three of the following:

7 x 3 = 21

Construct a minimum state DFA from given FA

b.

Fig. 1 Find the regular expression corresponding to the finite automata given bellow:

tR

a.

w w w .F irs

2.

Fig. 2 P.T.O Page 1 of 2

www.FirstRanker.com

www.FirstRanker.com c. d. e.

www.FirstRanker.com RCS403

Convert the following CFG to its equivalent GNF: S → AA | a, A → SS | b. Design a PDA for the following language: L = {aibjck | i = j or j = k} Design a TM for the following language: L = { an+2bn | n >0 } SECTION C

Attempt any one part of the following: (a) (b)

Attempt any one part of the following: (a) (b)

5.

7x1=7

Prove that the following Language L = {anbn} is not regular Explain the Closure properties of regular expression.

Attempt any one part of the following: (a) (b)

6.

Design FA for ternary number divisible by 5. Explain Myhill-Nerode Theorem using suitable example.

7x1=7

Design the CFG for the following language: i) L = {0m1n | m ≠ n & m,n ≥ 1} ii) L = {albmcn | l + m = n & l,m ≥ 1} Prove that the following Language L = {anbncn} is not Context Free.

Attempt any one part of the following:

Design a PDA for the Language L ={WWR | W={a,b}*} Generate CFG for the given PDA M is defined as M = ({q0, q1}, {0,1} {x, z0}, δ, q0, z0, q1) where δ is given as follows: δ (q0,1, z0) = (q0, xz0) δ (q0,1, x) = (q0, xx) δ (q0,0, x) = (q0, x) δ (q0, ε, x) = (q1, ε) δ (q1, ε, x) = (q1, ε) δ (q1,0, x) = (q1, xx) δ (q1,0, z0) = ( q1, ε)

7.

w w w .F irs

tR

an

(a) (b)

7x1=7

om

4.

7x1=7

ke r.c

3.

Attempt any one part of the following: (a) (b)

7x1=7

Design a TM for the following language: L = { anbncn | n≥ 1} Write short note on: i) Recursive Language and Recursively Enumerable Language. ii) PCP problem and Modified PCP Problem

Page 2 of 2

www.FirstRanker.com...


Similar Free PDFs