JNTU

JNTU B.Tech II FORMAL LANGUAGES AND AUTOMATA THEORY Previous Question Paper (May - 2019 - R13)

B.Tech | II | II | R13 | May - 2019

Answer PaperPaper Code: 114AGMaximum Marks: 75Time: 3 Hours

Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.

Part A

125 marks
a

Define DFA and NFA.

2 marks

Answer

A Deterministic Finite Automaton (DFA) is a 5-tuple (Q, Σ, δ, q0, F) where for every state and input symbol, there is exactly one transition to a next state. An Nondeterministic Finite Automaton (NFA) is a 5-tuple where the transition function δ maps to a power set of states, allowing zero, one, or multiple possible next states for a given input.

b

Design NFA to accept set of all strings over {0,1} does not contain 3 consecutive zeros.

3 marks

Answer

To accept strings not containing '000', the NFA tracks the number of consecutive zeros seen. Let states be q0 (0 zeros), q1 (1 zero), q2 (2 zeros), and q3 (dead state for 3 zeros). Transitions: δ(q0, 1)=q0, δ(q0, 0)=q1, δ(q1, 1)=q0, δ(q1, 0)=q2, δ(q2, 1)=q0, δ(q2, 0)=q3. Final states are {q0, q1, q2}.

c

Define Left Linear Grammar.

2 marks

Answer

Sign in to view the complete answer paper.

d

Define Pumping Lemma for Regular sets.

3 marks

Answer

Sign in to view the complete answer paper.

e

Define UNIT Production.

2 marks

Answer

Sign in to view the complete answer paper.

f

What is reachable variable? Give an example.

3 marks

Answer

Sign in to view the complete answer paper.

g

Give instantaneous description ID of Turing Machine.

2 marks

Answer

Sign in to view the complete answer paper.

h

What is a Turing Machine?

3 marks

Answer

Sign in to view the complete answer paper.

i

Give any two examples of Decidable Problems.

2 marks

Answer

Sign in to view the complete answer paper.

j

Define NP hard problems.

3 marks

Answer

Sign in to view the complete answer paper.

Unit I

210 marks
a

Minimizing the following DFA as shown in figure 1.

6 marks

Answer

Sign in to view the complete answer paper.

b

Define Mealy and Moore Machines.

4 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Convert the following NFA with € - moves to DFA as shown in Figure 2.

5 marks

Answer

Sign in to view the complete answer paper.

b

Design DFA for the language all strings over {0,1} which are ending with 00.

5 marks

Answer

Sign in to view the complete answer paper.

Unit II

410 marks
a

Show that the language L={ anbn / n≥1 } is not a Regular language.

5 marks

Answer

Sign in to view the complete answer paper.

b

Find the Regular Grammar equivalent to the following Finite Automata shown in figure 3.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Construct Right Linear Grammar and Left Linear Grammar for the Regular Expression 0*(11)* + 1001*

6 marks

Answer

Sign in to view the complete answer paper.

b

Give the RE for (i) All strings over {a,b} which contains even number of a's (ii) All strings over {a,b} which contains at least two a's (iii) All strings over {a,b} which contains at most two a's (iv) All strings over {a,b} which contains exactly two a's.

4 marks

Answer

Sign in to view the complete answer paper.

Unit III

610 marks
a

Minimize the following Context Free Grammar G=({S,A,B,C}, {a,b,c,d},P,S), where P is given as follows S→AC | SB, A→ bASC | a, B→ aSB | bbB, C→ Bc | ad

5 marks

Answer

Sign in to view the complete answer paper.

b

Design PDA for the language L={a2nbnc4 /n≥1}.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Convert the following Context Free Grammar (CFG) to Chomskey Normal Form (CNF): S→AaB | aaB, A→€, B→bbA | €

5 marks

Answer

Sign in to view the complete answer paper.

b

Design PDA for the language L={anbn+mcm | n,m≥1}.

5 marks

Answer

Sign in to view the complete answer paper.

Unit IV

810 marks
a

Explain different types of Turing Machine.

5 marks

Answer

Sign in to view the complete answer paper.

b

Design TM for performing proper subtraction of two numbers.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Church’s hypothesis.

5 marks

Answer

Sign in to view the complete answer paper.

b

Counter machine.

5 marks

Answer

Sign in to view the complete answer paper.

Unit V

1010 marks
a

Discuss about turing reducibility.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is post correspondence problem? Verify whether the following PCP has solution or not? A={ba,ab,a,baa,b}, B={bab,baa,ba,a,aba}

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Define the NP-complete problems and give examples.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of FORMAL LANGUAGES AND AUTOMATA THEORY from JNTU for B.Tech CSE II II, May - 2019, R13.

For the question paper without answers, switch to the Question Paper tab.

Other papers in FORMAL LANGUAGES AND AUTOMATA THEORY

Loading Question Papers

Fetching data from database...