Save this video free

CSCD 420 Nov 20 2026

Chris Cain · 50:22 · Watch on YouTube

Part of Eastern Washington University CSCD 420. See all 38 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

The lesson develops the FIRST and FOLLOW sets used to guide predictive top-down parsing, contrasting that approach with CYK, which can parse any context-free grammar after conversion to Chomsky normal form. It explains recursive and nullable productions, the end-of-input marker $, and how FIRST and FOLLOW information identifies which terminals can begin or follow a non-terminal; an interpreter-versus-compiler analogy provides a brief programming-language comparison.

Key takeaways

Chapters

0:00 Homework 9, Exam 3, and the Final Exam Schedule
1:05 FIRST Sets and the Limits of Predictive Parsing
4:30 The Bits and Bytes Analogy for Interpreters and Compilers
9:02 Why Python and Java Are Not Inherently Interpreted or Compiled
10:30 Calculating FIRST for Recursive Grammars
13:00 Nullable Productions and FIRST Set Propagation
21:35 FOLLOW Sets and the End-of-Input Marker
25:30 Propagating FOLLOW Sets Through Recursive Productions
33:15 Using FIRST of a Suffix to Calculate FOLLOW
39:55 Combining FIRST and FOLLOW in a Multi-Production Example

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:03 We're in the process of revealing a new assignment. That assignment will be due in two weeks rather than one. It would be especially cool of me to have something do on Thanksgiving. That would be really bad. >> Are you talking about >> Oh, we're going to leave? Sorry. >> Are you talking about homework nine? >> Yeah. >> Oh. >> Yeah, homework nine will be due in two weeks. So over the last week of instruction, and that will be the last homework. Aside from of course the project and the final exam that are still coming. But yeah, exam three is going to be the day after Thanksgiving break. We'll be reviewing Monday and Tuesday of next week. So please come prepared with questions. I do have some practice problems for us to work on to fill out some of that time as well.

0:49 >> And you said there's a final on finals week? >> Yeah. Yeah, finals on finals week. And if that does not work with your schedule for some reason, reach out to me and we can figure something out. All right, last time we were going over the first function. To further motivate that, we needed a a couple of functions in our back pocket to be able to handle what we're going to talk about, which is a new even more efficient top-down parse that works sometimes. The reason we learn CYK is it works all of the time, no matter what the context-free grammar is. We can always convert it into Chomsky normal form, which means that we can use CYK on it. But there are some grammars that have a property that we will talk about in the not too distant future where even more

1:38 efficient parsing in advance is

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Chris Cain.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.