Computer Science EngineeringHard
Which machine model is equivalent in power to context-free grammars?
- A. Nondeterministic pushdown automaton
- B. Deterministic pushdown automaton
- C. Finite automaton
- D. Linear bounded automaton
Correct answer: A. Nondeterministic pushdown automaton
Every context-free language is accepted by some nondeterministic PDA and vice versa.
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
- The intersection of a regular language and a context-free language is always
- Compared with a parse tree, an abstract syntax tree
- How many states does the LR(0) automaton (canonical collection of item sets, including the augmented production) have for the grammar S ->…
- For the grammar S -> aSb | c, what is FIRST(S)?
- Eliminating the left recursion from E -> E + T | T yields
- When a code generator has no free register and stores a live value to memory to free one, the process is called