Question #38648

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

Expert's answer

Answer on Question#38648 – Math - Other

LL is easily seen to be a context-free language, we can design a pushdown automaton (type of automaton that employs a stack) that guesses whether to compare the asa^{\prime}s or bsb^{\prime}s with the csc^{\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