JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II Year FORMAL LANGUAGES AND AUTOMATA THEORY Previous Question Paper (April/May - 2023 - R16)
Question paper consists of Part A, Part B. Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
Define Kleene Closure and Positive Closure.
Answer
Kleene Closure of a language L, denoted by L*, is the set of all strings formed by concatenating zero or more strings from L. It is defined as L* = ∪i≥0 Li, where L0 = {ε}.
Positive Closure of a language L, denoted by L+, is the set of all strings formed by concatenating one or more strings from L. It is defined as L+ = ∪i≥1 Li, which is equivalent to L* - {ε}.
Write about the applications of Finite Automata.
Answer
Finite Automata (FA) are fundamental models in computer science used for recognizing regular languages and designing systems with finite states. Key applications include:
- Lexical Analysis: Compilers use FA to scan source code and identify tokens such as keywords, identifiers, and operators by matching patterns defined by regular expressions.
- Text Processing and Pattern Matching: Algorithms like KMP or grep utilities use finite automata to efficiently search for specific patterns or strings within large datasets or documents.
- Protocol Verification: FA are used to model and verify communication protocols and hardware circuits to ensure they transition correctly between states and avoid deadlock or undefined behavior.
- Natural Language Processing: They are applied in morphological analysis, such as identifying the roots of words or checking spelling by verifying if word structures conform to predefined rules.
Find the simplified regular expression for the following regular expression
Answer
Sign in to view the complete answer paper.
Construct a regular grammar for
Answer
Sign in to view the complete answer paper.
For the Grammar
Answer
Sign in to view the complete answer paper.
Define ambiguity in CFG with an example.
Answer
Sign in to view the complete answer paper.
What is the purpose of studying Turing Machine?
Answer
Sign in to view the complete answer paper.
Write about the programming techniques for Turing Machines.
Answer
Sign in to view the complete answer paper.
Define undecidability. Give an example of an undecidable problems.
Answer
Sign in to view the complete answer paper.
Compare recursive and recursive enumerable languages.
Answer
Sign in to view the complete answer paper.
Part B
Construct NFA with ε which accepts a language consisting the strings of any number of 0’s followed by any number of 1’s followed by any number of 2’s and also convert into NFA without ε transitions.
Answer
Sign in to view the complete answer paper.
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.
Answer
Sign in to view the complete answer paper.
Construct a DFA accepting the set of all strings ending with 00.
Answer
Sign in to view the complete answer paper.
Design a FA for the following languages: a)
Answer
Sign in to view the complete answer paper.
Construct a DFA for the Regular Language consisting of any number of a’s and b’s.
Answer
Sign in to view the complete answer paper.
Apply pumping lemma for the language
Answer
Sign in to view the complete answer paper.
Define Ambiguous Grammar. Check whether the grammar S->aAB, A->bC/cd, C->cd, B->c/d is ambiguous or not?
Answer
Sign in to view the complete answer paper.
Show that for every PDA there exists a CFG such that L(G) = N(P).
Answer
Sign in to view the complete answer paper.
Construct the CFG for the PDA M = ({q0,q1}, {0,1}, {R,Z0}, δ, q0, Z0, Φ) and δ is given by
Answer
Sign in to view the complete answer paper.
Design a Turing Machine for
Answer
Sign in to view the complete answer paper.
Define Chomsky Normal Form (CNF). Convert the following grammar to CNF
Answer
Sign in to view the complete answer paper.
Explain following: i) Closure properties of Context Free Languages. ii) Decision properties of Context Free Languages.
Answer
Sign in to view the complete answer paper.
Design a Turing machine to recognize all strings consisting of odd numbers of 1’s.
Answer
Sign in to view the complete answer paper.
Discuss in brief about NP Hard problems.
Answer
Sign in to view the complete answer paper.
Give the correspondence between P, NP and NP-complete problems.
Answer
Sign in to view the complete answer paper.
Give an overview of recursively enumerable language.
Answer
Sign in to view the complete answer paper.
Explain about the Decidability Problems.
Answer
Sign in to view the complete answer paper.