Given a grammar in GNF and a derivable string in the grammar with the length n, any ___________will halt at depth n.

Given a grammar in GNF and a derivable string in the grammar with the length n, any ___________will halt at depth n.
A. top-down parser
B. bottom-up parser
C. multitape turing machine
D. none of the mentioned
 
Answer: A
Explanation: Given a grammar in GNF and a derivable string in the grammar with the length n, any top-down parser will halt at depth n. As the parameter ‘depth’ is mentioned, we will use a top-down parser. Example-LL parser.
 

Tìm kiếm

Back
Top