Save this video free

CS181 Lecture 6 -- Fall 2026, UCLA

Eli Jaffe · 1:47:53 · 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 closure properties of deterministic finite automata (DFAs): complement flips accepting states, while intersection and union use a product construction with up to C1 × C2 states. Concatenation and reversal expose difficulties with single-pass deterministic computation, motivating nondeterministic finite automata (NFAs), where multiple paths are explored and an input is accepted if any path reaches an accepting state.

Key takeaways

Chapters

0:00 Lecture Plan: DFA Properties and Nondeterminism
5:20 DFA Anatomy, Streaming, and Practical Control Systems
11:00 Languages as Sets of Accepted Inputs
14:30 DFA Complement by Flipping Accepting States
21:00 The Intersection Problem for Two DFAs
27:00 Product States Simulate Two DFAs in Parallel
32:00 Product Transitions and AND Acceptance
39:00 Recognizing AND with the Product Construction
45:00 DFA Union Reuses Product Transitions
53:00 Concatenation of Functions and Languages
59:00 Concatenation Requires Trying Every Split
1:03:00 DFAs for Universal and Fixed-Length Prefix Tests
1:07:00 Concatenation Becomes a Fourth-Bit-from-the-End Test
1:13:00 Reversal Moves the Relevant Input Bit to the End
1:17:00 Why Reversing DFA Arrows Does Not Always Work
1:20:00 DFA Limitations Motivate a New Computational Model
1:26:00 NFA Rules: Multiple Transitions and Missing Edges
1:29:00 NFA Branching and Existential Acceptance
1:35:00 Epsilon Edges Branch Without Consuming Input
1:41:00 NFA Example Recognizes a One Four Bits from the End
1:45:00 Formal NFA Definition and Lecture Endpoint

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

Transcript excerpt

0:05 Oh, all right. Welcome everybody. Thank you for being here. >> The attendance is bad. But, you know, people are probably just late, right? People are going to wander in and they're going to be so disappointed that they missed the first 10 minutes of class. I mean, last class I almost screwed up the room. So, who knows? Maybe I'll accidentally screw up the recording. People will be really upset that they weren't here. Regardless, I'm glad you guys are here. Um, we're going to be talking about some cool stuff today. As a reminder, what did we do last time? So, last class we finished up our talk about circuits. So, we talked about universal circuits or as I called them, meta evaluators.

0:57 So we got this really cool uh circuit that could actually evaluate any other circuit in a flexible way and we stated without proof that actually we could do this very efficiently and we talked about the limitations of circuits gave kind of a summary of what they can do what they can't do. Uh specifically we talked about this big limitation of non-standard length inputs. So if we don't have an input that the standard length circuits are kind of busted, we can't use them. And so in order to handle that, we introduced a new computational model called a discrete finite automaton or a DFA. And we gave some examples of what DFAs look like. What are some simple functions that we can comput them?

1:48 Now, today we are going to expand that and talk about DFAs in a slightly more abstract way. We're still going to use a lot of examples, but in particular, we're going to want to talk about properties of DFAs as a computational model. Um, we're going to talk about

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.