...
GATE 2001
November 17, 2024
GATE-2024-CS1(Forenoon)
November 17, 2024
GATE 2001
November 17, 2024
GATE-2024-CS1(Forenoon)
November 17, 2024

GATE 2008

Question 9

Which of the following is true for the language {ap|p is a prime} ?

A
It is not accepted by a Turing Machine
B
It is regular but not context-free
C
It is context-free but not regular
D
It is neither regular nor context-free, but accepted by a Turing machine
Question 9 Explanation: 
Finding prime number cannot be done by FA or PDA, so it cannot be regular or CFL. This language can be recognized by LBA, hence it can be accepted by Turing Machine.
Correct Answer: D
Question 9 Explanation: 
Finding prime number cannot be done by FA or PDA, so it cannot be regular or CFL. This language can be recognized by LBA, hence it can be accepted by Turing Machine.

Leave a Reply

Your email address will not be published. Required fields are marked *