JNTU

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

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

Answer PaperPaper Code: 134BDMaximum 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 Kleene Closure and Positive Closure?

2 marks

Answer

Kleene Closure of a set of strings Σ, denoted by Σ*, is the set of all strings of length zero or more formed by concatenating zero or more symbols from Σ. Positive Closure, denoted by Σ+, is the set of all strings of length one or more formed by concatenating one or more symbols from Σ. Mathematically, Σ+ = Σ* - {ε}.

b

Define Moore Machine?

3 marks

Answer

A Moore Machine is a finite state machine whose output values are determined solely by its current state. It is defined by a 6-tuple (Q, Σ, Δ, δ, λ, q₀), where Q is a finite set of states, Σ is the input alphabet, Δ is the output alphabet, δ is the transition function (Q × Σ → Q), λ is the output function (Q → Δ), and q₀ is the initial state.

c

Define a Regular Expression.

2 marks

Answer

Sign in to view the complete answer paper.

d

Find the simplified regular expression for the following regular expression r(r*r + r*) + r*?

3 marks

Answer

Sign in to view the complete answer paper.

e

Define Context Free Grammar.

2 marks

Answer

Sign in to view the complete answer paper.

f

Define Push Down Automata.

3 marks

Answer

Sign in to view the complete answer paper.

g

Define Turing machine.

2 marks

Answer

Sign in to view the complete answer paper.

h

What is Chomsky Normal Form?

3 marks

Answer

Sign in to view the complete answer paper.

i

What is undecidable problem?

2 marks

Answer

Sign in to view the complete answer paper.

j

Compare recursive and recursive enumerable languages.

3 marks

Answer

Sign in to view the complete answer paper.

PART - B

2

Construct NFA with ε which accepts a language consisting the strings of any number of 0’s followed by any number of 1’s followed by any number of 2’s And also convert into NFA without ε transitions.

10 marks

Answer

Sign in to view the complete answer paper.

OR
3

Construct the Moore machine to determine residue mod 3 and convert into Mealy machine.

10 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Test whether the following two FSM’s are equivalent.

5 marks

Answer

Sign in to view the complete answer paper.

b

Apply pumping lemma for the language L={an | n is prime} and prove that it is not regular?

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

Construct the regular expression corresponding to the language accepted by following DFA.

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Elaborate on left most derivation and right most derivation.

5 marks

Answer

Sign in to view the complete answer paper.

b

Design Push down Automata for L = {a2nbn | n ≥ 1}.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

Construct the CFG for the PDA M = ({q0,q1}, {0,1}, {R,Z0}, δ, q0, Z0, Φ) and δ is given by
δ(q0,1,Z0)=(q0,RZ0)
δ(q0,1,R)=(q0,RR)
δ(q0,0,R)=(q1,R)
δ(q1,0, Z0)=(q0, Z0)
δ(q0,ε, Z0)=(q0,ε)
δ(q1,1,R)=(q1,ε).

10 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

List out and discuss the closure properties of CFL.

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct CFG without ε – production from the one which is given below:
S → a | Ab | aBa
A → b | ε
B → b | A

5 marks

Answer

Sign in to view the complete answer paper.

OR
9

Design a Turing Machine to accept L={WcWR | W is in (a+b)*}.

10 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Discuss in brief about NP Hard problems.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the examples of undecidable problems.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain about the undecidable problems about turing machines.

5 marks

Answer

Sign in to view the complete answer paper.

b

Distinguish between class P and class NP Problems.

5 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, R16.

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...