Question #38644

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

Expert's answer

Answer on Question#38644 – Math - Other

Let nn be the pumping-lemma constant, and consider Z=anbncnZ = a^{n}b^{n}c^{n}. Using the pumping lemma

If a language LL is context-free, then there exists some integer p1p \geq 1 such that every string ss in LL with sp|s| \geq p can be written as s=uvxyzs = uvxyz.

We can see that this language is not a context-free language and also context-sensitive.

Answer: C.


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