2020 question paper
Formal Language & Automata Theory
27 questions
Q1a. Definition of a language L with alphabet \{a\} is given as L = \{a^{nk} \mid k > 0, \text{ and } n \text{ is a positive integer constant}\} What is the minimum number of states needed in a DFA to recognize L? (i) k + 1 (ii) n + 1 (iii) 2^{n + 1} (iv) 2^{k + 1}20202m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Definition of a language with alphabet is given as
What is the minimum number of states needed in a DFA to recognize ?
(i)
(ii)
(iii)
(iv)Q1b. Which of the following versions of Unix came up with YACC first? (i) V3 (ii) V5 (iii) CB UNIX (iv) UNIX-RT20202m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Which of the following versions of Unix came up with YACC first?
(i) V3
(ii) V5
(iii) CB UNIX
(iv) UNIX-RTQ1c. A pushdown automata can be represented as \text{PDA} = \epsilon\text{-NFA} + [\text{stack}]. (i) True (ii) False20202m
Module 2: Context-free languages and pushdown automata
View this question on its own page →A pushdown automata can be represented as .
(i) True
(ii) FalseQ1d. A language accepted by deterministic pushdown automata is closed under which of the following? (i) Complement (ii) Union (iii) Both (i) and (ii) (iv) None of the above20202m
Module 2: Context-free languages and pushdown automata
View this question on its own page →A language accepted by deterministic pushdown automata is closed under which of the following?
(i) Complement
(ii) Union
(iii) Both (i) and (ii)
(iv) None of the aboveQ1e. A _____ is context free grammar with atmost one non-terminal in the right handside of the production. (i) linear grammar (ii) linear bounded grammar (iii) regular grammar (iv) None of the above20202m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →A _____ is context free grammar with atmost one non-terminal in the right handside of the production.
(i) linear grammar
(ii) linear bounded grammar
(iii) regular grammar
(iv) None of the aboveQ1f. 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? (i) Finite state automata (ii) Deterministic pushdown automata (iii) Non-deterministic pushdown automata (iv) Turing machine20202m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →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?
(i) Finite state automata
(ii) Deterministic pushdown automata
(iii) Non-deterministic pushdown automata
(iv) Turing machineQ1g. Let L = \{w \mid w \in \{0+1\}^*, w \text{ has even number of 1s}\}. Which one of the regular expression below represents L? (i) (0^* 10^* 1)^* (ii) 0^*(10^* 10^*)^* (iii) 0^* (10^* 1^*)^* 0^* (iv) 0^* 1(10^* 1)^* 10^*20202m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Let . Which one of the regular expression below represents ?
(i)
(ii)
(iii)
(iv)Q1h. 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\}? (i) Ten (ii) Nine (iii) Eight (iv) Six20202m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →What is the minimum number of states in deterministic finite automata (DFA) for string starting with and ending with over alphabet ?
(i) Ten
(ii) Nine
(iii) Eight
(iv) SixQ1i. The decision problem is the function from string to _____. (i) char (ii) int (iii) boolean (iv) None of the above20202m
Module 5: Undecidability
View this question on its own page →The decision problem is the function from string to _____.
(i) char
(ii) int
(iii) boolean
(iv) None of the aboveQ1j. A language L may not be accepted by a turing machine if (i) it is recursively enumerable (ii) it is recursive (iii) L can be enumerated by some turing machine (iv) None of the above20202m
Module 4: Turing machines
View this question on its own page →A language may not be accepted by a turing machine if
(i) it is recursively enumerable
(ii) it is recursive
(iii) can be enumerated by some turing machine
(iv) None of the aboveQ2a. Write the context-free grammar to create palindrome over \{a, b\}.20207m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Write the context-free grammar to create palindrome over .
Q2b. 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.20207m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →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.
Q3a. Design a turing machine to compute the sum of two positive integers m and n.20207m
Module 4: Turing machines
View this question on its own page →Design a turing machine to compute the sum of two positive integers and .
Q3b. Design ANPDA for accepting the string L = \{\text{set of all palindrome over } \{a, b\}\} by the empty stack and by final state.20207m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Design ANPDA for accepting the string by the empty stack and by final state.
Q4a. Construct finite automaton corresponding to the regular expression: (a+b)^* c d^* e20207m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Construct finite automaton corresponding to the regular expression:
Q4b. Explain the multi-tape version of turing machine and its significance.20207m
Module 4: Turing machines
View this question on its own page →Explain the multi-tape version of turing machine and its significance.
Q5a. Show given grammar over alphabet \{a, b\} verify whether it is ambiguous or unambiguous: S \to a \mid abSb \mid aAb A \to bS \mid aAAb20207m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Show given grammar over alphabet verify whether it is ambiguous or unambiguous:
Q6a. Prove that if L is generated by a CFG, then L is accepted by a non-deterministic PDA by empty stack.20207m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Prove that if is generated by a CFG, then is accepted by a non-deterministic PDA by empty stack.
Q6b. Design a pushdown automaton for the following context-free grammar: S \to aB \mid bA A \to aS \mid bAA \mid a B \to bS \mid aBB \mid b20207m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Design a pushdown automaton for the following context-free grammar:
Q7a. Design a turing machine that accepts all palindromes over \Sigma = \{a, b\}.20207m
Module 4: Turing machines
View this question on its own page →Design a turing machine that accepts all palindromes over .
Q7b. Explain Myhill-Nerode theorem for minimization of automata with suitable example.20207m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Explain Myhill-Nerode theorem for minimization of automata with suitable example.
Q8a. 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.20207m
Module 4: Turing machines
View this question on its own page →Prove that if is the language generated by an unrestricted grammar , then is recognized by a turing machine.
Q8b. 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.20207m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Design a pushdown automata for accepting the string for the language by the empty stack as well as final state.
Q9a. Write a short note on: Minimization of automata20203.5m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Write a short note on: Minimization of automata
Q9b. Write a short note on: Type 2 grammar (context free)20203.5m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Write a short note on: Type 2 grammar (context free)
Q9c. Write a short note on: NP-hard problem20203.5m
Q9d. Write a short note on: Pumping lemma for CFL20203.5m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Write a short note on: Pumping lemma for CFL