Content deleted Content added
Broken Link removed |
Rewrote the unnecessarily roundabout introduction. This is not the place to explain what parsing is, and the phrasing suggested CYK is somehow unique in being a parsing algorithm |
||
Line 1:
The '''Cocke–Younger–Kasami (CYK) algorithm''' (alternatively called '''CKY''')
The standard version of CYK operates only on context-free grammars given in [[Chomsky normal form]] (CNF).
The importance of the CYK algorithm stems from its high efficiency in certain situations. Using [[Landau symbol]]s, the [[Analysis of algorithms|worst case running time]] of CYK is <math>\Theta(n^3 \cdot |G|)</math>, where ''n'' is the length of the parsed string and ''|G|'' is the size of the CNF grammar ''G''. This makes it the most efficient parsing algorithm in terms of worst-case [[asymptotic complexity]], although other algorithms exist with better average running time in many practical scenarios.▼
▲Using [[Landau symbol]]s, the [[Analysis of algorithms|worst case running time]] of CYK is <math>\Theta(n^3 \cdot |G|)</math>, where ''n'' is the length of the parsed string and ''|G|'' is the size of the CNF grammar ''G''.
==Standard form==
|