B.Tech II Year II Semester Examinations, May - 2019
FORMAL LANGUAGES AND AUTOMATA THEORY
(Common to CSE, IT)
Time: 3 hours Max. Marks: 75
Note: This question paper contains two parts A and B.
Part A is compulsory which carries 25 marks. Answer all questions in Part A.
--- Content provided by FirstRanker.com ---
Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks.
PART - A (25 Marks)
-
- Define Deterministic Finite Automaton (DFA). [2M]
- Write a regular expression to denote a language L which accepts all strings which begin or end with 00. [3M]
- Define Context Free Grammar (CFG). [2M]
- Give an example of ambiguous grammar. [3M]
- Define Pushdown Automata (PDA). [2M]
- State pumping lemma for context free languages. [3M]
- What are the different types of Turing Machines? [2M]
- What are recursively enumerable languages? [3M]
- Define undecidable problem. [2M]
- What is Post Correspondence Problem (PCP)? [3M]
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
PART - B (50 Marks)
(Answer any one full question from each unit. Each question carries 10 marks)
UNIT - I
- 2. a) Construct a DFA equivalent to the regular expression (ab+baa)*. [5M] b) Explain about equivalence between two finite automata. [5M]
OR
3. a) Construct a NFA for the regular expression a*b+b*a. [5M] b) Explain the procedure for converting NFA to DFA. [5M]
--- Content provided by FirstRanker.com ---
UNIT - II
- 4. a) Convert the following grammar to Chomsky Normal Form (CNF). [5M] S ? aABB | aAA A ? aBB | a B ? bBB | A b) Explain about closure properties of context free languages. [5M]
OR
5. a) Define Greibach Normal Form (GNF). Convert the following grammar to GNF. [5M] S ? AA | b A ? SS | a b) Construct a derivation tree for the string "aabbab" using the grammar S ? aAS | a | bSS | b. [5M]
UNIT - III
- 6. Design a PDA for recognizing L = {0n1n | n = 1}. [10M]
OR
7. Convert the following grammar to PDA. [10M] S ? aABB | aAA A ? aBB | a B ? bBB | A
UNIT - IV
- 8. Explain the different types of Turing machine with neat diagrams. [10M]
OR
--- Content provided by FirstRanker.com ---
9. Design a Turing machine to accept the language L = {0n1n2n | n = 1}. [10M]
UNIT - V
- 10. Explain about decidability and undecidability problems. [10M]
OR
- 11. Write short notes on: [10M] a) Classes of P and NP b) NP-Completeness.
---ooOoo---
--- Content provided by FirstRanker.com ---
Get more study materials at FirstRanker.com
This download link is referred from the post: AKTU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. A.P.J. Abdul Kalam Technical University
--- Content provided by FirstRanker.com ---