0 votes 0 votes If CYK algorithm is "universal", then why its used only for CNF? Or if this question is wrong in someway... What exactly "universal" means here? Theory of Computation cyk-algorithm theory-of-computation + – amytrkpatel asked Dec 29, 2018 • retagged May 22, 2020 by soujanyareddy13 amytrkpatel 469 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Kunal Kadian commented Dec 29, 2018 reply Follow Share I think it means CYK algorithm applies to all CFG's. 0 votes 0 votes Deepanshu commented Dec 29, 2018 reply Follow Share CYK Algo can applied to any context free grammar thats what universal means .........now you will be like then why dont we use it everywhere means instead of LL(1) , LR (0) ,LALR (1) which are in compiler design why cant we use it everywhere .... and reason is that time complexity of cCYK is O( $n^3$) whereas those parsers have linear complexity 1 votes 1 votes Shaik Masthan commented Dec 29, 2018 reply Follow Share @Deepanshu CYK verifies the string present in the language or not, but it can derive the parse tree for the given string ? 0 votes 0 votes Deepanshu commented Dec 29, 2018 reply Follow Share i think of that matrix as parse tree as parsing is going to derive input same case here 0 votes 0 votes Please log in or register to add a comment.