You are on page 1of 2

H.T.

No: Course Code: 171CS4T06

ADITYA ENGINEERING COLLEGE (A)


B.Tech – IV Semester End Examinations Supplementary (AR17) – NOV 2019

FORMAL LANGUAGES AND AUTOMATA THEORY


(Computer Science and Engineering)
Time: 3 hours Max. Marks: 60
Answer ONE question from each unit
All Questions Carry Equal Marks
All parts of the questions must be answered at one place only

UNIT – I
1 a Design a machine which checks the given binary input string is divisible by 3. CO1 [6M]
b Differentiate between NFA with and without ɛ-moves. CO1 [6M]
OR
2 a What are components of Finite State Automata? Discuss with example? CO1 [6M]
b Construct a Melay machine that computes the 2’s complement of a given CO1 [6M]
binary number
UNIT – II
3 a Develop a regular expression accepts the following i) String with 0011 as CO2 [6M]
substring? ii) String of 0’s and 1’s whose last two digits are same?
iii) String having odd number of 1’s?
b State whether the Language L={anbn|n>0} is Regular ? CO2 [6M]
OR
4 a Design NFA with ɛ and without ɛ transitions for Regular Expression CO2 [6M]
ab*aa+bba*ab
b Find out the Regular Expression for the following Transition Diagram CO2 [6M]

UNIT – III
5 a Define the Context Free Grammar. Show the following Grammar is ambiguous CO3 [6M]
E →id|E+E|E-E|E*E
b Convert following CFG to CNF CO3 [6M]
S→AB|Ab
A→aab|ɛ
B→bbA

(P.T.O)
OR
6 a Explain the Pumping Lemma for Context Free Language. CO3 [6M]
b Find Leftmost and Rightmost Derivations for String “aabbabba” using the CO3 [6M]
following CFG
S→aB|bA
A→a|aS|bAA
B→b|bS|aBB
UNIT – IV
7 a Explain Push down automata in detail with a diagram CO4 [6M]
b Convert the following CFG to PDA CO6 [6M]
S→aAA
A→aS|bS|a
OR
8 a Design a PDA which accepts the language L={anbn|n≥1} CO4 [6M]
b Explain the role of PDA in a Parser CO6 [6M]
UNIT – V
9 a Define a Turing Machine and Explain the different types of Turing Machines. CO6 [6M]
b Explain the Halting problem in Turing machines. CO6 [6M]
OR
10 a Design a Turing Machine to accept the strings belonging to the language CO6 [6M]
(0+1)*
b Explain in detail about the P and NP Problems. CO6 [6M]
*****

You might also like