Answer on Question#38647 – Math - Other
The language is not a context-free.
If were context free, then the pumping lemma should hold.
Let . Given this string and knowing that , we want to define as such that , . Because , there are five possible descriptions of :
1. is for some
2. is for some
3. is for some
4. is for some
5. is for some
Note that because , cannot contain both ""s and "". For all of these cases, , , should be in the language.
In case 1, if we will be adding an to the string, making the number of ""s and thus the string is not in the language. The same argument holds for case 3 in which the number of ""s will be equal to the number of ""s. A similar argument holds in case 5.
In case 5 if then the number of ""s will be less than or equal to the number of ""s.
In case 2, when either the number of ""s will be greater than the number of ""s or the number of ""s will be greater than the number of ""s (depending on the distribution of and ).
In case 4, when either the number of ""s will be less than or equal to number of ""s or the number of ""s will be less than or equal to the number of ""s (depending on the distribution of and ).
Answer: C.