Save this video free

CS 181 Lecture 7 -- Fall 2026, UCLA

Eli Jaffe · 1:48:51 · Watch on YouTube

CS 181 Lecture 7 -- Fall 2026, UCLA Watch on YouTube →

Overview

Eli Jaffe develops the definition and closure properties of nondeterministic finite automata (NFAs), showing how they simplify concatenation, reversal, and Kleene star constructions that are awkward for deterministic finite automata (DFAs). The lecture’s central result is that every NFA has an equivalent DFA: tracking subsets of NFA states gives a conversion, though it can require exponentially more states, as illustrated by a 10-state NFA versus a 1,024-state DFA.

Key takeaways

Chapters

0:00 Midterm Logistics and the Lecture’s NFA Agenda
3:00 Formal NFA Transitions: Sets of States and Epsilon Edges
7:50 NFA Acceptance and the Fourth-to-Last-Bit Example
13:00 A 10-State NFA Replaces a 1,024-State DFA
22:00 Concatenating DFA Languages with Epsilon Transitions
30:30 Reversing a DFA by Reversing Its Arrows
39:30 Why Nondeterminism Matters Beyond Automata
42:15 Defining Kleene Star for Functions and Languages
48:20 Building an NFA for Kleene Star
56:20 Break Discussion: Epsilon Branches and Start-State Acceptance
1:02:21 NFA Intersection Through Product States
1:13:00 NFA Union with Branching or Product Construction
1:16:40 Why Flipping NFA Accept States Does Not Compute NOT
1:22:20 Nondeterminism Makes Complementation Subtle
1:24:40 The Central Theorem: Every NFA Has an Equivalent DFA
1:27:20 Why NFAs Remain Useful Despite DFA Equivalence
1:29:00 Turning NFA Constructions into DFA Closure Results
1:32:00 Complement an NFA by Converting Through a DFA
1:35:35 Subset Construction: Tracking All NFA Branches Together
1:40:30 Merging Branches That Reach the Same NFA State
1:44:00 Reachable-State Subsets Bound the DFA Construction

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

Transcript excerpt

0:01 Oh, excuse me. That's because my volume was off. Okay. Hello everybody. Happy midterm season to all those who celebrate. Uh, I'm sure probably some of you have already taken midterms. As a reminder, uh, our first exam is a week from today. Um, there I released some previous exam ones, all the exam ones from the past 5 years of Professor Mac's version of this class. So, if you're curious about what kind of questions will show up on the midterm, that's your best resource. They all have solutions there, too. Uh, and one other piece of logistics, I have extended the homework two deadline until Friday because I realized there's some stuff from lecture seven, which is

0:48 today's lecture, that you guys need to do the homework, and I didn't feel like two days was a fair time for that. And I want people to be able to attend office hours and ask questions. So, homework two deadline on Friday, but do be sure to like allocate your time wisely, right? Cuz you need to spend time studying for the exam on Monday, too. So, probably don't push it until like Um, any logistical questions before we get started? Beautiful. Okay, so as a reminder, where are we at? So, we're partway through our discussion of automata. Uh, we introduced the FAs a couple lectures ago, and last lecture we looked at properties of DFAs. So, specifically

1:38 these kinds of composition properties, can we compute the and of two functions using a DFA, the or of two functions, the not of a function. And we looked at some what seem like currently limitations of DFAs. So, some specific function compositions that seem tricky to compute. So, that is like the concatenation of two functions, the reverse of a function, which all seem a

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

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.