All mock tests are FREE till 31 December — register to save your progress

Which of the following statement is correct?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. L = {aⁿbʲ : n = j²} is not a context-free language.

Explanation

Ackermann's function is total recursive but not primitive recursive. aⁿbᵏcⁿ⁺ᵏ needs a stack, so it is context-free, not regular. {aⁿbʲ : n = j²} fails the CFL pumping lemma. Every CSL (without λ) is accepted by some LBA, so D is false.

More Theory of Computation and Compilers questions