Panimalar Engineering College
Panimalar Engineering College
2. Differentiate between proof by contradiction and proof by contra [BL2] [CO1] [2]
positive.
3. Construct DFA which accepts a string that contains second symbol is [BL4] [CO1] [2]
zero and fourth symbol is 1 over an alphabet ∑={0,1}.
4. Define Non-Deterministic Finite Automation with ε Transition. [BL1] [CO1] [2]
1. write a regular expression for the language which accepts all strings [BL2] [CO1] [2]
with at least two a’s over the set Σ= {a, b}.
2. Show that (ϕ)*= ε for a regular expression. [BL4] [CO1] [2]
3. Construct finite automata for the regular expression (0+1)*1*. [BL3] [CO1] [2]
5. Prove that the complement of a regular language is also regular. [BL2] [CO1] [2]
7. Compute Regular Expression for the given Finite Automata. [BL3] [CO1] [13]
9. Construct a minimized DFA from the Regular expression (0+1)1(0+1)* [BL5] [CO1] [15]
and trace for a string w=01101.
10. Show that the regular language is closed under: [BL2] [CO1] [13]
a. Union
b. Intersection
c. Kleen closure
d. Complement
1. Derive the string "00101" for rightmost derivation using a CFG given by, [BL3] [CO2] [2]
S → A1B
A → 0A | ε
B → 0B | 1B | ε.
2. Define pushdown automata. [BL1] [CO3] [2]
4. Convert the following CFG to a push down automaton: [BL3] [CO3] [2]
A0A | 1A | 0 | 1.
1. Convert the following grammar into an equivalent one with no unit [BL3] [CO2] [2]
productions and no useless symbols:
S → ABA
A → aAA|aBC|bB
B → A|bB|Cb
C → CC|cC.
2. State the two normal forms and give an example. [BL1] [CO2] [2]
4. Design a TM that accepts the language of even integers written in [BL3] [CO4] [2]
binary.
5. Construct a Turing machine for computing 2’s complement of a binary [BL3] [CO4] [2]
number with the transition diagram.
Descriptive Questions ( 13 /15/16 Marks)
6. Convert the following grammar to Chomsky Normal Form. [BL3] [CO2] [13]
S A | AB0 | A1A
A A0 | 𝜀
B B1 | BC
Couse Instructor Course Coordinator Head of the Department
Name & Designation Name & Designation
C CB | CA | 1B
7. i. Obtain the Greibach Normal form equivalent to the grammar [BL3] [CO2] [10]
S→a|AB, A→a|BC, B→b, C→b.
ii. Remove 𝜀 - production from the following grammar.
S ASA | aB | b
AB [BL3] [CO2] [3]
B b | 𝜀.
8. Design a Turing machine to recognize the language L = {0n1n2n | n≥1}. [BL6] [CO4] [13]
10. Construct a Turing Machine for multiplying two non-negative integers [BL6] [CO5] [15]
using “copy” subroutine.
UNIT- V - UNDECIDABILITY
Course Marks
PART A ( 2 Marks) Bloom’s Level
Outcome Allotted
2. Let L be a language and L' be its complement. Identify whether the [BL4] [CO6] [2]
given language is recursive or recursively enumerable.
3. Let ={0,1}. Let A and B be the lists of three strings each, defined as [BL4] [CO6] [2]
List A List B
I wi xi
1 1 111
2 10111 10
3 10 0
Does this PCP have a solution? Explain?
4. What is Post Correspondence Problem (PCP)? [BL1] [CO6] [2]