FORMAL LANGUAGES AND AUTOMATA THEORY - B.Tech 5th Semester Exam., 2020
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.
-
Definition of a language L with alphabet {a} is given as \( L = \{a^{nk} \mid k > 0 \}, \) and n is a positive integer constant. What is the minimum number of states needed in a DFA to recognize L?
-
Which of the following versions of Unix came up with YACC first?
-
A pushdown automata can be represented as \( PDA = \epsilon \text{-} NFA + [\text{stack}] \).
-
A language accepted by deterministic pushdown automata is closed under which of the following?
-
A _____ is context free grammar with atmost one non-terminal in the right handside of the production.
-
The lexical analysis for a modern language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?
-
Let \( L = \{w \in (0+1)^* \mid w \text{ has even number of 1s}\} \), i.e., L is the set of all bit strings with even number of 1s. Which one of the regular expression below represents L?
-
What is the minimum number of states in deterministic finite automata (DFA) for string starting with \( ba^2 \) and ending with a over alphabet {a, b}?
-
The decision problem is the function from string to
-
A language L may not be accepted by a turing machine if
-
Write the context-free grammar to create palindrome over {a, b}.
-
Construct a DFA which accepts the set of all binary strings that interpreted as binary representation of an unsigned decimal integer, is divisible by 5.
-
Design a turing machine to compute the sum of two positive integers m and n.
-
Design a NPDA for accepting the string \( L = \) set of all palindrome over {a, b} by the empty stack and by final state.
-
Construct finite automaton corresponding to the regular expression: \( (a+b)^*c d^*e \)
-
Explain the multi-tape version of turing machine and its significance.
-
Show given grammar over alphabet {a, b} verify whether it is ambiguous or unambiguous : \( S \rightarrow a / abSb / aAb \), \( A \rightarrow bS / aAAb \)
-
Show that \( L = \) palindrome over {a, b} is not regular.
-
Prove that if L is generated by a CFG, then L is accepted by a non-deterministic PDA by empty stack.
-
Design a pushdown automaton for the following context-free grammar: \( S \rightarrow aB \mid bA \), \( A \rightarrow aS \mid bAA \mid a \), \( B \rightarrow bS \mid aBB \mid b \)
-
Design a turing machine that accepts all palindromes over \( \Sigma = \{a, b\} \).
-
Explain Myhill-Nerode theorem for minimization of automata with suitable example.
-
Prove that if L is the language generated by an unrestricted grammar \( G=(N,T,P,S) \), then L is recognized by a turing machine.
-
Design a pushdown automata for accepting the string for the language \( L = \{WW^R \mid W \in (a,b)^*\} \) by the empty stack as well as final state.