Skip to content
SmartFigureEduExam kits ₹19

CS3452 · 4 papers compared

CS 3452 Theory of Computation important questions

CS3452 exam kitRepeated questions + all papers, 1 PDF

Exam kit

Needed by the payment gateway. Not shared or used for marketing.

Secure payment by Cashfree Payments (UPI, cards, net banking). One-time payment, no subscription. The payment page may show StrangerYaar, the business that processes payments for SmartFigure.Terms · Refunds

ANNA UNIVERSITY · REGULATION 2021

Important Questions

CS 3452 — THEORY OF COMPUTATION

Fourth Semester · Computer Science and Engineering

Prepared from 4 previous year question papers (Nov/Dec 2024, Apr/May 2024, Nov/Dec 2023, Apr/May 2023). Every question was compared with the others of its unit; the ones asked more than once come first. "Most asked topics" shows in how many different exams a syllabus topic had a question.

UNIT 1Automata and Regular Expressions

Most asked topics: Deterministic Finite Automata (DFA) (1/4)

Part A · 2 marks

  1. 1.
    Mention any four ways of theorem proving.

    Asked in Nov/Dec 2024

    (2)
  2. 2.
    Define Finite Automata and give one example.

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    How will you prove the group of statements together? Justify.

    Asked in Apr/May 2024

    (2)
  4. 4.
    Draw the transition diagram to recognize a constant.

    Asked in Apr/May 2024

    (2)
  5. 5.
    Identify NFA-epsilon to represent a*b|c.

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    Let L be a set accepted by a non-deterministic finite automaton. The number of states in non-deterministic finite automaton is 'N'. Find the maximum number of states in equivalent finite automaton that accepts L.

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    Prove that for every integer n >= 0, the number 4^(2n+1) + 3^(n+2) is a multiple of 13 using mathematical induction Method.

    Asked in Nov/Dec 2024

    (13)
  2. 2.
    Construct a Deterministic Finite State Automata that accepts the set of strings over {a,b} having an even number of a's and odd number b's, even number of a's and even number of b's, odd number a's and even number b's and odd number a's and odd number of b's.

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    (i) Prove that the statement "if n >= 5, then n can be written as a sum of 2's and 3's" by inductive principle. (ii) Construct a DFA that accepts the string over an alphabet {0,1}, number of 0's is multiples of 3.

    Asked in Apr/May 2024

    (13)
  4. 4.
    (i) In Fig. 11(b), find the equivalent DFA for the following NFA. [Fig. 11(b): NFA with start state p and final state s; p -0,1-> p, p -0-> q, q -0,1-> r, r -0-> s, s -0,1-> s] (ii) Prove that the language L is accepted by NFA with epsilon-transition, then there exist DFA also accept the same language L.

    Asked in Apr/May 2024

    (13)

UNIT 2Regular Expressions and Languages

Most asked topics: Regular expression (3/4) · Regular Languages (2/4) · Equivalence of Finite Automata and regular expressions (1/4) · Proving languages to be not regular (Pumping Lemma) (1/4) · Closure properties of regular languages (1/4)

Part A · 2 marks

  1. 1.
    Is it True that the language accepted by any NFA is a regular language?

    Asked in Nov/Dec 2024

    (2)
  2. 2.
    Define closure properties of regular languages.

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    Write the regular expression for the language L = {Set of string with even number of 1's followed by odd number of 0's}.

    Asked in Apr/May 2024

    (2)
  4. 4.
    Let Sigma = {0, 1} and Sigma' = {a, b, c} with h(0) = ab, h(1) = ac. Find homomorphic image of L = {010, 0010, 1010}.

    Asked in Apr/May 2024

    (2)
  5. 5.
    Recall the term "Regular Expression". Give a Regular Expression for any language containing symbols (0, 1) and strictly ends with '1'.

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    Given the following two languages: L1 = {a^n b a^n | n > 0} L2 = {a^n b a^n b^(n+1) | n > 0} Check whether the above languages are context-free or not.

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    Two Regular languages is regular under the Union operation. Is the Union of a collection of Regular Language always Regular? Justify your answer. Compare your justification with the Intersection of Regular languages.

    Asked in Nov/Dec 2024

    (13)
  2. 2.
    (i) Explain pumping lemma of Regular languages. (ii) Show that L = {a^i b^i | i, j >= 1, i and j are not equal} is Not regular using Pumping Lemma.

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    (i) From Fig. 12(a), find the regular expression for the following DFA. [Fig. 12(a): DFA with start state q0 and final state q2; q0 -0-> q1, q0 -1-> q2, q1 -0-> q0, q1 -1-> q2, q2 -0-> q1, q2 -1-> q0] (ii) Construct an NFA for the regular expression (01+10)* 10*.

    Asked in Apr/May 2024

    (13)
  4. 4.
    (i) Show that the language L = {0^n 1^(2n) | n > 0} is not regular. (ii) Prove if L and M are regular language, then so is L-M.

    Asked in Apr/May 2024

    (13)

UNIT 3Context Free Grammar and Push Down Automata

Most asked topics: CFG to PDA (2/4) · PDA to CFG (2/4)

Part A · 2 marks

  1. 1.
    What is the relationship between PDA and CFL?

    Asked in Nov/Dec 2024

    (2)
  2. 2.
    What is an ambiguous grammar?

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    Write the Chomsky hierarchy of grammar.

    Asked in Apr/May 2024

    (2)
  4. 4.
    Mention the language accepted by empty stack and final state.

    Asked in Apr/May 2024

    (2)
  5. 5.
    Mention a few points regarding Chomsky's hierarchy with illustration.

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    Examine the context free Grammar representing the set of Palindrome over (0+1)*.

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    Give a CFG to generate A = {a^i b^j c^k | i, j, k >= 0 and either i = j or j = k}. Is the grammar ambiguous? Why or why not?

    Asked in Nov/Dec 2024

    (13)
  2. 2.
    Given Sigma{0, 1} Design a PDA (i) Which accepts string of the form 1* 0^n 1^n (ii) Which accepts strings that contain twice as many zeros as ones.

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    (i) Construct a PDA that accept the language L = {a^m b^n c^n d^m | n, m >= 1} by empty stack. (ii) Prove that if PDA P is constructed from CFG G, then L(P) = L(G).

    Asked in Apr/May 2024

    (13)
  4. 4.
    (i) Construct a CFG G which accepts the language L(M) where M = ({q0, q1}, {a, b}, {z0, z}, delta, q0, z0, phi) where delta is given by delta(q0, a, z0) = (q0, zz0); delta(q0, a, z) = (q0, zz); delta(q0, b, z) = (q1, epsilon); delta(q1, b, z) = (q1, epsilon); delta(q1, epsilon, z) = (q1, epsilon); delta(q1, epsilon, z0) = (q1, epsilon) (ii) Grammar G : S -> S1S | 0, Is this grammar G is ambiguous? Justify.

    Asked in Apr/May 2024

    (13)

UNIT 4Normal Forms and Turing Machines

Most asked topics: Chomsky Normal Form (CNF) and Greibach Normal Form (GNF) (1/4) · Turing Machine: Basic model (1/4) · Instantaneous Description (1/4)

Part A · 2 marks

  1. 1.
    What is the height of the parse tree to represent a string of length 'n' using Chomsky Normal Form?

    Asked in Nov/Dec 2024

    (2)
  2. 2.
    Give the logic to design a Turing Machine that accept the language of odd integers written in binary.

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    What is meant by reachable symbol?

    Asked in Apr/May 2024

    (2)
  4. 4.
    List any four closure properties of CFL.

    Asked in Apr/May 2024

    (2)
  5. 5.
    Tabulate the difference between Chomsky Normal Form (CNF) and Greibach Normal Form (GNF).

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    Give the philosophy behind Pumping lemma for CFLs.

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    Convert the following to CNF (Chomski Normal Form) S -> ABA, A -> aA | epsilon, B -> bB | epsilon

    Asked in Nov/Dec 2024

    (13)
  2. 2.
    Construct a Turing Machine which will accept the set of strings over the alphabet {a, b} of the form a^n b^(3n).

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    (i) Convert the CFG into CNF S -> AB, A -> aAA | epsilon, B -> bBB | epsilon (ii) Prove that L = {a^n | n is perfect square} is not context free.

    Asked in Apr/May 2024

    (13)
  4. 4.
    (i) Design a Turing Machine to compute f(m, n) = m - n, if m >= n; = 0, if m < n (ii) Explain the programming techniques for Turing Machine.

    Asked in Apr/May 2024

    (13)

UNIT 5Undecidability

Most asked topics: Recursive and recursively enumerable languages (2/4) · Travelling Salesman Problem (2/4) · MPCP (1/4) · Properties (1/4) · Universal Turing machine (1/4) · P and NP completeness (1/4)

Part A · 2 marks

  1. 1.
    What is meant by undecidability of problem?

    Asked in Nov/Dec 2024

    (2)
  2. 2.
    Give one example of an unsolvable problem.

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    When do you say a problem is decidable? Give example.

    Asked in Apr/May 2024

    (2)
  4. 4.
    What is intractable problem? Give example.

    Asked in Apr/May 2024

    (2)
  5. 5.
    List down a few properties of recursively enumerable set.

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    Define Class P and NP problems. Give examples.

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    (i) Discuss about Universal Turing Machines. (ii) Write short notes on P, NP class problems.

    Asked in Nov/Dec 2024

    (13)
  2. 2.
    Let l1 and l2 be any two undecidable languages. State and prove your answer to each of the following questions. (i) Is it possible that L1 - L2 n is regular? (ii) Is it possible that L1 union L2 is in Decidable?

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    (i) Let Sigma = {0,1}, Let A and B be the list of string defined as [Table: i - List A (wi) - List B (xi): 1 - 1 - 10; 2 - 110 - 0; 3 - 0 - 11] Find the instance of MPCP. (ii) Show that 3-CNF SAT is NP complete.

    Asked in Apr/May 2024

    (13)
  4. 4.
    Find the following languages are recursively enumerable. (i) Union of recursively enumerable languages. (ii) L and complement of L are recursively enumerable.

    Asked in Apr/May 2024

    (13)

PART CAny unit

Part C · 15 marks

  1. 1.
    Minimize the given Deterministic Finite Automaton using Myhill Nerode Theorem Method (Table Filling Method) States: 1, 2, 3, 4, 5, 6, 7, 8 and alphabets are {a, b}. [Figure: DFA with start state 1 and final state 3; transitions 1 -a-> 2, 1 -b-> 6, 2 -a-> 7, 2 -b-> 3, 3 -a-> 1, 3 -b-> 3, 4 -a-> 3, 4 -b-> 7, 5 -a-> 8, 5 -b-> 6, 6 -a-> 3, 6 -b-> 7, 7 -a-> 7, 7 -b-> 5, 8 -a-> 7, 8 -b-> 3]

    Asked in Nov/Dec 2024

    (15)
  2. 2.
    Construct a Turing Machine to carry out division operation using Unary Numbers? {Example 6 divided by 2 = 3}.

    Asked in Nov/Dec 2024

    (15)
  3. 3.
    Construct a minimal state DFA and find the regular expression for the DFA. [Figure: DFA with start state A and final states C, F and I; A -0-> B, A -1-> E, B -0-> C, B -1-> F, C -0-> D, C -1-> G, D -0-> E, D -1-> H, E -0-> F, E -1-> I, F -0-> G, F -1-> B, G -0-> H, G -1-> B, H -0-> I, H -1-> C, I -0-> A, I -1-> E]

    Asked in Apr/May 2024

    (15)
  4. 4.
    Construct a Turing Machine to implement the multiplication operation f(m,n) = m*n, where m and n are positive numbers and simulate their action as input 5*4.

    Asked in Apr/May 2024

    (15)
  5. 5.
    Construct an empty store PushDown Automata(PDA) for the below mentioned language: L(G) = {w | w in (a,b,c) and w is of the form XcX', where X' is the reversed string of X and X in (a,b)}. Also mention the state transitions of this PDA while parsing the string w = 'baacaab'.

    Asked in Nov/Dec 2023

    (15)
  6. 6.
    Consider the NFA N = (Q, Sigma, delta, q, F), where Q = {1, 2, 3}, Sigma = {a, b}, q = 1, F = {2}, and delta is given by the following table: [Table: state - a - b - c: 1 - {3} - phi - {2}; 2 - {1} - phi - phi; 3 - {2} - {2, 3} - phi] Convert the NFA (N) into DFA (M) that accepts the same language.

    Asked in Apr/May 2023

    (15)

A question asked once is no guarantee for the next exam; cover the full CS3452 syllabus. Read the papers themselves:Nov/Dec 2024, Apr/May 2024, Nov/Dec 2023, Apr/May 2023.