Is this a context free language?
{a^(2k) b^n c^n : k >= 0 ∧ 0 <= n <= m}∪
{a^(2k+1) b^n c^m :k >= 0 ∧ n >= m >= 0}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way to prove a Language a Context-Free-Language is to write Context-Free-Grammar for the given language:(or either draw PDA)
The language below:
is Context Free Language
I think you have made mistake in writing question as I commented to you question, I am doing for above grammar
We can write Context-Free-Grammar for this Language:
in Context-Free-Grammar productions of kind
α --> βwhereαis a single variable.S1 generates this part {a(2k) bn cm : k >= 0 and 0 <= n <= m} and S2 generates {a(2k+1) bn cm : k >= 0 and n >= m >= 0}
And
In grammar
Sis start Variable and {S, S1, S2, A, B, C} all are variable.So in above grammar every productions are in the form
α --> βwhereαis a single variable hence given language is Context-Free-Language.Let me know if you have other doubt or if your language I misunderstood