Theory of Computation 2075
Attempt
all the questions.
Group
A
(8x4=32)
AI is thinking...
1. How can you represent a finite Automata? Explain.
AI is thinking...
2. Construct a DFA that accepts the strings over alphabet {0,1} with odd number of 0's and even number of 1's.
AI is thinking...
3. Define the ε-closure of a state of ε-NFA with an example.
AI is thinking...
4. Write regular expression for the following regular languages.
a) The set of strings over a alphabet {a, b} containing at least one 'a' and at least one 'b'.
b) The set of strings over {0, 1} whose 5th symbol from right end is 1.
AI is thinking...
5. Given the following grammar
Remove the immediate left recursion from the grammar.
AI is thinking...
6. How can you convert a CFG into equivalent PDA? Explain with example.
AI is thinking...
7. What is a Turing Machine? Give formal definition. How it differ from FA?
AI is thinking...
8. What do you mean by tractable and intractable problems? Is intractable problems are solvable by Turing machine?
AI is thinking...
Group
B
(6x8=48)
AI is thinking...
9. Convert the following regular expression into ε-NFA.
a) 01* b) (0+1)01* c) 00+(0+1)*100*
AI is thinking...
10. Convert the following NFA into equivalent DFA using subset construction and also show the transition diagram for this DFA.
AI is thinking...
11. Convert the following grammar into Chomsky Normal Form.
S→ ASB|ε
A →aAS|bAS|a
B→SbS|A|CS|bb
AI is thinking...
12. Construct a Push Down Automata that accepts all the strings from alphabet {0, 1} with equal number of 0 and 1. Show that 0110 is accepted by this PDA and 01101 is not.
AI is thinking...
13. How can you show that the one tape Turing machine and multi-tape Turing machine are equivalent? Explain in detail.
AI is thinking...
14. Explain the term Turing acceptable and Turing decidable. Show that if L is recursive language then complement of L is also recursive.
AI is thinking...