Save this video — free

2-SAT and Max 2-SAT

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

2-SAT and Max 2-SAT Watch on YouTube →

Overview

Kent Quanrud contrasts 2-SAT, which can be solved in linear time using an implication graph and strongly connected components, with Max 2-SAT, whose optimization version is NP-hard. He also constructs a reduction from 3-SAT using a 10-clause gadget that scores at most 6 when a 3-literal clause is false and 7 when it is true, then pads singleton clauses to obtain exactly two literals per clause.

Key takeaways

Chapters

0:00 SAT, CNF, and Why Simpler Formulas Can Still Be Hard
4:30 2-SAT Versus Max 2-SAT: The Optimization Question
11:30 Why 2-SAT Constraints Create Forced Assignments
16:00 Building the 2-SAT Implication Graph
20:00 Reading Satisfying Assignments from Graph Edges
24:00 Contradictions as Cycles Between Complementary Literals
28:18 Strongly Connected Components Compress Forced Values
30:14 Complementary Components and the Source-Sink Assignment Rule
35:39 A Linear-Time Algorithm for 2-SAT
38:03 Why Max 2-SAT Escapes the Implication-Graph Algorithm
42:29 Reducing 3-SAT to Max 2-SAT in the Correct Direction
45:35 Designing a 10-Clause Gadget for Each 3-Literal Clause
50:52 The Gadget’s Six-versus-Seven Score Gap
56:14 Proving the Reduction Threshold in Both Directions
1:05:35 Padding Singleton Clauses to Obtain Exact 2-SAT

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

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.