Home » Theory of Computation » Theory of computation miscellaneous » Question

Theory of computation miscellaneous

Theory of Computation

  1. Which of the following is true for the language {ap | p is a prime}?
    1. It is not accepted by a turning 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
Correct Option: D

{ aP Pis a prime no. }
This prime no. is extra constraint so this language is neither LFG nor RG but it can be accepted by turing machine.



Your comments will be displayed only after manual approval.