CYKalgoritmus
The CYK algorithm, named after its creators John Cocke, Daniel Younger, and Tadao Kasami, is a parsing algorithm used in computer science to determine if a given string can be generated by a specific context-free grammar. It is a dynamic programming algorithm that works by filling a table of possible grammatical constituents for all substrings of the input string. The algorithm is particularly efficient for grammars that are in Chomsky normal form, a standardized form of context-free grammars where each production rule is either of the form A -> BC or A -> a, where A, B, and C are non-terminal symbols and 'a' is a terminal symbol.
The CYK algorithm constructs a table where rows represent the length of substrings and columns represent the