Unit-1 (TOC) (GGSIPU Previous Year Questions)
Unit-1 (TOC) (GGSIPU Previous Year Questions)
Theory of Computation
CIC-206
GGSIPU Previous year questions
Feb 2015
Q1) What is the difference between strings and words of language .Explain with example.
Q2) Differentiate between Kleen closure and positive closure with suitable example
Q3) Define regular language .What is the difference between (a,b) and (a+b)
Q5) Design a FA that accept all binary strings where 0’s and 1’s alternate
Q6) Convert the following NFA to DFA.In the figure ,A is start state and B is final State.
Q8) How pumping lemma can be applied to prove that certain sets are not regular
Q 10) (a) Determine the regular expression for the given DFA using the Arden theorem
A
1,0
May 2015
Q14) Construct a minimal DFA that can be derived from the following regular expression
0*(01)(0/111)*
Feb 2016
Q17) Differentiate between Deterministic Finite automata and Non deterministic Finite Automata
Q18) Construct a regular expression from the given FA(where P is final state ) by using Arden
theorem
Q21) Define regular expression .Explain the four characteristics that are used to simplify the regular
expression
May 2016
Q26) Draw a DFA for all strings over (0,1) consisting of even no of 0’s and even no of 1’s.
Q27) State and prove pumping lemma for Regular languages .Also prove that language L={anbn for
n=1,2,3-----------} is not regular
Q28) Find a regular expression corresponding to each of the following subset {0,1}
(a) The language of all strings containing atleast two 0’s
(b) The language of all strings containing atmost two 0’s
Feb 2017
Q30) Differentiate between Mealy and Moore Machine .Design a mealy machine to find the 1’s
complement of given binary number.
Q32) Find all the strings of length 4 or less in the regular set represented by the following regular
expression (a*b+b*a)*
(10+01)*0(001+011)*
State a b
qo q0 q3
q1 q2 q5
q2 q3 q4
q3 q0 q5
q4 q0 q6
q5 q1 q4
q6 q1 q3
Q 35) Design a DFA for the following regular expression P=(00)*(11)*.Afterwards convert that DFA in
a way (a) It would accept complement of a given regular expression (p) (b) It would accept reverse of
given regular expression (pr)
(2) (1+00*1)+(1+00*1)(0+10*1)*(0+10)*1)=(0+10*1)*
Q41) Convert the following Moore machine to its equivalent Mealy Machine
Feb 2018
Q42) Write down the regular expression for the following diagram
Q43) Design a Mealy machine to find the 2’s complement of given binary number which is processed
from right to left instead of left to right
Q44) Design a DFA accepting the binary equivalent of the elements of the set {2n|n>0} and describe
in English language the following regular expression (a)*b(a)*b(a)*b(a)*
Q45) Find all the strings of length 4 or less in the regular set represented by the following regular
expression (ba*+ab*) and design a DFA for the regular expression (00)*(11)*
Q46)Minimize the following DFA =({q0,q1,q2,q3,q4,q5,{a,b},delta ,q0,{q0,q5}) where delta
is given as δ(q0,a)=q0, δ(q0,b)=q3, δ(q1,a)=q2, δ(q1,b)=q5, δ(q2,a)=q3, δ(q2,b)=q4,
δ(q3,a)=q0, δ(q3,b)=q5, δ(q4,a)=q0, δ(q4,b)=q5, δ(q5,a)=q1, δ(q5,b)=q4
Q47) Design a DFA for the regular expression P=(1+01)*.Afterwards convert that DFA in such
a way it accepts complement and reverse of given expression
Q48) Prove that L={0N1N|N>=0}is not regular.
May-June 2018
Q48) What is finite automata .Differentiate between DFA and NFA
Q49) Construct a DFA over the alphabet {0,1},such that the number of 0’s in the string is
always even
Q50) State and prove Kleen’s theorem
Q51) Construct a Mealy machine which is equivalent to Moore Machine
Q53) Construct a DFA equivalent to NFA M whose transition table is given in table 2
Feb 2019
Q54) Define NFA with the help of an example
Q55) Construct a DFA to accept all strings over{0,1} which contain three consecutive zeros
Q56) Minimize the following DFA
Q57)
Q58) Construct the regular expression for the DFA shown below
May 2019
Q59) Construct a Mealy machine equivalent to Moore Machine given in table