If the PDA does not stop on an accepting state and the stack is not empty, the string is:

If the PDA does not stop on an accepting state and the stack is not empty, the string is:
A. rejected
B. goes into loop forever
C. all of the mentioned
D. none of the mentioned
 
Answer: A
Explanation: To accept a string, PDA needs to halt at an accepting state and with a stack empty, else it is called rejected. Given a PDA M, we can construct a PDA M’ that accepts the same language as M, by both acceptance criteria.
 

Tìm kiếm

Back
Top