Home > Computer Science and Engineering / Information Technology > Theory of Computation

CS3452 Theory of Computation Previous Year Question Papers - Anna University

Access Anna University Theory of Computation (CS3452) previous year question papers on LearnSkart for smarter semester exam preparation. This Anna University PYQ page offers year-wise Anna University exam papers aligned with Regulation 2021, so students can understand recurring questions, important units, and expected marking schemes. You can view every CS3452 Theory of Computation question paper online and use free PDF download options for focused revision before internal and semester exams.

2024

  • 2024 - CSE-AM-2024-CS 3452-Theory of Computation-687931865-50903.pdf
  • 2024 - CSE-ND-2024-CS 3452-Theory of Computation-644958831-20250604161745 (14).pdf

2023

  • 2023 - CSE-AM-2023-CS 3452-Theory of Computation-507516547-AM23C (11).pdf
  • 2023 - CSE-ND-2023-CS 3452-Theory of Computation-910346661-20870.pdf

Important Questions - CS3452 Theory of Computation

UNIT I: Automata and Regular Expressions

Part A (2 Marks)

  • Define Deterministic Finite Automata (DFA).
  • What is the difference between NFA and DFA?
  • Write a regular expression for a set of strings starting with 'a' and ending with 'b'.
  • Define ε-closure of a state.
  • State the Pumping Lemma for regular languages.

Part B (13 Marks)

  • Explain the procedure to convert NFA to DFA with a suitable example.
  • Discuss the conversion of ε-NFA to DFA.
  • Explain the Equivalence of Finite Automata and Regular Expressions (Arden's Theorem or State Elimination Method).
  • Describe the Minimization of DFA using the Table Filling algorithm.

UNIT II: Context-Free Grammars and Languages

Part A (2 Marks)

  • Define Context-Free Grammar (CFG).
  • What is an Ambiguous Grammar? Give an example.
  • Define Derivation Tree (Parse Tree).
  • Distinguish between Leftmost and Rightmost Derivation.
  • What is Chomsky Normal Form (CNF)?

Part B (13 Marks)

  • Explain the simplification of CFG: Removal of Null, Unit, and Useless productions.
  • Discuss the conversion of a grammar into Chomsky Normal Form (CNF) and Greibach Normal Form (GNF).
  • Explain the Pumping Lemma for Context-Free Languages and use it to prove a language is not CFL.
  • Describe the Closure properties of Context-Free Languages.

UNIT III: Pushdown Automata

Part A (2 Marks)

  • Define Pushdown Automata (PDA).
  • What are the different types of acceptance in PDA (Final state vs. Empty stack)?
  • Is the language L = {w c w^R} accepted by a Deterministic PDA?
  • What is the difference between DPDA and NPDA?
  • Define the formal components of a PDA (7-tuple).

Part B (13 Marks)

  • Construct a PDA for a given language (e.g., L = {a^n b^n | n ≥ 1} or L = {ww^R}).
  • Explain the conversion of CFG to PDA and PDA to CFG.
  • Discuss the Equivalence of PDA acceptance by Empty Stack and Final State.

UNIT IV: Turing Machines

Part A (2 Marks)

  • Define a Turing Machine (TM).
  • What is a Recursive Enumerable Language?
  • What is a Multi-track Turing Machine?
  • Define the Halting Problem.
  • What is a Universal Turing Machine?

Part B (13 Marks)

  • Design a Turing Machine for basic languages (e.g., L = {a^n b^n c^n} or proper subtraction).
  • Discuss the different types of Turing Machines (Multi-tape, Non-deterministic, Multi-stack).
  • Explain the Chomsky Hierarchy of languages in detail.
  • Describe the techniques for Turing Machine construction (Storage in state, Multiple tracks).

UNIT V: Undecidability

Part A (2 Marks)

  • When is a problem said to be Decidable?
  • Define Post Correspondence Problem (PCP).
  • What are P and NP classes?
  • Define NP-Complete and NP-Hard problems.
  • What is a Reduction in complexity theory?

Part B (13 Marks)

  • Explain the Halting Problem of Turing Machine and prove its undecidability.
  • Discuss the Post Correspondence Problem (PCP) and its modified version (MPCP).
  • Explain the P, NP, NP-Complete, and NP-Hard complexity classes with examples.
  • Describe the Decidability of languages and the properties of Recursive and Recursive Enumerable languages.

Most Repeated / High-Weight Questions

NFA to DFA conversion and minimization, CFG to CNF conversion, PDA construction for context-free languages, Turing machine design for specific languages, Chomsky hierarchy, halting problem and undecidability proofs, NP-completeness.

Additional Resources

View Syllabus View Notes

How to Use These Question Papers

Frequently Asked Questions about CS3452 Theory of Computation

Which topics are most frequently asked in CS3452 exams?

NFA to DFA conversion and DFA minimization (Unit I), CFG simplification and CNF conversion (Unit II), PDA construction (Unit III), and Turing machine design (Unit IV) together account for 70% of exam marks. Unit V covers undecidability and complexity theory proofs. Practice construction-based problems with detailed step-by-step solutions.

How should I approach NFA to DFA conversion in CS3452?

Use subset construction method: start from initial epsilon-closure. For each input symbol, compute epsilon-closure of reachable states. Create new DFA states for each unique subset. Identify accepting states (containing NFA accepting states). Practice with 5-10 examples manually for confidence.

What is the best strategy for CFG and CNF conversion questions in CS3452?

Understand CNF restrictions (only A → BC or A → a). Remove null productions first (identify nullable variables). Remove unit productions (eliminate A → B chains). Remove useless productions (unreachable/non-generating). Then convert to proper CNF form. These grammar conversion problems appear with 13-15 marks regularly.

How can I master PDA construction in CS3452?

Understand PDA components: 7-tuple (Q, Σ, Γ, δ, q0, Z0, F). Design PDAs for context-free languages like {a^n b^n}, {ww^R}. Use stack to track matching symbols. Practice two acceptance modes: empty stack vs final state. Trace PDAs manually for test strings.

What should I know about Turing machines and computability in CS3452?

Understand Turing machine formal definition: M = (Q, Σ, Γ, δ, q0, B, F). Recognize recursive (decidable) and recursively enumerable (semi-decidable) languages. Design TMs for simple languages {a^n b^n c^n}. Understand Chomsky hierarchy: RE ⊃ CS ⊃ CFL ⊃ RL. Practice halting problem proofs.

How should I approach NP-completeness and undecidability in CS3452?

Understand P (polynomial time solvable), NP (polynomial time verifiable), NP-Complete (hardest NP problems), NP-Hard (at least as hard as NPC). Study reductions: polynomial-time transformation from known NP-complete problem. Practice undecidability proofs for Halting and Post Correspondence Problem using diagonalization and reduction.