Question #38645

The language {a^i b^j c^k| k= max(i,j)} os
A. regular but not context-free
B. context-free but not regular
C. context-sensitive but not context-free
D.recursive but not context-sensitive

Expert's answer

Answer on Question#38645 – Math - Other

Suppose that pp is a pumping length for LL, and consider the string s=apbpcps = a^{p}b^{p}c^{p}. Using pumping lemma for context-free languages we may rewrite ss as uvxyzuvxyz where

1. vxyp|vxy| \leq p;

2. vy1|vy| \geq 1;

3. uvnxynzLuv^{n}xy^{n}z \in L for all n0n \geq 0.

We can see that the language not context-free but regular.

Answer: A.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS