JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II FORMAL LANGUAGES AND AUTOMATA THEORY Previous Question Paper (December - 2017 - R15)

B.Tech | II | II-II | R15 | December - 2017

Answer PaperPaper Code: 124AGMaximum 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. Each question carries 10 marks.

Part A

125 marks
a

Define Transition diagram.

2 marks

Answer

A transition diagram is a directed graph representation of a finite automaton. Nodes represent states, and directed edges labeled with input symbols represent transitions between states. The start state is indicated by an incoming arrow, and final states are represented by double circles.

b

Explain about ε-closure().

3 marks

Answer

The ε-closure(q) is the set of all states reachable from state q using only ε-transitions (transitions that do not consume any input symbol). It includes the state q itself and all states reachable through a sequence of one or more ε-moves.

c

Write a short note on Derivation Tree.

2 marks

Answer

Sign in to view the complete answer paper.

d

Explain Rightmost Derivation with an example.

3 marks

Answer

Sign in to view the complete answer paper.

e

Define Chomsky Normal Form.

2 marks

Answer

Sign in to view the complete answer paper.

f

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

3 marks

Answer

Sign in to view the complete answer paper.

g

Write a short note on Church’s hypothesis.

2 marks

Answer

Sign in to view the complete answer paper.

h

Write a short note on Recursively Enumerable languages.

3 marks

Answer

Sign in to view the complete answer paper.

i

Write about decidability of problems.

2 marks

Answer

Sign in to view the complete answer paper.

j

Define NP-complete problems.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Convert the Moore machine to determine residue mod 3 into Mealy machine.

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct the minimum state automata for the following.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Convert the following NFA with ε to equivalent DFA.

5 marks

Answer

Sign in to view the complete answer paper.

b

Design NFA accepting string with a’s and b’s such that string containing two consecutive a’s or two consecutive b’s.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

For the following grammar give the leftmost and rightmost derivation for the string ‘00101’. S → A1B, A → 0A / ε, B → 0B / 1B / ε

5 marks

Answer

Sign in to view the complete answer paper.

b

Prove that the following language {anbn | n ≥ 1} is not a regular.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Write a R.E. for the following DFA.

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct the right linear grammar for the language (0+1)*00(0+1)*.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Convert the following grammar to Greibach Normal Form: S→ABA | AB | BA | AA | B, A→aA | a, B→bB | b

5 marks

Answer

Sign in to view the complete answer paper.

b

Convert the following Context Free Grammar into Chomsky Normal Form: S→aaaaS | aaaa

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Reduce the following grammar such that there are no UNIT productions: S → AA, A → B | BB, B → abB | b | bb

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct CFG for the PDA M = ({q0,q1}, {0,1}, {R,Z0}, δ, q0, Z0, Φ).

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Design a TM to recognize the language L= {0n1n0n | n ≥ 1}.

5 marks

Answer

Sign in to view the complete answer paper.

b

Design TM which will recognize strings containing equal number of a's and b's.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Design a TM to accept the language L= {w c wR | w ε (a+b)*}.

5 marks

Answer

Sign in to view the complete answer paper.

b

Design a TM to recognize all strings consisting of odd number of 1's.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Give the closure properties of deterministic context free languages.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are undecidable problems? Give example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Give definitions of P and NP problems.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain TM halting problem.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of FORMAL LANGUAGES AND AUTOMATA THEORY from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CSE II II-II, December - 2017, R15.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in FORMAL LANGUAGES AND AUTOMATA THEORY

Loading Question Papers

Fetching data from database...