be G = (V, E, P, S) the grammar to use the cyk algorithm with

type all non-terminals and terminals seperated by space
V:
E:
number of productions in cnf: