colis
colis

Reputation: 23

Tips to proof a language is not regular using Pumping Lemma

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

Answers (1)

Pascal NoPascensor
Pascal NoPascensor

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:

  • x=ak
  • y=al
  • z=a2p-k-l bp

where |xy|≥ 0 and |y|>0.

Taking i=2, you have xy2z:

  • s = ak alal a2p-k-l bp

that is:

  • s = a2p+l bp

Since l contains at least one 'a' (because |y|>0). You can say L is not regular

Upvotes: 1

Related Questions