2021 question paper
FORMAL LANGUAGE & AUTOMATA THEORY
27 questions
Q1a. Which of the following statements is/are false? A. For every nondeterministic TM, an equivalent deterministic TM exists. B. Turing recognizable languages are closed under union and complementation. C. Turing decidable languages are closed under intersection and complementation. D. Turing recognizable languages are closed under union and intersection. (i) A and D only (ii) A and C only (iii) B only (iv) C only20212m
Module 5: Undecidability
View this question on its own page →Which of the following statements is/are false?
A. For every nondeterministic TM, an equivalent deterministic TM exists.
B. Turing recognizable languages are closed under union and complementation.
C. Turing decidable languages are closed under intersection and complementation.
D. Turing recognizable languages are closed under union and intersection.(i) A and D only
(ii) A and C only
(iii) B only
(iv) C onlyQ1b. Enumerator in a Turing machine is a TM with: (i) an output printer (ii) 5 input tapes (iii) a stack (iv) None of the above20212m
Module 4: Turing Machines (TM)
View this question on its own page →Enumerator in a Turing machine is a TM with:
(i) an output printer
(ii) 5 input tapes
(iii) a stack
(iv) None of the aboveQ1c. The language: L = \{ a^m b^n c^{m+n} \mid m,n \ge 1 \} is: (i) regular (ii) context-free but not regular (iii) context-sensitive but not context-free (iv) type-0 but not context-sensitive20212m
Module 3: Context-Sensitive Languages
View this question on its own page →The language:
is:
(i) regular
(ii) context-free but not regular
(iii) context-sensitive but not context-free
(iv) type-0 but not context-sensitiveQ1d. The maximum number of states of a DFA converted from an NFA with n states is: (i) n (ii) n^2 (iii) 2^n (iv) None of the above20212m
Module 1: Introduction & Regular Languages
View this question on its own page →The maximum number of states of a DFA converted from an NFA with states is:
(i)
(ii)
(iii)
(iv) None of the aboveQ1e. If L_1 and L_2 are CFLs, L_1 - L_2 is ____ context-free. (i) always (ii) sometimes (iii) never (iv) None of the above20212m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →If and are CFLs, is ____ context-free.
(i) always
(ii) sometimes
(iii) never
(iv) None of the aboveQ1f. Which of the following does not have left recursion? (i) Chomsky Normal Form (ii) Greibach Normal Form (iii) Backus–Naur Form (iv) All of the above20212m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Which of the following does not have left recursion?
(i) Chomsky Normal Form
(ii) Greibach Normal Form
(iii) Backus–Naur Form
(iv) All of the aboveQ1g. For an NFA with n states, the minimized DFA has: (i) m \le 2^n (ii) n \le m (iii) one accept state (iv) m = 2^n20212m
Module 1: Introduction & Regular Languages
View this question on its own page →For an NFA with states, the minimized DFA has:
(i)
(ii)
(iii) one accept state
(iv)Q1h. ____ is the acyclic graphical representation of a grammar. (i) Binary tree (ii) Octtree (iii) Parse tree (iv) None of the above20212m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →____ is the acyclic graphical representation of a grammar.
(i) Binary tree
(ii) Octtree
(iii) Parse tree
(iv) None of the aboveQ1i. A minimum state DFA for the language: L = \{ w \in \{0,1\}^* : \#0(w) \equiv 0 \mod 3,\; \#1(w) \equiv 0 \mod 5 \} has: (i) 15 states (ii) 11 states (iii) 10 states (iv) 9 states20212m
Module 1: Introduction & Regular Languages
View this question on its own page →A minimum state DFA for the language:
has:
(i) 15 states
(ii) 11 states
(iii) 10 states
(iv) 9 statesQ1j. The construction time for DFA from NFA with m nodes is: (i) O(m^2) (ii) O(2^m) (iii) O(m) (iv) O(\log m)20212m
Module 1: Introduction & Regular Languages
View this question on its own page →The construction time for DFA from NFA with nodes is:
(i)
(ii)
(iii)
(iv)Q2a. Tabulate the Chomsky hierarchy of grammars with an example for each.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Tabulate the Chomsky hierarchy of grammars with an example for each.
Q2b. Design a finite-state machine (FSM) for a parity checker.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Design a finite-state machine (FSM) for a parity checker.
Q3a. Construct an NFA accepting strings over \{0,1,2\} beginning with 0, followed by an odd number of 1s, ending with any number of 2s.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Construct an NFA accepting strings over beginning with 0, followed by an odd number of 1s, ending with any number of 2s.
Q3b. Construct a PDA that accepts: L = \{ u a w b : u,w \in \{a,b\}^*,\; |u| = |w| \}20217m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Construct a PDA that accepts:
Q4a. Design a Turing Machine to compute n \bmod 2.20217m
Module 4: Turing Machines (TM)
View this question on its own page →Design a Turing Machine to compute .
Q4b. Design a DFA for the regular expression: 1^*(10)^*20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Design a DFA for the regular expression:
Q5a. Using the CYK algorithm, determine whether baaba is in L(G) for the grammar: `` S → AB | BC A → BA | a B → CC | b C → AB | a ``202114m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Using the CYK algorithm, determine whether
baabais in for the grammar:S → AB | BC A → BA | a B → CC | b C → AB | aQ5b. Suppose L is CFL and R is regular: (i) Is L - R always CFL? (ii) Is R - L always CFL?202114m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Suppose is CFL and is regular:
(i) Is always CFL?
(ii) Is always CFL?Q6a. Show that the language: L = \{ a^{n!} : n \ge 0 \} is not regular or not context-free.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Show that the language:
is not regular or not context-free.
Q6b. Let G be a CFG in CNF with b variables. Show that if G derives any string using at least 2^b steps, then L(G) is infinite.20217m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Let be a CFG in CNF with variables. Show that if derives any string using at least steps, then is infinite.
Q7a. State and prove the pumping lemma for regular languages.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →State and prove the pumping lemma for regular languages.
Q7b. Check whether the grammar: S \to aSa \mid bSb \mid a \mid b is ambiguous.20217m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Check whether the grammar:
is ambiguous.
Q8a. Show that the function: f(x,y) = x + y is primitive recursive.20217m
Module 5: Undecidability
View this question on its own page →Show that the function:
is primitive recursive.
Q8b. Construct a PDA accepting: L = \{ a^{2n}bc : n \ge 0 \}20217m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Construct a PDA accepting:
Q9a. Write a short note on the Post Correspondence Problem.20213.5m
Module 5: Undecidability
View this question on its own page →Write a short note on the Post Correspondence Problem.
Q9b. Write a short note on Chomsky Normal Form.20213.5m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Write a short note on Chomsky Normal Form.
Q9d. Write a short note on the Pumping Lemma for CFL.20213.5m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Write a short note on the Pumping Lemma for CFL.