CYK
The Cocke-Younger-Kasami (CYK) algorithm is a bottom-up parser for context-free grammars in Chomsky normal form. It determines whether a given string can be generated by a grammar and can construct a corresponding parse tree if one exists. The algorithm is widely taught in formal language theory and is used in some natural language processing and compiler tasks.
Background and prerequisites: The CYK algorithm was developed independently by John Cocke, Tadao Younger, and Tsuyoshi
Algorithm description: The CYK algorithm uses a dynamic programming table T of size n by n for
Complexity and notes: Time complexity is O(n^3 · |P|) in general, often treated as O(n^3) for a fixed