Save this video free

2-SAT and Max 2-SAT

Kent Quanrud · 1:10:17 · Watch on YouTube

Part of Purdue University Fundamental Algorithms (Fall 2026). See all 20 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

Kent Quanrud contrasts 2-SAT with Max 2-SAT, showing how implication graphs and strongly connected components yield a linear-time algorithm for deciding 2-SAT and constructing a satisfying assignment. He then reduces 3-SAT to Max 2-SAT with a ten-clause gadget whose score is 6 or 7 depending on whether the original clause is satisfied, establishing that the optimization problem is NP-hard despite the simplicity of 2-SAT.

Key takeaways

Chapters

0:00 SAT, CNF-SAT, and the Complexity of Special Cases
4:27 Two Problems: 2-SAT and Max 2-SAT
11:27 Why 2-SAT Suggests a Propagation Algorithm
16:00 Building the 2-SAT Implication Graph
19:08 Reading Satisfying Assignments from Implication Edges
23:13 Contradictions Appear When Opposite Literals Share a Cycle
26:25 The 2-SAT Criterion Using Strongly Connected Components
29:06 Complementary Components and Source-Sink Assignments
35:39 A Linear-Time Algorithm for 2-SAT
38:03 Why Max 2-SAT Needs a Different Approach
42:29 Reducing 3-SAT to Max 2-SAT
49:00 Why Simple Clause Replacements Do Not Preserve the Answer
55:18 The Ten-Clause Gadget Creates a 6-versus-7 Score Gap
1:05:35 Padding Singleton Clauses and Chaining the Reductions

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

Transcript excerpt

0:05 Okay. So, uh once upon a time uh before the midterm, we started talking about SAT, right? And so, we're going to and we Well, I'll go through it, but today we're going to talk about two more. Yeah. >> Is SAT an acronym? >> Yes. Well, is it an acronym? Because it's just short for like uh satisfiability. So, it's more like the first three letters. >> Yeah. people in hand now. >> No, I think uh yeah, I think it's just short for satis satisfiability. >> Um okay. So yeah, we were doing uh you know and that's just kind of boolean formulas like uh you've seen before and or not, right? And and the basic problem is I give you some boolean formula and I ask you is there some way to make it output

0:52 true? Okay. and and of course you can try all possible inputs because it's easy to evaluate a boolean formula but that would take exponential time to try all the inputs okay so the question is um can you do better right and I think a very key feature is that it's a search problem in the sense that if you do find the answer you can recognize it right because if you do find something that makes output true you could have just computed you know plugged into the formula and checked right so in that sense it's a search problem but it doesn't feel like it's as well structured as binary search where you could really like annihilate half the options with every guess. Right? So some kind of it seems to be much weaker structure but otherwise still a search problem. Um and the big question is can you solve this in polinomial time

1:41 and okay so we did something that's maybe very

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, Kent Quanrud.

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.