r/AskComputerScience • • Dec 10 '24

Pumping Lemma

L1 = { 0^n1^n | n ≥ 0 } is non-regular.

My teacher said that when we make x that we should make the y in 0and 1 form but i cant see any contradiction with this method what is the correct method

0 Upvotes

12 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Dec 11 '24

In the pumping lemma pay attention to where "for all" and "there exists" quantifiers are being used. We have to construct a contradiction. So wherever for all condition is there, we have a free reign to select any example of our choosing, make sure to take edge cases to make your life easier, but where "there exists" is given it means that we have the responsibility to check for all possible cases

1

u/MaximumUnique8839 Dec 11 '24

hhmm thanks in ogdens lemma we should look at the scenarios am i right?