How does the CYK algorithm work?
问题 I have to check if a string can be derived from a given context free that is in Chomsky normal form. I'm using C++. There is very nice pseudocode on the Wikipedia article covering the CYK algorithm, but I can't understand it very well. Would someone be so kind to help me out by giving me another pseudocode for CYK algorithm, or maybe explain the one in the wiki article? 回答1: The CYK algorithm takes as input a CFG that's in Chomsky normal form. That means that every production either has the