// Anna University, Chennai / 2019
Anna University — Theory of Computation (CS6503), November/December 2019
Theory of Computation · CS6503 · R2013 · B.E. Computer Science and Engineering
Files open in a new tab. Use your browser's download or save option to keep a copy.
Work through the questions
16 questions
No verified answers are available for this paper.
Define a deterministic finite automaton.
No verified answer or solution is available for this question.
Draw the transition diagram for the deterministic finite automaton accepting all strings with a substring 01.
No verified answer or solution is available for this question.
Define context free grammar.
No verified answer or solution is available for this question.
What is a parse tree ? Give example.
No verified answer or solution is available for this question.
Define pushdown automaton.
No verified answer or solution is available for this question.
When a pushdown automaton can be defined to be deterministic ?
No verified answer or solution is available for this question.
What is a Turing machine ?
No verified answer or solution is available for this question.
Present an outline of multi-tape Turing machine.
No verified answer or solution is available for this question.
- 2023
- 2019
Also asked in Anna University — Theory of Computation (CS3452), April/May 2023 (2023).
When is a language L recursively enumerable ?
No verified answer or solution is available for this question.
What are polynomial-time algorithms ?
No verified answer or solution is available for this question.
(a) Outline the steps in converting nondeterministic finite automaton to deterministic finite automaton. (13) (OR) (b) "Not every language is a regular language". Using pumping lemma prove that many different languages are not regular. (13)
No verified answer or solution is available for this question.
(a) i) What are ambiguous grammars ? Give example. (6) ii) When is a context free grammar said to be in Chomsky normal form ? Explain with an example. (7) (OR) (b) i) Outline unit production and null production in a context free grammar with an example. (6) ii) When is a context free grammar said to be in Greibach normal form ? Explain with an example. (7)
No verified answer or solution is available for this question.
(a) Given a context free grammar G, outline the steps to construct a pushdown automaton that simulates the left most derivations of G with an example. (13) (OR) (b) Show that the language L = {0ⁿ1ⁿ | n ≥ 1} ∪ {0ⁿ1²ⁿ | n ≥ 1} is a context-free language that is not accepted by any deterministic pushdown automaton. (13)
No verified answer or solution is available for this question.
(a) Design a Turing machine that will accept the language {0ⁿ1ⁿ | n ≥ 1} and draw the transition diagram for the Turing machine. (13) (OR) (b) i) Outline the halting problem for Turing machines. (5) ii) Present an outline of the Chomsky hierarchy of languages. (8)
No verified answer or solution is available for this question.
(a) i) Present a detailed note on primitive recursive functions. (8) ii) Highlight the features of universal Turing machine. (5) (OR) (b) i) Outline tractable and intractable problems with an example. (8) ii) Show that any problem in P is also in NP but not the other way around. (5)
No verified answer or solution is available for this question.
(a) Write regular expression for the following languages : i) The set of all strings of 0's and 1's not containing 101 as a substring. (6) ii) The set of strings of 0's and 1's, whose number of 0's is divisible by five and whose number of 1's is even. (9) (OR) (b) Give transition tables for pushdown automata accepting each of the following languages : i) {aⁱbʲ | i ≤ j ≤ 2i} (7) ii) {x ∈ {a, b}* | n_a(x) < n_b(x) < 2n_a(x)}. (8)
No verified answer or solution is available for this question.