Machine-translated by Google. Questions are authored in English.
Top

Discussion

A grammar in Chomsky normal form has every production of the form

  • A.a nonterminal going to any string of terminals only
  • B.a single terminal going to a string of nonterminals
  • C.a nonterminal going to exactly three symbols in all cases
  • D.a nonterminal going to two nonterminals or to one terminal

Answer: D

The restricted shape is what makes the CYK parsing algorithm work. It is a theoretical convenience rather than something compiler writers impose on real language grammars. Converting a real grammar to this form would obscure it beyond recognition.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.