FLAT-M14

2
USN 10css6 [Refer Fig.Q I (b)] (10 Marks) t Fifth Semester B.E. Degree Examination, June/July 2014 Formal Languages and Autom ata Theory Time: 3 hrs. Max. Marks:100 Note: Answer FIVEfull questions, selecting at least TWO questions from each part. PART _ A PART _ A I a. Write the DFAs for the following languages *"r >: {a, b} (1) The set of all strings ending with a & b. (ir) The set of all strings not containing the substring aab. (iii) Set'of all strings with exactly three consecutive a's. (10 Marks) ci o o ! o. d E Cd o 0) ! 9?U -o oo coo .=N too Yai oq -O ?- a:I oo) =! ooc -6 d4 'Oc 6r o. 6- tro- ocv o..l 9E t (.) a ti, !O 5.e >\ (r eo0 o= -(€ !t !.) Xo o- U< -i Gi o o z d ! o b. Define NFA" Convert the following NFA to its equivalent DFA. 2 a. Consider the following €- NFA: (r) Compute the e-closure of each state (ii) Convert the e - NFA to DFA. (08 Marks) b. Define Regular expression. Convert the following automation to a regular expression using state elirnination technique. [Refer Fig.Q2(b)] (08 Marks) a.. b c -+p d {p} {q} {r} q {'P } {q} {r} d *r {4} {'} d {p} o,\ -F _ Fie.e2(b) c. Convert the regular expression (0 + 1). | (0 + 1) to an NFA. (04 Marks) 3 a. State and prove pumping lemma for regular languages. (10 Marks) b. Define distinguishable and indistinguishable states. Minimize the following DFA using table filling algorithm. (to Marks) A B r<c D E F G H Fie.Q1(b) B F G C A C C G H F C G G E G C I of2

description

fafl question paper

Transcript of FLAT-M14

  • USN 10css6

    [Refer Fig.Q I (b)] (10 Marks)t

    Fifth Semester B.E. Degree Examination, June/July 2014Formal Languages and Autom ata Theory

    Time: 3 hrs. Max. Marks:100Note: Answer FIVEfull questions, selecting

    at least TWO questions from each part.PART _ APART _ A

    I a. Write the DFAs for the following languages *"r >: {a, b}(1) The set of all strings ending with a & b.(ir) The set of all strings not containing the substring aab.(iii) Set'of all strings with exactly three consecutive a's. (10 Marks)

    cioo!o.dECd

    o0)!

    9?U

    -ooocoo.=NtooYaioq-O

    ?-

    a:I

    oo)=!ooc

    -6d4'Oc

    6ro. 6-tro-ocvo..l

    9Et (.)a ti,

    !O5.e>\ (reo0o=-(!t !.)Xoo-

    U