Question: * * Solve all but submit 5 only. Q 1 . Prove using pumping theorem for regular languages that L = { a n b

** Solve all but submit 5 only.
Q1. Prove using pumping theorem for regular languages that L={anbm,m2n} is not regular.
Q2. Prove by induction that for the following CFG G,L(G)={win{a,b}**,na(w)=nb(w)}.
S SASBS | SBSAS |
AaBb
Q3. Find a rightmost derivation and a leftmost derivation for the string aabbbb using the grammar
SAABC,BSb|,CCSb|b
Draw the parsing tree of each derivation.
Q4. Find an s-grammar for each of the following languages:
a-L={anbn+1:n2}
b-L={anbm:n1,m=3n+1}
Q5. Show that the following grammar G is ambiguous
SaSbS|aS|
(Consider the string aab. Show that it has two:
a) Parse trees.
b) Leftmost derivations.
Q6.(Grammar Simplification) Begin with the grammar:
SCSBb|aC|AD
AaAS|aCA
BC|bb|ACD
CAC|cC|
DDA|a|b
a) Remove -productions.
b) Remove any unit-productions in the resulting grammar.
c) Remove any useless symbols in the resulting grammar.
d) Put the resulting grammar into Chomsky Normal Form.
Q7. Prove using pumping theorem for CFL that L={anbncm,n0,(m)>2n} is not context free.
Q8. Design an NPDA for the language L={win{a,b}+,na(w)2nb(w)}.
Q9. Design a DPDA that accepts the following language and trace its configuration changes given the input
aaabb$: ($ is a marker for the end of input)
L={anbm$,m2n}
Q10. Give an NPDA corresponding to the following CFG (Use the construction given in class):
SaSBb|aC|bA
AaAS|bA|a
BbB|aAC
CcC|
* * Solve all but submit 5 only. Q 1 . Prove

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!