Question #38165

What is the language {a^m b^(m+n) | m,n >= 1} ? Explain.

(A) regular
(B) context-free but not regular
(C) context sensitive but not context free
(D) type-0 but not context sensitive

Expert's answer

Answer on Question#38165 – Math - Other

Language {ambm+nm,n1}\{a^m b^{m+n}|m,n\leq 1\} is a context-free language since it can be represented by pushdown automata, but it is not regular since ΔFA\Delta FA can't count the no. of asa^{\prime}s and bsb^{\prime}s.

Answer: (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