February 2022
Beginner to intermediate
572 pages
13h
English
In Section 5.2, we claim, without any elaboration, that membership and parsing algorithms for context-free grammars exist that require approximately |w|3 steps to parse a string w. We are now in a position to justify this claim. The algorithm we will describe here is called the CYK algorithm, after its originators J. Cocke, D. H. Younger, and T. Kasami. The algorithm works only if the grammar is in Chomsky normal form and succeeds by breaking one problem into a sequence of smaller ones in the following way. Assume that we have a grammar G = (V, T, S, P) in Chomsky normal form and a string
We define substrings
and subsets of V
Clearly, w ∈ L(G) if ...