JNTU

JNTU B.Tech II Year FORMAL LANGUAGES AND AUTOMATA THEORY Previous Question Paper (December - 2018 - R15)

B.Tech | II Year | II-II | R15 | December - 2018

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 and may have a, b, c as sub questions.

PART- A

(25 Marks)

115 marks
a

Define DFA.

2 marks

Answer

A Deterministic Finite Automaton (DFA) is a mathematical model of computation used to recognize a set of all possible input strings. It consists of a finite set of states, a finite set of input symbols (alphabet), a transition function, a start state, and a set of accept states.

b

Design FA which accepts set of all strings ending with 00.

3 marks

Answer

The FA needs to accept strings ending with '00'.

States:

  • q0: Initial state, no '0' seen yet.
  • q1: Seen one '0' at the end.
  • q2: Seen '00' at the end (accept state).

Transitions:

  • From q0, on input '0', go to q1. On input '1', stay in q0.
  • From q1, on input '0', go to q2. On input '1', go to q0.
  • From q2, on input '0', go to q1. On input '1', go to q0.

Start State: q0

Accept State: q2

c

Define Left linear Grammar.

2 marks

Answer

Sign in to view the complete answer paper.

d

Give the regular expression for the language all string over alphabet {0,1} containing at least two 0’s.

3 marks

Answer

Sign in to view the complete answer paper.

e

What is ambiguity in CFG?

2 marks

Answer

Sign in to view the complete answer paper.

f

Write the context free grammar for the language L={anb2n/n≥1}

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

Define Type 0 Grammar.

3 marks

Answer

Sign in to view the complete answer paper.

i

List any 2 NP Hard Problems.

2 marks

Answer

Sign in to view the complete answer paper.

j

Define Turing reducibility.

3 marks

Answer

Sign in to view the complete answer paper.

PART-B

(50 Marks)

210 marks
a

Convert the following NFA with € - moves to DFA shown in figure 1.

Figure: 1
5 marks

Answer

Sign in to view the complete answer paper.

b

Minimize the following DFA shown in figure 2.

Figure: 2
5 marks

Answer

Sign in to view the complete answer paper.

310 marks
a

Check whether the following two Finite Automaton’s are equivalent or not?

Finite Automaton (FA) 1 (figure 3):

Figure: 3

Finite Automaton (FA) 2(figure 4):

Figure: 4
5 marks

Answer

Sign in to view the complete answer paper.

b

Convert the following NFA with € moves to DFA in figure 5.

Figure: 5
5 marks

Answer

Sign in to view the complete answer paper.

4

Construct an NFA for the following Regular expression:

10 marks
a

01[((10)*+111)*+0]*1

5 marks

Answer

Sign in to view the complete answer paper.

b

((01+10)*00)*

5 marks

Answer

Sign in to view the complete answer paper.

510 marks
a

Find the regular grammar for the following Finite Automate shown in figure 6.

Figure: 6
5 marks

Answer

Sign in to view the complete answer paper.

b

Construct FA for the following regular expressions (0+1)*(1+00)(0+1)*.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Convert the following grammar to Chomsky Normal Form

S→ ABA

A→ aA | ε

B→ bB | ε

and simplify the grammar

5 marks

Answer

Sign in to view the complete answer paper.

b

Write and explain closure properties of Context Free Languages.

5 marks

Answer

Sign in to view the complete answer paper.

710 marks
a

State the Pumping Lemma for Context Free Languages.

5 marks

Answer

Sign in to view the complete answer paper.

b

Design Push down Automata for the language L = {anb2n | n≥1}.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Design Turing Machine for the Language L={ anbncn /n≥1 }

6 marks

Answer

Sign in to view the complete answer paper.

b

List the Closure properties of recursive Languages.

4 marks

Answer

Sign in to view the complete answer paper.

910 marks
a

Design Turing Machine to compute the function n!

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.

1010 marks
a

Briefly write about Universal Turning Machine (UTM).

4 marks

Answer

Sign in to view the complete answer paper.

b

What do you mean by NP Complete? List any 6 NP Complete Problems.

6 marks

Answer

Sign in to view the complete answer paper.

1110 marks
a

Discuss about turing Reducibility.

3 marks

Answer

Sign in to view the complete answer paper.

b

Write about:

  1. Post Correspondence Problem
  2. Halting problem of TM.
7 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 IT II Year II-II, December - 2018, R15.

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