Metraipolis › archive › dc_f78e81b1a4c5

CYK algorithm — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/CYK_algorithm
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-06T18:38:09.115Z
SHA-256 of the archived text
aa23a663e11da648982c3baa8c32767cbd2fc0c800d87848a6065270866f672e
Stable URL of this page
https://metraipolis.com/documento/dc_f78e81b1a4c5

How to cite

CYK algorithm — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/CYK_algorithm (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_f78e81b1a4c5 (Metraipolis archive dc_f78e81b1a4c5, sha256 aa23a663e11da648982c3baa8c32767cbd2fc0c800d87848a6065270866f672e)
BibTeX
@misc{dcf78e81b1a4c5,
  title = {CYK algorithm — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/CYK_algorithm},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_f78e81b1a4c5; sha256 aa23a663e11da648982c3baa8c32767cbd2fc0c800d87848a6065270866f672e},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/CYK_algorithm. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In computer science, the Cocke–Younger–Kasami algorithm (alternatively called CYK, or CKY) is a parsing algorithm for context-free grammars published by Itiroo Sakai in 1961. The algorithm is named after some of its rediscoverers: John Cocke, Daniel Younger, Tadao Kasami, and Jacob T. Schwartz. It employs bottom-up parsing and dynamic programming. The standard version of CYK operates only on context-free grammars given in Chomsky normal form (CNF). However any context-free grammar may be algorithmically transformed into a CNF grammar expressing the same language (Sipser 1997). The importance of the CYK algorithm stems from its high efficiency in certain situations. Using big O notation, the worst case running time of CYK is O ( n 3 ⋅ | G | ) {\displaystyle {\mathcal {O}}\left(n^{3}\cdot \left|G\right|\right)} , where n {\displaystyle n} is the length of the parsed string and | G | {\displaystyle \left|G\right|} is the size of the CNF grammar G {\displaystyle G} (Hopcroft & Ullman 1979, p. 140). This makes it one of the most efficient parsing algorithms in terms of worst-case asymptotic complexity, although other algorithms exist with better average running time in many practical scenarios.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»).
Fonte: Wikipedia in inglese, voce «CYK algorithm» — https://en.wikipedia.org/wiki/CYK_algorithm
Wikidata Q954821 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q954821
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/CYK_algorithm?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1369222226, consultata il 2026-10-06T17:04:49.314Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 7492da8287d9dc5199f539d65aa3c304f3e6ca4f212a48765c3ddd44b3366be9