With reference to the process of conversion of a context free grammar to CNF, the number of variables to be introduced for the terminals

With reference to the process of conversion of a context free grammar to CNF, the number of variables to be introduced for the terminals are:
S->ABa
A->aab
B->Ac
A. 3
B. 4
C. 2
D. 5
 
Answer: A
Explanation: According to the number of terminals present in the grammar, we need the corresponding that number of terminal variables while conversion.
 

Tìm kiếm

Back
Top