Question: ( a ) Give context - free grammars that generate the languages L 1 = { a i b j c k | i ,

(a) Give context-free grammars that generate the languages L1={aibjck|i,j,k0,i=j} and
L2={aibjck|i,j,k0,j=k}.
(b) Show that L1L2={anbncn|n0}.
(c) Find the above language in the textbook, after the proof of the pumping Lemma (write down
edition, page, number). Show that the class of context-free languages is not closed under inter-
section.
(d) Use (c) and DeMorgan's law (write down edition, page, number) to prove that the class of
context-free languages is not closed under complementation.
 (a) Give context-free grammars that generate the languages L1={aibjck|i,j,k0,i=j} and L2={aibjck|i,j,k0,j=k}.

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