CYK algorithm: Difference between revisions

Content deleted Content added
Teetooan (talk | contribs)
Generating a parse tree: Corrected my own mistake, due to inconsistency between figure and algorithm, and improved explanation.
Teetooan (talk | contribs)
Example: Added explanation for the two dimensional CYK table, and corrected notational inconsistency.
Line 74:
|}
 
For readability, the CYK table for ''P'' is represented here as a 2-dimensional matrix ''M'' containing a set of non-terminal symbols, such that R<sub>k</sub> is in ''M[i,j]'' iff ''P[i,j,k]''.
Since <math>P[1,7,R_S]</math> is true, the example sentence can be generated by the grammar.
In the above example, since the start symbol ''S'' is in ''M[1,7]'', the sentence can be generated by the grammar.
 
==Extensions==