JNTU

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

B.Tech | II | II | R16 | April - 2018

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. Each question carries 10 marks and may have a, b, c as sub questions.

Part A

125 marks
a

Define DFA.

2 marks

Answer

A Deterministic Finite Automaton (DFA) is a 5-tuple (Q, Σ, δ, q0, F) where Q is a finite set of states, Σ is a finite set of input symbols, δ: Q × Σ → Q is the transition function, q0 ∈ Q is the start state, and F ⊆ Q is the set of final states. For every state and input symbol, there is exactly one transition to a next state.

b

Write about the applications of Finite Automata?

3 marks

Answer

Finite Automata are used in several key areas:

  • Lexical analysis in compilers for token recognition.
  • Pattern matching and searching in text editors and grep tools.
  • Design and verification of digital circuits and communication protocols.
  • Natural language processing for morphological analysis.
c

If a Regular grammar G is given by S→aS/a Find DFA (M) accepting L(G)?

2 marks

Answer

Sign in to view the complete answer paper.

d

Construct a regular grammar for L= {0n11/n>=1}.

3 marks

Answer

Sign in to view the complete answer paper.

e

For the Grammar {S→AS/a, A→SbA/SS/ba} construct Left most derivation for the string aabbaaa?

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

What is the purpose of studying Turing Machine?

2 marks

Answer

Sign in to view the complete answer paper.

h

Write a Context free grammar for the language {0n1n/n>=1}.

3 marks

Answer

Sign in to view the complete answer paper.

i

Give an example of un decidable problem.

2 marks

Answer

Sign in to view the complete answer paper.

j

Define Post correspondence Problem.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Construct Minimum state Automata for the given DFA.

δ01
→Q1q2q6
q2q1q3
*q3q2q4
q4q4q2
q5q4q5
*q6q5q4
10 marks
b

Differentiate between NFA and DFA.

4 marks

Answer

Sign in to view the complete answer paper.

OR
3

Design DFA for the following over {a,b}. i) All strings containing not more than three a’s. ii) All strings that has at least two occurrences of b between any two occurrences of a.

10 marks
b

Construct a DFA accepting the set of all strings ending with 00?

5 marks

Answer

Sign in to view the complete answer paper.

4

Define Regular Expression? Explain about the Properties of Regular Expressions.

10 marks
b

Construct a DFA for the Regular Language consisting of any number of a’s and b’s.

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

Construct a DFA for the Regular expression (0+1)* (00+11) (0+1)*.

10 marks
b

Explain about the identity rules of Regular Expressions.

5 marks

Answer

Sign in to view the complete answer paper.

6

Define Ambiguous Grammar. Check whether the grammar S→aAB, A→bC/cd, C→cd, B→c/d Is Ambiguous or not?

10 marks
b

Construct a PDA for the following grammar S→AA/a, A→SA/b.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

Show that for every PDA there exists a CFG such that L(G)=N(P).

10 marks
b

Convert the grammar S→0AA, A →0S/1S/0 to a PDA that Accepts the same Language by Empty Stack.

5 marks

Answer

Sign in to view the complete answer paper.

8

Construct a Turing Machine that will accept the Language consists of all palindromes of 0’s and 1’s?

10 marks
b

Explain about types of Turing Machine.

5 marks

Answer

Sign in to view the complete answer paper.

OR
9

Obtain GNF for S→AB, A→BS/b , B→SA/a.

10 marks
b

Design a Turing Machine for L={0n1m0n1m/m,n>=1}.

5 marks

Answer

Sign in to view the complete answer paper.

10

Discuss in brief about NP Hard problems.

10 marks
b

Explain about the Decidability and Undecidability Problems.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Give an overview of recursively enumerable language.

10 marks
b

Give the correspondence between P, NP and NP-complete problems.

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 JNTU for B.Tech CSE II II, April - 2018, R16.

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