BE Computer Engineering (IOE, TU) Theory of Computation (IOE, CT 502) Question Paper 2079
This is the official BE Computer Engineering (IOE, TU) Theory of Computation (IOE, CT 502) question paper for 2079, as set in the regular annual examination. It carries 80 full marks and a time allowance of 180 minutes, across 11 questions. On Kekkei you can attempt this Theory of Computation (IOE, CT 502) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BE Computer Engineering (IOE, TU) Theory of Computation (IOE, CT 502) exam or solving previous years' question papers, this 2079 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt all / any as specified.
(a) Define a Non-deterministic Finite Automaton (NFA) formally as a 5-tuple and explain how it differs from a Deterministic Finite Automaton (DFA). (b) Construct an NFA that accepts the language of all strings over that contain the substring . Convert the obtained NFA into an equivalent DFA using the subset construction method, clearly showing the transition table and the resulting state diagram.
(a) Define a Context-Free Grammar (CFG) and a Pushdown Automaton (PDA). Explain the equivalence between CFGs and PDAs. (b) Consider the grammar . Show that it generates the language and construct a PDA (accepting by empty stack) that recognizes this language, giving its complete set of transition rules.
(a) Describe the formal model of a standard (single-tape) Turing machine and explain the Church-Turing thesis. (b) Design a Turing machine that accepts the language . Give the transition function and trace the computation of the machine on the input string .
Section B: Short Answer Questions
Attempt all / any as specified.
(a) State the precedence and meaning of the regular expression operators. (b) Write regular expressions for: (i) all strings over whose length is a multiple of 3, and (ii) all strings over that begin and end with the same symbol.
State the Pumping Lemma for regular languages. Using it, prove that the language is not regular.
Explain the Chomsky hierarchy of grammars. For each of the four types, give the form of production rules and the corresponding class of accepting automaton, illustrating with a suitable example for each type.
Define an ambiguous grammar. Show that the grammar is ambiguous by giving two distinct parse trees (or leftmost derivations) for the string , and suggest how the ambiguity can be removed.
Differentiate between a decidable and an undecidable problem. State the Halting Problem and explain, with the essential argument, why it is undecidable.
Given the regular grammar with productions and , construct the equivalent finite automaton and describe the language it accepts.
Convert the following context-free grammar into Chomsky Normal Form (CNF): , , . Show all intermediate steps including removal of -productions and unit productions.
Distinguish between recursive (decidable) languages and recursively enumerable languages. Explain why every recursive language is recursively enumerable but the converse is not necessarily true.