Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How this language is Context free?

$\mathcal{L2}=\{a^ib^jc^i \;|\;i,j\geq 1\}$ Please explain me.

share|cite|improve this question

$$S\to a A c$$ $$A\to a A c$$ $$A\to bB$$ $$B\to bB$$ $$B\to \epsilon$$

share|cite|improve this answer
Is this language CFL? – Sudhir Nov 14 '12 at 17:25
@sudhir: The answer contains a context-free grammar which generates your language, so yes. – Tara B Nov 14 '12 at 17:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.