FORMAL LANGUAGES AND AUTOMATA THEORY - B.Tech 5th Semester Exam., 2021
FORMAL LANGUAGES AND AUTOMATA THEORY
Instructions:
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
-
Which of the following statements is/are False?
-
Enumerator is a Turing machine with
-
The language \( \{a^m b^n c^{m+n} \mid m, n \ge 1\} \) is
-
The maximum number of states of a DFA converted from an NFA with \( n \) states is
-
If \( L_1 \) and \( L_2 \) are context-free languages, \( L_1 - L_2 \) is
-
Which of the following does not have left recursions?
-
Let N be an NFA with \( n \) states and let M be the minimized DFA with \( m \) states recognizing the same language. Which of the following is necessarily true?
-
_____ is the acyclic graphical representation of a grammar.
-
A minimum state deterministic FA accepting the language \( L = \{w \mid w \in \{0, 1\}^*\} \) where number of 0's and 1's in w are divisible by 3 and 5 respectively, has
-
The construction time for DFA from an equivalent NFA (\( m \) number of node) is
-
Tabulate Chomsky hierarchy of grammar with an example for each.
-
Design a finite state machine abstract model for Parity checker.
-
Construct an NFA that will accept string of 0's, 1's and 2's beginning with a 0's followed by odd number of 1's and ending with any number of 2's.
-
Construct a push-down automata that accepts the following language: \( L = \{uawb : u \text{ and } w \in (a,b)^* \text{ and } |u| = |w|\} \)
-
Design a Turing machine (TM) to compute \( n \mod 2 \).
-
Design a DFA corresponding to regular expression \( 1^*(10)^* \)
-
Consider the grammar: \( S \rightarrow AB \mid BC \), \( A \rightarrow BA \mid a \), \( B \rightarrow CC \mid b \), \( C \rightarrow AB \mid a \). Use the CYK algorithm to determine whether the given string "baaba" is in \( L(G) \) or not.
-
Suppose L is context free and R is regular, justify your answer with the help of example:
(i) Is \( L - R \) necessarily context free?
(ii) Is \( R - L \) necessarily context free?
-
Show that the language \( L = \{a^{n!} : n \ge 0\} \) is not regular or not context-free language.
-
Let G be a context-free grammar in Chomsky normal form that contains \( b \) variable. Show that if G generates some string using a derivation with at least \( 2^b \) steps, then \( L(G) \) is infinite.
-
State and prove pumping lemma for regular sets.
-
Show given grammar over alphabet {a, b}, verify whether it is ambiguous or unambiguous : \( S \rightarrow aSa \mid bSb \mid a \mid b \mid \epsilon \)
-
Show that the sum function \( f(x, y) = x + y \) is primitive recursive.
-
Construct a PDA that accepts the language \( L = \{a^{2n}bc \mid n \ge 0\} \) by final state and empty stack.