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

Discussion

The CYK algorithm parses any context free grammar in time

  • A.proportional to the cube of the input length
  • B.proportional to the input length alone
  • C.proportional to the square of the input length
  • D.exponential in the length of the input string

Answer: A

The cubic bound covers every context free grammar, including ambiguous ones. Compilers use linear methods instead by restricting the grammars they accept. A cubic algorithm on a large source file would make compilation unacceptably slow.

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

Post your comment

Please log in or register to post a comment.