Are you an EPFL student looking for a semester project?
Work with us on data science and visualisation projects, and deploy your project as an app on top of Graph Search.
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.