r/AskComputerScience • u/MaximumUnique8839 • 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
View all comments
Show parent comment
2
u/Sexy_Koala_Juice Dec 12 '24
Yeah this is good.
I’d say OP should try and find as many of these cases as possible for the language L1, from memory there’s very little for this language. You only need one contradiction but having an understanding of multiple would definitely help