Parsing CFGs - Push Down Automata




CS154

Chris Pollett

Mar 23, 2020

Outline

Introduction

The Cocke-Younger-Kasami (CYK) algorithm (1960)

More Remarks on CYK

The CYK algorithm

Example

Quiz

Which of the following is true?

  1. There are some context-free languages for which no CFG for the language exists that isn't ambiguous.
  2. There are some context-free languages for which no CFG for the language exists that does not have unit productions.
  3. Only s-grammars can be put into Chomsky Normal Form.