CYKalgoritmen
The CYK algorithm, named after its discoverers John Cocke, Daniel Younger, and Tadao Kasami, is a dynamic programming algorithm used for parsing strings of a given context-free grammar. Specifically, it determines if a given string can be generated by a context-free grammar that is in Chomsky normal form. Chomsky normal form requires that all production rules are of the form A -> BC or A -> a, where A, B, and C are non-terminal symbols and 'a' is a terminal symbol.
The algorithm works by filling a triangular table, typically denoted as a 2D array, where the rows
If the top-right cell of the table, corresponding to the entire input string, contains the start symbol