1.

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) both (a) and (b)(d) none of the mentionedThe question was asked by my school principal while I was bunking the class.The query is from Deterministic PDA topic in portion Push Down Automata of Automata Theory

Answer»

The correct answer is (a) rejected

To explain: 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.



Discussion

No Comment Found

Related InterviewSolutions