Match List I with List II. List I: A. A → aB | a (a ∈ T; A, B ∈ V), B. A → BC | a (a ∈ T; A, B, C ∈ V), C. LL(1) grammar, D. Halting problem. List II: I. Recursive descent parser, II. Turing machine, III. Chomsky Normal Form, IV. Finite automata.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. A-IV, B-III, C-I, D-II
Explanation
A → aB | a is a right-linear (regular) grammar, equivalent to a finite automaton. A → BC | a is Chomsky Normal Form. LL(1) grammars are parsed by (predictive) recursive descent. The halting problem concerns Turing machines.
More Theory of Computation and Compilers questions
- For the regular languages and context-free languages which is not correct? A. both are closed under union operation B. both are closed unde…
- Match List-I with List-II :
- For the given two machines which of the following is correct?
- Let L= {ab, aa, baa}. Which of the following strings are not in L*?
- Let A={a, b} and L=A*. Let X={anbn, n>0}. The languages L U X and X are respectively :
- Which of the following symbol table implementations is best suited if access time is to be minimum?