284 views
0 votes
0 votes
Is 0^n 1^n 0^n 1^n where n>=0 a CFG ?

Its given that its not CFG , please explain how ?

1 Answer

0 votes
0 votes

We use the pumping lemma whenever we want to prove that something is not a CFG.

Pumping lemma states: If it is a CFG, then it can be pumped.

Use the contrapositive of that statement, i.e., if it can't be pumped, then it is NOT a CFG.

Watch this video if you want a good explanation of pumping lemma for CFG's.

Related questions

0 votes
0 votes
1 answer
1
moe12leb asked Jan 21, 2023
277 views
S→ aS | bS | epsilonwhat is the language generated by this grammar ?
0 votes
0 votes
2 answers
2
moe12leb asked Jan 21, 2023
272 views
what is the langauge generated by this grammar ?S >aS | aSbS | ε what is the language
0 votes
0 votes
0 answers
3
moe12leb asked Nov 28, 2022
220 views
Find context-free grammars for the following languageL = { w : na(w) = 2nb(w); where w belongs {a, b}*}
0 votes
0 votes
1 answer
4
moe12leb asked Nov 28, 2022
351 views
Find context-free grammars for the following languageThe complement of the language L = belongs {a^n, b^n}