If w belongs to L(G), for some CFG, then w has a parse tree, which defines the syntactic structure of w. w could be:

If w belongs to L(G), for some CFG, then w has a parse tree, which defines the syntactic structure of w. w could be:
A. program
B. SQL-query
C. XML document
D. All of the mentioned
 
Answer: D
Explanation: Parse trees are an alternative representation to derivations and recursive inferences. There can be several parse trees for the same string.
 

Tìm kiếm

Back
Top