Save this video free

CS181 Lecture 2 -- Fall 2026, UCLA

Eli Jaffe · 1:38:03 · 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 establishes that Boolean circuits using AND, OR, and NOT have the same computational power as circuits made solely of NAND gates, then proves that every finite Boolean function has a circuit. For an n-bit input and one-bit output, the truth-table construction uses O(n·2^n) gates; the lecture also contrasts this general upper bound with more efficient circuits, circuit-size lower bounds, and the idea of encoding circuits as data.

Key takeaways

Chapters

0:00 Course Recap, Homework 1, and the Plan for Lecture 3
3:37 Why Introduce NAND as a New Circuit Gate?
5:22 NAND Computes the Negation of AND
7:29 Defining NAND Circuits and Their Computed Functions
11:39 The Equivalence Claim for Boolean and NAND Circuits
15:19 Simulating Each NAND Gate with AND and NOT
20:10 Building NOT and AND Gates from NAND
28:49 De Morgan's Law Builds OR from Three NAND Gates
35:02 XOR-2 Circuits Are Weaker Than Boolean Circuits
41:05 Every Finite Boolean Function Has a Circuit
46:15 Truth Tables as a Starting Point for Circuit Construction
50:28 Indicator Functions Test Whether Input Equals α
53:44 Chaining AND Gates to Recognize the All-Ones Input
59:32 Recognizing Any Input String with NOT and AND
1:05:00 From Satisfying Inputs to a Circuit for f
1:19:24 Counting Gates in the Truth-Table Construction
1:23:11 Why General Truth-Table Circuits Can Be Wasteful
1:29:01 A Tighter Universal Upper Bound on Circuit Size
1:31:00 Shannon's Circuit Lower Bound and Hard Functions
1:35:00 Circuits as Data and the Idea of Universal Circuits

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

Transcript excerpt

0:03 Thank you. All right. Good to see everybody. Welcome to hell. It is really hot here. Uh I tried to fix the thermostat and it's literally popped out of the wall from everybody else trying to fix it over the course of the day. So, please bear with me. Um but welcome to lecture three, week two. um today. So a little bit of recap last class what did we do? We finished our talk about data representation. So we decided that everything we sort of reasonably care about encoding can be encoded as a finding a bit string so that from now on we don't have to worry about what format our data is going to be in. just know that it can be

0:50 represented as some bit string and we can figure out what it is other than the obvious exception of like real numbers which we showed we can't but we're going to be operating over only like finite data so that's fine. Um we also talked about what it means to solve a problem in the sense of designing a circuit that computes the functionality and we talked about the details of the boolean circuit model. So what formally it means to represent a boolean circuit. How do we arrange the gates? What do they mean? Uh and today we are going to talk about our first equivalence of models. So we're going to introduce a new circuit model using different kinds of gates and we are going to do our first example of showing that two computational models equivalent and that

1:40 is going to be a recurring theme in this class. We're going to be exploring a lot of different computational models and this act of showing well everything that you can compute in this one you can also

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.