Computer Science EngineeringVery hard

The language {a^n b^n c^n | n >= 1} belongs to which smallest class?

  1. A. Context-sensitive but not context-free
  2. B. Regular
  3. C. Context-free
  4. D. Not recursive

Correct answer: A. Context-sensitive but not context-free

The pumping lemma for CFLs excludes it, but a linear bounded automaton can match three equal counts.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic