I was shown this at university lecture as a optional challenge problem but have no idea how to work it out.
Let L be the language L = {apbqapbq : p,q >= 0}
. Is this language context-free?
Either give a context-free grammar for it or prove that it is not context-free.
I know that L = {apbp:p >= 1}
is a context free language but the language in the question uses 2 variables and could also equal 0, making me think that it's not context free.
Should I be using pumping lemma? Any help and explanations would be appreciated