Computer Science EngineeringVery hardISRO SC
A deterministic PDA with acceptance by empty stack (not final state) can accept only languages that are
- A. regular
- B. finite
- C. prefix-free
- D. context-sensitive but not context-free
Correct answer: C. prefix-free
Once the stack is empty the DPDA cannot proceed, so no accepted string can be a proper prefix of another accepted string.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- Very busy (anticipable) expressions analysis is of the type
- The intersection of two deterministic context-free languages is
- Which computational model recognizes exactly the class of regular languages?
- Which compiler phase reads the character stream and groups it into tokens?
- How many states are in the minimal DFA over {a, b} that accepts exactly the strings ending in 'ab'?
- The regular expression (a+b) over the alphabet {a, b} denotes