Common · Knowledge
CYK algorithm
Parsing algorithm for context-free grammars
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.
From Wikipedia
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.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
★
Quine–McCluskey algorithm
Algorithm
-
L★★
LL parser
Left-to-right, leftmost derivation top-down parser for a subset of context-free languages
-
A★★
AKS primality test
Primality test
-
C★
CJK Unified Ideographs Extension H
Unicode block (U+31350-323AF)
-
★★
CJK Unified Ideographs Extension J
Unicode block (U+323B0-3347F)
-
★
CJK Symbols and Punctuation
Unicode block (U+3000-303F)
-
★
Key Word in Context
Common format for concordance lines
-
★
CJK Unified Ideographs Extension G
Unicode block (U+30000-3134F)
-
★
Enclosed CJK Letters and Months
Unicode block (U+3200-32FF)
-
★★
CJK Unified Ideographs Extension A
Unicode block (U+3400-4DBF)
-
★★★
QUIC
Transport layer computer network protocol implemented on User Datagram Protocol
-
★
CJK Unified Ideographs Extension C
Unicode block (U+2A700-2B73F)
-
K★
Kabsch algorithm
Type of algorithm
-
★★
Ol Chiki (Unicode block)
Unicode block (U+1C50-1C7F)
-
H★
Harvard-Kyoto
ASCII transliteration for Indic scripts
-
C★
Cangjie (programming language)
Programming language development by Huawei
-
G★★★
Google Kythe
Originally known as Project Grok
-
A★★★
Anki
Spaced repetition software