Toc Imp Questions
Toc Imp Questions
UNIT- I & II
Q.1. Prove that: 1+4+7+ ………….. + (3n – 2) = n (3n – 1)/2 for n>0.
Q.2. Considers the following transition table & solve the following,
€ a b c
i) Draw the transition diagram for the above table. ii) Compute the €- Closure for each
state. iii) Convert the above into a DFA.
Q. 3. Consider the following Mealy Machine & convert it to Moore Machine & Draw the
transition diagram for both.
Present a=0 a=1
q1 q1 1 q2 0
q2 q4 1 q4 1
q3 q2 1 q3 1
q4* q3 0 q1 1
Q. 4. Conversion of FA TO RE
Q. 7. Define Alphabet, Symbol, String, Mealy & Moore Machine, FA with output Machine,
Language?
UNIT – III & IV
Q. 5. Convert the given Right Liner Grammar into its equivalent Left Liner Grammar,
R. E = a* b (a+b)*
Q. 10. Consider the Grammar given below, Find out the leftmost & Right Most Derivation for
the string 1001001 & also draw the Parse tree for the both Derivation?
Q. 2. Obtain CFG for the given PDA as given below, d(q0, 0 ,Z) = (q0, AZ), d(q0, 1, A) = (q0,
AA), d(q0, 0, A) = (q1, e)?
Q. 8. Construct the TM for a successor function for a given unary number i. e. f(n) = n + 1?
Q. 10. Construct a TM for a language having equal number of a’s & b’s in it over the input set
E = {a,b}?