RT22055052015
RT22055052015
PART-A
1 a) What is Finite State Machine? What are the elements of FSM? (3)
b) What is the difference between CFG and CSG? (3)
c) Consider a DFA M = (Q, ∑, δ, q0, F), What is the minimum and maximum number (2)
of initial states in it?
d) Give the formal definition of Moore machine (2)
e) What are the applications of CFG? (3)
f) List out the components of turing machine (3)
g) What is dead state? Give an example. (3)
h) Give the formal definition of TM? Give the block diagram of TM (3)
PART-B
2 a) What is Computation? What are the different models of Computation? Explain (5)
b) What are the different classes of automata? How they are classified? Explain in (5)
detail.
c) Give the formal definition of FSM? What are the examples of FSM? (6)
3 a) What are the different operations on strings? Explain with examples? (3)
b) What are the different types of languages in automata theory? Clearly give the (6)
rules for each of these languages and the relationship among these languages
c) Consider a language L*, where L={ab,cd} with ∑={a,b,c,d}. (7)
(i) write all words in L* that have six or less letters/symbols
(ii) What is the shortest string in ∑* that is not in the language L*?
1 of 2
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: RT22055 R13 SET - 1
4 a) Construct a DFA accepting the language L={w: |w| mod 8 ≠0}on ∑={a,b} (8)
b) Obtain a DFA to accept strings of a’s and b’s such that, each block of 5 (8)
consecutive symbols has at least two a’s.
0 1
0 1 q4 q4 q5
q1 q1 q2 q5 q6 q4
q2 q3 q1 q6 q7 q6
q3 q2 q3 q7 q6 q4
7 a) Design a total Turing machine to accept the language: L2 = {w Є {a, b, c}*| #a(w) (12)
≤ #b(w) ≤ #c(w)} (Note: ‘#’ means number)
2 of 2
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: RT22055 R13 SET - 2
PART-A
1 a) What is Finite State Machine? What are the advantages of FSM (4)
b) Define regular expression (2)
c) Consider a NFA M=(Q,∑, δ, q0, F), What is the minimum and maximum number (3)
of states in it?
d) Give the formal definition of Mealy machine. Give an example (3)
g) Differentiate between PDA and TM with respect to tape and head (4)
PART-B
2 a) What is state diagram and state transition table. Explain with an example. (5)
b) What are the different classes of automata? How they are classified? Explain in (5)
detail.
c) What are the components of FSM? Explain. (6)
3 a) What is push down Automata? Show how context free language is accepted by (8)
push down automata.
b) Consider a language L*, where L={ab, cd} with ∑={a,b,c,d}. (8)
(i) Write all words in L* that have six or less letters/symbols
(ii) What is the shortest string in ∑* that is not in the language L*?
1 of 2
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: RT22055 R13 SET - 2
4 a) Construct a DFA accepting the language: {WЄ{a,b}*: W has both ab and ba as (8)
substrings}
b) Design a ε-NFA for the regular expression a*bc/ab*/c* (6)
c) Define ε-closure of a state? Give an example (2)
0 1
0 1 q4 q4 q4
q1 q1 q2 q5 q6 q4
q2 q3 q1 q6 q4 q6
q3 q2 q3 q7 q6 q4
6 a) What is use of simplification of CFG? What is the procedure to simplify the (8)
CFG? Explain
b) Simplify the following grammar. (8)
S → aAa
A → bBB / D
B → ab / ε
C → aB
7 a) Give the formal definition of TM? What are the components of TM? What is id (6)
of TM?
b) Design a Turing Machine for the {L=wwR/wЄ(0+1)*} (10)
2 of 2
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: RT22055 R13 SET - 3
PART-A
1 a) What is Finite State Machine? What are the disadvantages of FSM (3)
b) Φ*=-------- and ε*=------- (2)
c) Consider a ε-NFA M=(Q,∑, δ, q0, F), What is the minimum and maximum (2)
number of states in it?
d) What is Unit Production? If you eliminate the unit productions from the given (3)
CFG, what will be the effect on the language by the resultant grammar
e) When you convert Є-NFA to NFA, how do you decide the final states of (4)
resultant NFA. Give an example
f) What is left recursion? How to eliminate the left recursion (4)
e) Differentiate between PDA and TM with respect to: halt state and final state (4)
PART-B
2 a) Give the formal definition of FSM? What are the examples of FSM? (5)
c) What is state diagram and state transition table? Explain with an example. (6)
1 of 2
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: RT22055 R13 SET - 3
5 a) Write short note on i) optimum DFA ii) Two wag DFA. (4)
b) Convert the following DFA to RE. (6)
0 1
p p r
q q r
r q r
c) Check the following two DFA are equal or not (6)
0 1
0 1 q4 q6 q5
q1 q1 q2 q5 q6 q4
q2 q3 q1 q6 q7 q5
q3 Q3 q3 q7 q6 q4
6 a) Define Chomsky Normal form and Greibach Normal form? What is the (8)
difference between these two normal forms.
b) Convert the following CFG into GNF. (8)
A1 → A 2 A 3
A 2 → A3 A1 / b
A3 → A1 A 2 / a
7 a) Give the formal definition of TM? What are the different types of TMs? (6)
Explain.
b) Design a Turing Machine for L = {wcwR/wЄ(0+1)*} (10)
2 of 2
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: RT22055 R13 SET - 4
PART-A
1 a) What is Finite State Machine? What are the applications of FSM (3)
b) − (3)
If L={ ε , 00,01,10,11, 000,….111,…}, find L over the alphabet {0,1}
c) Consider a DFA M=(Q,∑, δ, q0, F), What is the minimum and maximum number (2)
of final states in it?
d) What is useless symbol in a CFG? If you eliminate the useless symbols and (3)
productions from the given CFG, what will be the effect on the language by the
resultant grammar
e) What is left recursion? How to eliminate the left recursion (3)
f) Give the formal definition of Moore machine? (2)
g) What is an infinite loop in TM? Explain with an example. (3)
h) Give the differences between DFA and 2DFA with examples. (3)
PART-B
2 a) Give the general procedure for drawing a state diagram from transition table. (5)
b) Construct a finite automata with transition for the regular expression r = 01*+10 (5)
3 a) Write a short note on i) Symbols ii) Alphabets and ii) Strings. (3)
1 of 2
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: RT22055 R13 SET - 4
5 a) List out the properties of Regular sets and Regular languages (4)
b) Minimize the following DFA, where state ‘0’ is the start state and 3,5,6&7 are (6)
the final states.
a b
0 1 2
1 4 5
2 3 -
3 - -
4 4 2
5 6 -
6 7 -
7 7 -
c) Check the following two DFA are equal or not (6)
0 1
0 1 q4 q4 q5
q1 q1 q2 q5 q5 q4
q2 q3 q1 q6 q7 q6
q3 q2 q3 q7 q6 q4
6 a) What is normalization of CFG? What is the use of Normalization? What are the (8)
different normal forms? Explain
b) Convert the following CFG into GNF. S→AA|0, A→SS|1 (8)
2 of 2
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||