Reputation: 23
I am trying to prove that the following language is not regular using the pumping lemma
L = {ai bj | i = 2j for some j ≥ 0}
I have decided to choose s = a2p bp, in this way |s| ≥ p and I can split it in three pieces xyz where for every i ≥ 0, xyiz ∈ L.
Any tips for continuing the proof?
Thanks!
Upvotes: 0
Views: 4030
Reputation: 171
Choose s = a2p bp is right!
As said by Grijesh Chauhan we must break strings in L in all possible ways.
So you can split s in:
where |xy|≥ 0 and |y|>0.
Taking i=2, you have xy2z:
that is:
Since l contains at least one 'a' (because |y|>0). You can say L is not regular
Upvotes: 1