A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

3-SAT and Reduction-Based Hardness Proofs

Graduate Depth 101 in the knowledge graph I know this Set as goal
1topic build on this
700prerequisites beneath it
See this on the map →
Satisfiability Problem: The Canonical NP-Complete ProblemHardness of Approximation Introduction
3-sat reductions graph-problems hardness-proofs

Core Idea

3-SAT restricts SAT to formulas in conjunctive normal form with exactly 3 literals per clause. Despite this restriction, 3-SAT remains NP-complete and is the most common source for polynomial-time reductions proving other problems NP-complete. It provides a practical template for constructing hardness proofs across scheduling, graph algorithms, and optimization problems.

How It's Best Learned

Work through classic 3-SAT reductions (CLIQUE, VERTEX-COVER, INDEPENDENT-SET). Build a reduction from vertex cover to 3-SAT yourself.

Common Misconceptions

Explainer

You already know SAT is NP-complete. 3-SAT is SAT with a particular syntactic restriction: the formula must be in conjunctive normal form (a conjunction of clauses) and every clause must contain exactly three literals. The first thing to verify is that this restriction does not reduce the difficulty — and it does not. Every SAT instance can be converted to 3-SAT in polynomial time by splitting large clauses (introducing auxiliary variables) and padding short ones. So 3-SAT is also NP-complete. The restriction turns out to be practically useful: the rigid three-literal structure makes it easier to construct reductions to other problems, because you can build small gadgets that exploit the constraint directly.

A polynomial-time reduction from 3-SAT to a problem X is a function f, computable in polynomial time, that maps 3-SAT instances to instances of X such that: the 3-SAT formula is satisfiable if and only if f(φ) is a yes-instance of X. This proves X is NP-hard. The art is in designing f — typically by constructing gadgets, small substructures in X's domain (graph edges, schedule slots, etc.) that mimic the role of variables and clauses in 3-SAT. The reduction direction is crucial: you go *from* 3-SAT *to* X. If you could solve X efficiently, you could solve 3-SAT efficiently (by applying f and then calling your solver for X), which would make 3-SAT tractable — but it is NP-hard, so X must also be hard.

A classic example is the reduction from 3-SAT to INDEPENDENT SET: given a formula with k clauses, construct a graph with 3k nodes (one per literal occurrence) connected by two types of edges — within each clause's triangle (forcing exactly one literal from each clause to be chosen) and between opposite literals x and ¬x (preventing contradictory assignments). An independent set of size k exists if and only if the formula is satisfiable. The independent set "is" a satisfying assignment, encoded spatially. The same structural idea recurs across different reductions: variables become choices, clauses become constraints, and the graph or schedule enforces consistency.

What makes 3-SAT the standard source for hardness proofs — rather than general SAT or some other NP-complete problem — is a combination of rigidity and tractability of the reduction machinery. The three-literal structure is rich enough to simulate arbitrary Boolean constraints but constrained enough that gadgets can be small and explicit. When you encounter a new combinatorial problem and want to show it is NP-hard, the standard approach is: (1) show it is in NP, (2) identify a structural analogy between your problem's constraints and 3-SAT clauses, (3) build gadgets that translate clauses and variables, and (4) verify that the mapping is polynomial and that satisfiability is preserved in both directions. Mastering this template unlocks the ability to prove hardness for scheduling, coloring, packing, and hundreds of other problems.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityProbabilistic Computation and BPPBPP and Randomized ComplexityRandomized Complexity: RP, co-RP, and ZPPComplexity Classes and the Complexity HierarchyThe P Versus NP Problem: Central Open QuestionNP-Hardness: Definition and PropertiesNP-Completeness and the Cook-Levin TheoremSatisfiability Problem: The Canonical NP-Complete Problem3-SAT and Reduction-Based Hardness Proofs

Longest path: 102 steps · 700 total prerequisite topics

Prerequisites (1)

Leads To (1)