Question: I. Describe the languages generated by: a . S ASA | A | A 0 0 | | | b . S 0 S 1

I.
Describe the languages generated by:
a.SASA|A|
A00|||
b.S0S1|SS|
c.ST0T
T TT |0T1|1T0|0|
II.
Consider the following context free grammar: G=({S,A,a,b},{a,b},R,S), where
SaAS
Sa
ASbA
ASS
Aba,
(a) Answer each of the following questions True or False:
(i) From the fact that G is context free, it follows that there is no regular expression for L(G).
(ii) L(G) contains no strings of length 3.
(iii) For any string winL(G), there exists u,v,x,y,z such that w=uvxyz,|vy|1, and uvnxynzinL(G) for all n0.
(iv) If there exist languages L1 and L2 such that L(G)=L1L2, then L1 and L2 must both be context free.
(v) The language (L(G))RR is context free.
(b) Give a leftmost derivation according to G of aaaabaa.
(c) Give the parse tree corresponding to the derivation in (b).
III. Convert to Chomsky Normal Form:
SAbA
AAa|||
I. Describe the languages generated by: a . S ASA

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 Finance Questions!