Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

How this language is Context free?

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

share|cite|improve this question

1 Answer 1

$$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.