Question #38643

The language {a^i b^j c^k| i=j or j=k} is
A. regular but not finite
B. deterministic context-free but not regular
C. context-sensitive but not regular
D.type-0 but not context-sensitive

Expert's answer

Answer on Question#38643 – Math - Other

We have the language L={aibjcki=j or j=k}L = \{a^i b^j c^k \mid i = j \text{ or } j = k\}. For example, the strings aabbcaabbc, abcabc, aaaaaa are in LL, while bccbcc, abbcabbc, cabcab are not in LL. We can see that the context-free grammar generates the language. A language is said to be context-free if there is a context-free grammar describing it. So the correct answer is B.

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