Question

Determine whether the following language is CFG(context free language) If its not prove by pumping lemma...

Determine whether the following language is CFG(context free language)

If its not prove by pumping lemma

L2 = { an | where n is a power of 2}

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

answer)

proof by pumping lemma for context free languages:

1)assume given language is context free and there exist a pda for this.

2)take a valid string from L.

z=aaaaaaaa

3)divide the string z into 5 parts. u,v,w,x,y

u=aaa,v=a,w=aa,x=a,y=a

4)if for any value of i,uviwxiy belongs to L then L is context free otherwise not.

say i=2 the uvixyiz becomes aaaaaaaaaa this is not belongs to L.

this is contradiction to our given statement.therefore this is not context free language.

Add a comment
Know the answer?
Add Answer to:
Determine whether the following language is CFG(context free language) If its not prove by pumping lemma...
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