TOC_All_Merged_Assignments
TOC_All_Merged_Assignments
Set –A
S. no Question Marks COs BT
Level
1. Construct DFA to accept the following languages over alphabet {0, 1} 5 Marks CO4 Level 5
2. Consider the following NDFA/NFA whose transition table is given and design 5 marks CO5 Level 6
DFA.Q= {q0, q1, q2, q3}, ∑={a,b}. Here q0 is the initial state and q3 is the final
state.
Q1.
Q2.
Q3.
Construct the Context free grammar representing the set of palindromes over
(0+1)*.
Q4.
Identify the place of Grammars, Languages and Machines in Venn diagram of Chomsky
hierarchy.
Q5.
Construct the minimum state automaton equivalent to the transition diagram
Q6.
Convert the following Null-NFA to its equivalent DFA.
Q7.
Let L = {w:w ε {0,1}* w does not contain 00 and is not empty}. Construct a regular expression
that generates L.
Q8.
Discuss the procedure to convert Moore Machine to Mealy machine and convert following Moore
Machine to Mealy Machine.
Q9.
Q10.
Prove that the language L = {a^n b^m | n < m} is not regular using the pumping lemma
Assignment-2
Average Learners
Subject Name Theory of Computation
Subject Code 22CST-353
SET-A
Q1.
Using Pumping Lemma prove that the Language A=(YY| Y->{0,1}*) is not Regular.
Q2.
Show that id+id*id can be generated by two distinct leftmost derivation in the grammar
E->E+E | E*E | (E) | id
Q3.
Find a reduced grammar equivalent to the grammar G by removing useless symbols
whose productions are
Q4.
Let L = {w:w ε {0,1}* w does not contain 00 and is not empty}. Construct a regular expression
that generates L.
Q5.
Construct NFA equivalent to the regular expression (0+1)01
SET-B
Q1.
How can you prove that a given language is not regular by the Pumping lemma? Write
down proper steps.
Q2.
Let G be the grammar:
S->aB/bA, A->a/aS/bAA, B->b/bS/aBB. obtain parse tree for thestring aaabbabbb
Q3.
Analyse Arden’s Theorem. Find regular expression for the following DFA using Arden’s
theorem.
Q4.
Discuss the terms null production and unit production with an example.
Q5.
(i) (b/a)*baa
(ii) 0*(01)(0/111)*
Slow learner Assignment
based on
MST-1
Subject Name Theory of Computation
Subject Code 22CST-353
Q2 Construct a DFA for the language over {0, 1}* such that it contains “000” as a
substring.
0101.
Q8 Construct DFA equivalent to the NFA given below and specify its regular Expression:
Q9 Consider a Mealy machine
Q4 Discuss steps to normalize CFG.Design the following grammar into equivalent one
with no unit production and no useless symbols and convert into CNF.
S->A|CB A->C|D
B->1B|1
C->0C|0 D->2D|2
Q7 Is it true that the language accepted by a non deterministic Turing Machine is different
from recursively enumerable language?
Q10 Discuss basic guidelines to design the Turing Machine. Develop a Turing machine to
4. Explain steps to prove that the Post Correspondence problem is Undecidable. 2 CO5 2
9. Discuss language accepted by the Turing machine. Construct a Turing Machine 2 CO5 6
for
language L = {wwr | w ∈ {0, 1}}
10. State when a problem is said to be decidable and give an example of an 2 CO5 3
undecidable
problem.
Assignment-3
Slow learner based on MST-2
Subject Name Theory of Computation
Subject Code 22CST-353
Q1 Let the production of the grammar be S-> 0B | 1A, A-> 0 | 0S | 1AA, B-> 1|1S |0BB. For
the string 0110 find the right most derivation.
Q2 Differentiate between ambiguous and unambiguous grammars and prove that following
grammars are ambiguous.
a) E->E+E/E*E/(E)/id
b) S->SS/(S)/a/∧
Q3 State rules to remove null-productions from CFG. Consider the grammar G whose
productions are
Q5 How can you prove that given language is not regular by Pumping lemma? Write down
proper steps.
Q10 a) Define PCP. Verify whether the following lists have a PCP solution.