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

Hardness of Approximation Introduction

Graduate Depth 102 in the knowledge graph I know this Set as goal
708prerequisites beneath it
See this on the map →
3-SAT and Reduction-Based Hardness ProofsApproximation Algorithms+1 more
approximation-hardness inapproximability reductions lower-bounds

Core Idea

Even when a problem is NP-hard, we sometimes compute approximate solutions rather than exact ones. Hardness of approximation results show that some NP-hard problems are also hard to approximate: there exist constants c > 1 such that achieving a c-approximation is NP-hard. These results reveal fundamental limits to what approximation algorithms can achieve.

How It's Best Learned

Study the PCP (Probabilistically Checkable Proofs) theorem at an intuitive level. Work through one inapproximability result, like the maximal independent set hardness.

Explainer

From your study of approximation algorithms, you know the standard framework: since many optimization problems are NP-hard to solve exactly, we settle for algorithms that return solutions within a provable factor of optimal. A ρ-approximation algorithm guarantees an answer no worse than ρ times the optimal value. For some problems this works beautifully — the greedy algorithm gives a 2-approximation for vertex cover, and more sophisticated methods give (1 + ε)-approximations for many scheduling and packing problems. The natural question is: how far does this go? Can every NP-hard optimization problem be approximated to within any fixed ratio?

The answer is no, and hardness of approximation results make this precise. These results show that for certain NP-hard problems, even achieving a ρ-approximation is NP-hard — meaning no polynomial-time algorithm can guarantee that ratio unless P = NP. The key tool is the PCP theorem (Probabilistically Checkable Proofs), which provides a reformulation of NP: every NP language has a proof system where a verifier can check a proof by reading only a *constant* number of bits, with the guarantee that valid proofs are always accepted and invalid proofs are rejected with probability at least 1/2. This may seem unrelated to approximation, but the connection is powerful.

The PCP theorem implies inapproximability via gap amplification: if you could approximate MAX-3SAT to within a ratio better than some constant c < 1, you could distinguish satisfiable instances from highly unsatisfiable ones — which the PCP theorem shows is NP-hard. Concretely, there is a constant ε > 0 such that no polynomial-time algorithm achieves a (1 − ε)-approximation for MAX-3SAT unless P = NP. From this "base" inapproximability, reductions from your prerequisite work propagate hardness to other problems. The MAX-CLIQUE problem is especially striking: it cannot be approximated within a factor of n1−ε for any ε > 0 unless P = NP — so the approximability gap is polynomial, not just a small constant.

The conceptual shift from NP-hardness reductions to inapproximability reductions is worth emphasizing. An ordinary reduction from 3-SAT to a problem X shows that exact optimization is hard. A *gap-preserving* reduction preserves a gap in the objective value between YES and NO instances — it shows that even finding a solution in the gap is hard. Constructing such reductions requires careful attention to how the transformation affects objective values, not just feasibility. This is why inapproximability proofs tend to be more intricate than their exact-hardness counterparts, and why the PCP theorem — which creates the initial gap "for free" — is such a powerful foundation for the whole theory.

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 ProofsHardness of Approximation Introduction

Longest path: 103 steps · 708 total prerequisite topics

Prerequisites (3)

Leads To (0)

No topics depend on this one yet.