Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Theory of Automata 1, Exercises of Theory of Automata

Theory of Automata 1) Theory of Automata

Typology: Exercises

2023/2024

Uploaded on 05/11/2024

vardhit-chandra
vardhit-chandra 🇮🇳

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Context Free Grammar
Q1. Remover the useless productions from given grammar
S -> abS | abA | abB
A -> cd
B -> aB
C -> dc
Q2: Remove Unit Production from given grammar
S -> Aa | B
A -> b | B
B -> A | a
Q3. Remove the Null production from given grammar
S -> ABCd
A -> BC
B -> bB | λ
C -> cC | λ
Q4. Convert the given CFG to CNF.
S → a | aA | B
A → aBB | ε
B → Aa | b
Pushdown Automata
Q1. Design a PDA which accepting the language
L = {WcWR | W (a,b)*}.
Q2. Design a PDA which accepting L={0n+11n|n>0}.
Q3. NPDA for accepting the language L = {an bm cn | m, n>=1}
Q4. Construct Pushdown automata for L = {0n1m2m3n | m, n ≥ 0}

Partial preview of the text

Download Theory of Automata 1 and more Exercises Theory of Automata in PDF only on Docsity!

Context Free Grammar

Q1. Remover the useless productions from given grammar S - > abS | abA | abB A - > cd B - > aB C - > dc Q 2 : Remove Unit Production from given grammar S - > Aa | B A - > b | B B - > A | a Q3. Remove the Null production from given grammar S - > ABCd A - > BC B - > bB | λ C - > cC | λ Q4. Convert the given CFG to CNF. S → a | aA | B A → aBB | ε B → Aa | b

Pushdown Automata

Q1. Design a PDA which accepting the language L = {WcWR^ | W ∈ (a,b)*}. Q2. Design a PDA which accepting L={0n+1 1 n|n>0}. Q3. NPDA for accepting the language L = {an^ bm^ cn^ | m, n>=1} Q4. Construct Pushdown automata for L = {0n 1 m 2 m 3 n^ | m, n ≥ 0}