End Sem
End Sem
Note: Attempt all the questions. Write all the possible steps whenever required.
c) Design a NFA to accept the set of all strings starting with ‘a’
followed by ‘a’ or ‘b’ and ending with ‘a’ or any number of b’s.
1
3. a) Justify which language over {0,1} does the CFG with
productions S → 00S | 11S | S00 | S11 | 01S01 | 01S10 | 10S10 |
10S01 | ∈ generate?
2
b) (i) Derive a regular expression that represents the language
accepted by the state diagram shown in the below figure.
*****