A CFG consist of the following elements:

Minh Phượng

New member
A CFG consist of the following elements:
A. a set of terminal symbols
B. a set of non terminal symbols
C. a set of productions
D. all of the mentioned
 
Answer: D
Explanation: A CFG consists of:
A. a set of terminals, which are characters of alphabets that appear in the string generated by the grammar.
B. a set of non terminals, which are placeholders for patterns of terminal symbols that can be generated by the nonterminal symbols.
C. a set of productions, which are set of rules to transit from one state to other forming up the string
D. a start symbol, a special non terminal symbol that appears in the initial string generated in the grammar.
 

Tìm kiếm

Back
Top