Professional Documents
Culture Documents
MODULE 1
1a. Explain with example (i)Language (ii) Power of an alphabet (iii) String
(iv)Concatenation (v) Suffix
b Define DFA and Construct DFA for the following Expression 5+5
. i) L = {W Є {0, 1}* : W has 001 as a substring}
ii) L = {W Є {a, b} * : W has even number of a’s and even number of b’s}.
2a. With a neat diagram, explain a hierarchy of language classes in automata theory.
b. Convert Following NFA to DFA
5+5
6+4
MODULE 2
4a. Write regular expressions for the following
i) {w € {a,b}* with atmost one a}
ii) {w € {a,b}* doesnot end with ba}
4+6
iii) {w € {0,1}* has substring 001}
iv) {w € {0,1}* |w| is Even}
MODULE 3
7a. Define CFG. Construct CFG for the following Language
i)Balanced Parentheses 5+5
b. Consider the grammar:
S → aS |aSbS | ε
Is the above grammar ambiguous? Show that the string “aab” has two
i) Parse trees
ii) Left most derivations
iii) Right most derivations
MODULE 4
10a. Define Turing Machine? Explain the working of a Turing Machine? 5+5
b. Explain Multitape Turing Machine with diagram
11 Design Turing Machine to Accept the Language L={anbn | n>=1}.Obtain the 10
Transition table and Transition Diagram. Show the ID’s for the string aaabbb.
12a. Explain the Model of Linear Bounded Automata? 5+5