Save this video — free

Subset Sum and the Secret Language of Numbers

Kent Quanrud · 57:13 · Watch on YouTube

Subset Sum and the Secret Language of Numbers Watch on YouTube →

Overview

Kent Quanrud connects subset sum to the course’s earlier SAT reductions, showing how a 3-SAT instance can be encoded as positional digits in numbers so that a target-sum solution corresponds exactly to a satisfying assignment. He also explains why the natural dynamic program takes O(nT) time—polynomial in the target’s value but not necessarily its bit-length—and uses this reduction to show that subset sum is NP-hard.

Key takeaways

Chapters

0:00 From SAT and 2-SAT to the Theme of Hardness Reductions
6:00 From Making Change to the Subset Sum Decision Problem
9:30 Why Subset Sum Looks Searchable but May Still Be Hard
12:09 The Include-or-Exclude Recurrence for Subset Sum
17:00 Dynamic Programming Gives O(nT), Not Polynomial Bit Complexity
19:00 The Reduction Idea: Hide Boolean Constraints Inside Numbers
23:00 Representing Truth Assignments as Selected Literals
31:00 Literal Numbers Encode Variables and Clause Membership
38:00 Padding Numbers Turn Clause Satisfaction into Exact Equality
50:00 The Target Sum Captures the 3-SAT Requirements
54:00 Recovering Assignments from Yes-or-No Solvers

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.