TAFL Question Paper
TAFL Question Paper
SECTION-A
Attempt ALL parts. All parts carry EQUAL marks. [2*5=10]
1. Design a DFA that accepts odd zeros and odd ones. (CO1)
2.Design a FA over alphabet ∑={0,1}, which accepts the set of strings either start with 01 or end with 01.
(CO1)
3.State and Prove Arden’s Theorem. (CO2)
4.Prove that (1+00*1)+(1+00*1)(0+10*1)*(0+10*1)=0*1(0+10*1)* (CO2)
5.What string (Language) will be generated by the grammar: S→aSbS/bSaS/€ (CO3)
SECTION-B
Attempt ALL questions from this section. Internal [5*4=20]
1.Obtain the DFA with minimum number of states which accepts the same language which is acceptable by
following DFA. (CO1)
State /∑ a b
q0 q2 q0
q1 q0 q2
q2 q3 q1
q3* q3 q1
q4 q3 q5
q5 q4 q4
q6 q5 q6
q7 q3 q3
2. Convert following Mealy to Moore machine: (CO1)
3. Draw the finite automata for the following expression 1(1+10)*11+(00+11)*. Convert that FA into NFA
without null-moves. (C02)
4. Find the regular expression corresponding to the following Finite Automata using Arden’s Theorem: (C02)
SECTION-C
Attempt ALL questions from this section. Internal Choices are indicated. [10*2=20]
1 Find a regular expression corresponding to each of the following subsets [0,1] (CO1)
a.) Language of all strings containing at-least 2 zeros.
b.) Language of all strings containing at most 2 zeros.
c.) Language of all strings ending with 01.
d.) Language of all strings ending with 1 and doesn’t contain 00
2 For the grammar G having productionsE→E+E/E*E/ (E)/id Find the followings: (CO3)
*******************************************************************