in Theory of Computation recategorized by
1,030 views
1 vote
1 vote

Let $L=\{a^p\mid p \text{ is a  prime}\}.$ Then which of the following is true

  1. It is not accepted by a Turing Machine
  2. It is regular but not context-free
  3. It is context-free but not regular
  4. It is neither regular nor context-free ,but accepted by a Turing Machine
in Theory of Computation recategorized by
by
1.0k views

1 Answer

3 votes
3 votes
Best answer

The language is an example of Context Sensitive Language which is not context free, therefore, it will be accepted by a Turing Machine. Option D is the correct answer.

selected by
Answer:

Related questions