KCS402 CT1 2020 2021
KCS402 CT1 2020 2021
KCS402 CT1 2020 2021
Section(A)
Attempt all questions. Each question carries 2 marks. (2*3 = 6)
Q1. Design the DFA for following languages over the alphabet {a, b}.
i. Language of all strings ends with either aab or bab in them.
ii. Language of all strings containing even number of a’s and odd number of b’s.
Q2. Convert the given ε-NFA into DFA
Q3. Find the regular expression for the complement of the language recognized by the given NFA.
Section(B)
Attempt all questions. Each question carries 3 marks. (3*3=9)
Q4. Minimize the following DFA having state q2 as final state:
Q6. Construct a regular expression for given languages over the alphabet {a, b}.
i. Language of all words of length 3.
ii. Language of all words starting with aa and ending with aa.
iii. Language of all the strings that contains at least one a and at least one b.