Choose the incorrect process to check whether the string belongs to the language of certain variable or not?

Choose the incorrect process to check whether the string belongs to the language of certain variable or not?
A. recursive inference
B. derivations
C. head to body method
D. All of the mentioned
 
Answer: D
Explanation: There are two approaches to infer that certain string are in the language of a certain variable. The most conventional way is to use the rules from body to head, recursive inference. The second approach is expanding the starting variable using one of its productions whose head is tart symbol and derive a string consisting entirely of terminals(head to body or derivations).
 

Tìm kiếm

Back
Top