Atc Mod
Atc Mod
1. Write the R.E. for a language {L=anbm :m>=1, n>=1 and mn>=3}.
2. Write the R.E. for a language {L=w : w (a,b)*)} and where w does not end with ba.
3. Write the R.E. for a set of strings of a’s, b’s and c’s which consists of no more than 3 a’s.
4. Write the R.E. for a language { L=w : w (a,b)*)}and w contains atleast 2 b’s that are not followed by an a.
5. Design a DFSM to accept the strings of language
L={ w ϵ (a,b)*:No two consecutive characters are same} .
6. Write any 5 functions on strings with example.
7. Design a DFSM to accept the strings of language
L={ w ϵ (a,b)*:w contains an even number of a’s and even number of b’s}
Assignment 2
1. What is CNF? Translate the following CFG to CNF.
SASB | ε
A aAS | a
BSbS | A | bb
2. Find the string aaabbabbba by applying left most derivation and the parse tree for the following grammar
and is it possible to obtain the same string by applying left most derivation but by selecting different
productions.
S‐>aB|bA
A‐>aS|bAA|a
B‐>bS|aBB|b
3. Construct Turing machine to accept the language L= {wwR | wϵ (a+b)*}. Demonstrate the
graphical representation for PDA obtained. Show the configuration of PDA on the input string
aabbaa.
4. Find the PDA for the following grammar
S→aABB | aAA
A→aBB| a
B→bBB | A
C→a
5. Explain the following terms.
i) Pushdown Automata
ii) Languages of PDA
iii) Instantaneous description of a PDA
6. Design PDA to accept the Language L={w/w is in {a,b} * and n a (w)=n b (w)
7. Demonstrate a Turing machine to accept the language L= {wwR | wϵ (a+b)*} also give the instantaneous
description for the input “abbbba”
Assignment 3
1. Write short notes on
i. Multi-tape Turing machine
ii. Non-deterministic Turing Machine
2. Explain Linear Bounded Automata.