Save this video free

CS 181 Lecture 10 -- Fall 2026, UCLA

Eli Jaffe · 1:50:45 · Watch on YouTube

Part of University of California, Los Angeles COM SCI 181. See all 14 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

Eli Jaffe develops the pumping lemma as a method for proving that languages such as majority, equal numbers of 0s and 1s, and unary strings of square length are not regular, then proves the lemma using repeated DFA states and a loop. He introduces the Myhill-Nerode equivalence relation and its basic state lower-bound result, applying it to show that counting ones modulo 1,000 requires 1,000 DFA states and that checking the 10th bit from the end requires at least 1,024.

Key takeaways

Chapters

0:00 Lecture 10: From Regular Expressions to Limits of DFAs
3:00 Course Updates and the Pumping Lemma's Purpose
5:27 Pumping Lemma Conditions and the Alice-Bob Challenge
8:30 Quantifier Order: Choosing p, Then Challenging with x
12:30 Setting Up the Majority Function Pumping Proof
17:20 Why Alternating Bits Fail, and Why 1^p0^p Works
23:50 Majority Is Not Regular; Introducing the Equality Language
28:20 Pumping Lemma Proof for Equal Numbers of 1s and 0s
34:00 Unary Perfect-Square Lengths Defeat Pumping
43:00 Turning from Pumping Examples to the Lemma's Proof
45:00 Choosing the DFA State Count as Pumping Length
52:00 Pigeonhole Principle Guarantees a Repeated DFA State
57:00 The Repeated-State Loop Produces the Pumpable Substring
1:00:00 Break and Questions on DFA Loops and the Square Example
1:07:00 Pumping Lemma Strategy: General p and Deliberate String Design
1:10:30 Myhill-Nerode Equivalence Compares All Possible Suffixes
1:16:00 Modulo-3 Counting Shows How Equivalent Prefixes Behave
1:21:30 Baby Myhill-Nerode Gives a DFA State Lower Bound
1:25:30 Counting Ones Modulo 1,000 Requires 1,000 DFA States
1:35:00 The 10th-Bit-from-the-End Function and Subset Construction
1:40:00 All 1,024 Ten-Bit Prefixes Are Distinguishable
1:47:00 Unbounded Distinguishable Prefixes Prove Majority Is Not Regular

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

Transcript excerpt

0:02 Okey dokie. Uh hello everybody. Welcome back. Um maybe some other people will filter in. If not, it'll be a nice relaxed intimate lecture. Um just to recontextualize us since Monday, where are we at? We are mid exploration of finite automatha and reg regular expressions which now we understand are basically the same thing. Actually we're approaching the tail end of our exploration. We finally established that regular expressions, NFAs, DFAS can all compute the exact same class of functions which we call regular

0:51 functions or regular languages. uh we found via that equivalence some somewhat surprising efficient practical algorithms for computing regular expressions and we saw some applications of that in the DNA sequencing world. Uh and then the last thing that we did last class was we finally asked this big elephant in the room question of well okay what can we actually compute we've proven this equivalency now what functions are on the table and we provided some motivation towards that end we brought up the majority function and we said seems like this is not going to work for DFAS NFAs regular expressions what have you and I teased you guys towards a proof of that fact

1:39 via this magical statement called the pumping lema. And we saw the statement of the pumping lema and that was about it. So today we are going to do a little bit more work towards understanding this pumping lema. see some examples of it in action, how we use it, and then once we get a feel for how it works, look at a surprisingly simple proof that this is actually true. And then we will use that to effectively prove instead of just have this loose motivational argument that there are certain functions that are not regular

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, Eli Jaffe.

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.