Question

For every symbol σ, σ 0 denotes the empty string, and for every positive integer k,...

For every symbol σ, σ 0 denotes the empty string, and for every positive integer k, σ k denotes the string of length k over the alphabet { σ }.

Using the pumping lemma for context-free languages, prove that the language {a mb mc 2m | m is an integer and m is not negative} is not context-free

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Let us assume that L is context free.

Now, as per Pumping Lemma, let us assume that u = ap, v = am-p, w = bm, x = cq, y = c2m-q

Since L is CF, the string uviwxiy should also belong to L.

For i = 2, uv2wx2y = am+pbmc4m+q

Clearly, (m + p) != m and 2*(m + p) != (4m + q)

Hence, the string uviwxiy does not belong to L and this means that L is not a context free language.

Add a comment
Know the answer?
Add Answer to:
For every symbol σ, σ 0 denotes the empty string, and for every positive integer k,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT