Ask any question about EPFL courses, lectures, exercises, research, news, etc. or try the example questions below.
DISCLAIMER: The Graph Chatbot is not programmed to provide explicit or categorical answers to your questions. Rather, it transforms your questions into API requests that are distributed across the various IT services officially administered by EPFL. Its purpose is solely to collect and recommend relevant references to content that you can explore to help you answer your questions.
This lecture covers Chomsky's Classification of Grammars, including type 0, equivalent to Turing machines, type 1 with O(n)-space Turing machines, type 2 context-free grammars, and type 3 regular grammars. It introduces the CYK parsing algorithm for context-free grammars, discussing its decidable nature, better complexity possibilities, and practical adaptations. The lecture explains how the CYK algorithm can handle ambiguity in general grammars, the importance of parsing them, and the two main steps of the algorithm: transforming the grammar to Chomsky Normal Form and parsing the input using dynamic programming. It also delves into balanced parentheses grammar, parsing inputs step by step, and provides a Scala implementation of the CYK algorithm.