How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Approximation Algorithms and Gap Reductions
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Alphabet Reduction and the PCP Theorem
- Arithmetization and the Sum-Check Protocol
- Binary Operations, Monoids, Groups and Subgroups
- Boolean Circuits and Nonuniform Complexity
- Classical NP-Completeness Reductions
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Eulerian and Hamiltonian Graphs
- Expander Graphs and Constraint Graphs
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Formal Languages, Encodings, and Decision Problems
- Foundations of the Real Numbers for Analysis
- Gap Amplification and Assignment Testing
- Graphs, Walks and Connectivity
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Recurrences and Rational Generating Functions
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matchings, Covers, Menger and Network Flows
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- P, NP, coNP, and Polynomial Reductions
- pi: the Equivalent Characterizations
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Resource Bounds and Machine Invariance
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Splitting Fields
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Cook--Levin Theorem
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Trees, Forests and Spanning Trees
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Turing Machines, Configurations, and Computation
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page develops the finite-instance model of optimization problems and the value-inequality definition of an approximation ratio, together with the PTAS, FPTAS and locally defined APX classes. It states the selected L-reduction convention, the two-sided error inequality that defines it, and the APX-hardness and APX-completeness notions built on that convention, proved separately by a dependency-backed transfer and composition lemma.
Four approximation algorithms are analysed directly. A maximal matching gives a factor-two vertex cover. A random cut crosses half the edges in expectation, and fixing vertices by the larger conditional expectation derandomises this to a polynomial-time half-approximation for Max-Cut. Weighted greedy set cover charges each element the cost per newly covered element and sums the bounds OPT/(n-j+1) to H_n times the optimum. For metric TSP, deleting a tour edge gives a spanning tree whose weight lower-bounds the optimal tour, while doubling a minimum spanning tree, traversing an Euler circuit and shortcutting repeated vertices costs at most twice the tree weight, giving the double-tree factor two.
The final part turns PCP verifiers into inapproximability. A constant-query perfect-completeness verifier with soundness s<1 is unfolded into a 3-CNF formula with a constant relative gap delta, and the clause-literal consistency graph turns that optimum into the maximum independent-set size without changing the gap. Composing the two reductions shows that a PTAS for Max-3SAT or for maximum independent set would decide every language in NP and so force P=NP. The three PCP-hardness items assume the Axiom of Choice for the currently published PCP supplier proof route, which reaches a Zorn-based algebraic embedding-extension step; the finite reductions themselves make only explicit finite choices.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Optimization problems and approximation ratios
Definition
A finite-instance optimization problem consists of the following data.
- A problem domain of explicitly encoded finite instances, each with a finite encoding length .
- A polynomial solution-length bound: a polynomial such that every feasible solution of an instance satisfies .
- A feasible-solution relation , recognizable in deterministic time polynomial in .
- A nonnegative rational objective with , computable in deterministic time polynomial in for every feasible .
- A direction, either minimization or maximization.
Every instance of the stated domain is assumed to have at least one feasible solution. For an instance , the feasible solutions lie in the finite set of strings of length at most ; hence the set of values is a finite nonempty set of nonnegative rationals, and its minimum or maximum, as selected by the direction,
is attained. The order of the quantifiers is fixed: is defined for every domain instance, independently of any algorithm.
Let be rational. A polynomial-time algorithm is a -approximation for the problem when it runs in deterministic time polynomial in and, on every domain instance , outputs a feasible solution whose value satisfies
These are inequalities between values, not quotients: they include the case , where the minimization inequality asks for a feasible solution of value and the maximization inequality is automatic, and neither guarantee is formed by dividing by . Suitable examples fixed later on this page are minimum vertex cover, weighted set cover, max-cut, metric TSP, max-3SAT and maximum independent set, always with explicitly encoded rational instance data.
For the max-cut problem used below, the instances are the finite simple graphs, a feasible solution is a bipartition of the vertex set, the objective is the number of edges whose endpoints lie in different parts, and denotes the attained maximum over the finitely many bipartitions. For a randomized algorithm, the -guarantee is read in the value form of the maximization inequality above.
PTAS, FPTAS and APX
Definition
Fix a finite-instance optimization problem in the model of Optimization problems and approximation ratios.
- A polynomial-time approximation scheme (PTAS) is a family of algorithms such that for every fixed with the algorithm runs in deterministic time polynomial in the input length and guarantees factor for minimization, respectively for maximization, in the value inequalities of Optimization problems and approximation ratios. The order of quantifiers is that the exponent of the polynomial may depend on the fixed .
- A fully polynomial-time approximation scheme (FPTAS) is a PTAS with one running-time bound that is a polynomial jointly in the input length and in .
- APX denotes, by explicit local convention, the class of finite-instance optimization problems in that model that admit one polynomial-time fixed-factor approximation in the objective direction of Optimization problems and approximation ratios: a rational with a polynomial-time -approximation for a minimization problem, or a rational with a polynomial-time -approximation for a maximization problem. This is a selected convention for this page; it does not claim that all of the literature uses the same reduction-based notion of APX-hardness.
Since every FPTAS is a PTAS, a problem with no PTAS (unless ) also has no FPTAS unless . All value guarantees above use the inequalities of Optimization problems and approximation ratios and therefore include without forming a quotient by . PTAS or FPTAS existence, by itself, proves neither APX-hardness nor APX-completeness of any target; those notions are defined separately on this page, under a declared reduction notion, and are not derived here.
A maximal matching gives a 2-approximate minimum vertex cover
Statement
For every finite simple graph, greedily construct any maximal matching and return the set of its endpoints. The procedure is deterministic polynomial time after fixing a tie rule; is a vertex cover and . This includes an edgeless graph, for which both sides are zero.
Facts & Assumptions
Given: A finite simple graph with its vertices and edges listed in a fixed order, and the minimum cardinality of a vertex cover of .
A finite simple graph has , so every edge has two distinct endpoints and is an unordered two-element set of vertices. (A finite simple graph is a finite vertex set together with a set of two-element vertex subsets)
A matching is a set of edges no two of which share an endpoint; a vertex is -saturated when it is an endpoint of an edge of ; a maximal matching is one contained in no strictly larger matching. (Matchings, saturated vertices, maximal and maximum matchings, perfect matchings and )
A vertex cover of is a set meeting every edge of ; the decision problem VERTEX COVER asks for a cover of size at most , and minimizing its size is the associated minimization problem. (Clique, independent set, and vertex cover decision problems)
A polynomial-time -approximation for a minimization problem returns, on every instance, a feasible solution of value at most times the optimum; no division by the optimum is involved. (Optimization problems and approximation ratios)
Proof
Consider the following deterministic procedure: list the edges of in the fixed order, start with , and scan the list once, adding the current edge to when neither of its endpoints is already -saturated; at the end return and the set of all endpoints of edges of . Each step inspects two saturation marks and possibly sets two of them, so the procedure runs in time polynomial in the encoded size of , and the fixed edge order is its tie rule.
One has . Let be a vertex cover with . Each edge of has at least one endpoint in ; assign to it such an endpoint explicitly: the smaller of its two endpoints in the fixed vertex order if that endpoint lies in , and otherwise its other endpoint. Distinct edges of are vertex-disjoint, so distinct edges receive distinct vertices of ; the assignment is therefore an injection of into , and .
Since is a matching, its edges are pairwise disjoint, so the endpoints of its edges are distinct vertices and . Every vertex of is -saturated by construction.
The matching is maximal. Indeed, suppose an edge of had both endpoints not in , that is, both -exposed at the end of the scan. A vertex once marked saturated is never unmarked, so both endpoints were still exposed when was scanned; the procedure would then have added to , a contradiction. Hence no edge can be added to , and is maximal.
If has no edges, the scan adds nothing, so and ; the empty set is a vertex cover and no nonempty set is needed, so , and both sides of the displayed bound are zero.
The set is a vertex cover: if some edge of had both endpoints outside , then would be a matching strictly larger than , contradicting maximality. Hence every edge meets , so is a vertex cover and .
Combining steps 2.1, 3.1 and 1.2, and is a vertex cover computed by the deterministic polynomial-time procedure of step 1.1. By [F4] the procedure is a -approximation for the minimum vertex cover problem.
For every finite simple graph, a maximal matching is produced in deterministic polynomial time after the tie rule of step 1.1 is fixed, its endpoint set is a vertex cover with , and the edgeless case is covered by step 2.3.
Weighted greedy set cover and element charges
Definition
The weighted set-cover problem is the following finite-instance optimization problem. An instance consists of a finite universe of elements, an explicitly listed finite family of subsets of with , and a nonnegative rational cost for each listed set. A feasible solution is a subfamily whose union is , and its objective value is the total cost of the selected sets; the direction is minimization. When every cost is , deciding whether a cover has total cost at most a natural number gives the unit-cost decision problem The set cover decision problem, restricted here to families covering . For general costs the corresponding decision question uses a rational budget on total cost. The decision parameter plays no role in the weighted algorithm or its analysis.
The weighted greedy algorithm is the following deterministic procedure. It maintains the set of currently uncovered elements, initially , and the list of chosen indices, initially empty. While uncovered elements remain, it considers every listed set with at least one currently uncovered element, so that the newly covered count is positive, and chooses one minimizing the ratio ; ties are resolved by the smallest index in the input order. It adds that index to the chosen list and marks its newly covered elements. When is empty, no set is chosen and the algorithm returns the empty cover. Since the listed family covers , every round of the loop finds a positive newly covered count.
A set chosen in a round charges every element it newly covers the same amount, namely its cost divided by its newly covered count. Thus the total charged to the elements equals the total cost of the chosen cover. Here is the -th harmonic number of Harmonic numbers for set-cover analysis, so and for . All ratios are computed exactly in the rationals, and the finitely many ratios of each round are compared by exact rational arithmetic.
Harmonic numbers for set-cover analysis
Definition
For each integer the -th harmonic number is the finite sum taken over the finite index set in the rational numbers. For the empty index set one sets , the empty-sum convention. Thus , , and so on, and each is a rational number determined by the displayed finite recursion on the upper index. These are the only harmonic values used in the set-cover analysis of this page.
The greedy charge on each newly covered element is at most OPT divided by the remaining count
Statement
Let elements remain uncovered just before a weighted greedy set-cover step, and let be the cost of a fixed minimum cover. The chosen price per newly covered element is at most . Equivalently, if the elements are ordered by first coverage, ties within a round following the fixed order of the universe, then the -th element of this order receives charge at most , where is the size of the universe.
Facts & Assumptions
Given: A feasible weighted set-cover instance with universe of elements, listed sets with nonnegative rational costs, a run of the weighted greedy algorithm, a step of that run, and a minimum-cost cover with total cost .
While uncovered elements remain, the greedy algorithm chooses a listed set with positive newly covered count minimizing the ratio of its cost to that count, ties going to the smallest index in the input order; each set chosen in a round charges every element it newly covers the same amount, namely its cost divided by its newly covered count. All comparisons are exact in the rationals, and the listed family covers . (Weighted greedy set cover and element charges)
Every instance of the stated domain has at least one feasible solution, the set of values of feasible solutions is a finite nonempty set of nonnegative rationals, and its minimum in the minimization direction is attained; the optimum is therefore a well-defined nonnegative rational, denoted for this problem. (Optimization problems and approximation ratios)
Proof
Fix a step of the greedy run, let be the set of elements still uncovered just before it and the remaining count; let , , be the set of elements newly covered by the set chosen at this step, so the chosen price per newly covered element is for that set's cost . Put for every set of the fixed minimum-cost cover of [F2]. Since covers and hence , every element of lies in at least one ; summing the counts therefore counts each element of at least once, so .
Let . Then is nonempty because , and , while because all costs are nonnegative and . The -weighted average of the ratios over equals and is therefore at least the minimum of those ratios, so that minimum is at most .
Each is a listed set of the instance and has positive newly covered count at this step, so it is a candidate in the greedy choice; by [F1] the chosen set minimizes the ratio among all candidates, so the chosen price per newly covered element satisfies . Every element newly covered at this step receives the charge , hence a charge of at most .
Order the elements of by the round in which they are first covered, breaking ties within a round by the fixed order of , and let be the -th element of this order, covered in a round that begins with uncovered elements. Before that round exactly elements are already covered, all of them earlier than in the order, so , that is, ; since the charge of is at most by step 3.1 and , it is at most .
Consequently the price chosen in any greedy step with uncovered elements is at most , and the -th element in first-coverage order receives charge at most for every ; both bounds are ordinary inequalities of nonnegative rationals with positive denominators, so no division by zero occurs.
Weighted greedy set cover has approximation factor H_n
Statement
On a feasible weighted set-cover instance with , the greedy algorithm returns a cover in polynomial time with total cost at most . For both costs are zero. Thus it is an -approximation for .
Facts & Assumptions
Given: A feasible weighted set-cover instance with universe of elements and a minimum total cost , together with a full run of the weighted greedy algorithm.
The greedy algorithm repeatedly chooses a listed set of positive newly covered count minimizing cost divided by that count, ties going to the smallest input index, charges each newly covered element that same ratio, and returns no set when is empty; the listed family covers , so every round before termination finds a positive newly covered count. (Weighted greedy set cover and element charges)
If elements remain uncovered before a greedy step, the price chosen per newly covered element is at most ; ordering elements by first coverage with in-round ties by the fixed order of , the -th element receives charge at most . (The greedy charge on each newly covered element is at most OPT divided by the remaining count)
The harmonic numbers are for and . (Harmonic numbers for set-cover analysis)
Every instance of the stated domain has a feasible solution, optimum values are attained nonnegative rationals, and a polynomial-time -approximation for a minimization problem returns on every instance a feasible solution of value at most times the optimum. (Optimization problems and approximation ratios)
Proof
Each round of the greedy algorithm covers at least one element that was uncovered before it, because the chosen set has positive newly covered count; hence after at most rounds the set of uncovered elements is empty, the algorithm halts, and the chosen list is a feasible cover of . The total cost of the chosen cover equals the sum of the charges of all elements, since each chosen set's cost is divided equally among exactly the elements that it newly covers, and every element is newly covered in exactly one round.
If , that is , the algorithm returns the empty cover of cost , which is feasible; every feasible cover has nonnegative cost, so , and the asserted bound reads by [F3].
Assume and order the elements by first coverage, breaking ties within a round by the fixed order of . For the -th element of this order the charging bound [F2] gives , a valid inequality because the round of first coverage has a positive remaining count and the index satisfies .
Summing the bounds of step 2.1 over and substituting , the total cost of the greedy cover satisfies by [F3]. The total cost is the sum of the charges by step 1.1, so the greedy cover has cost at most .
For the algorithm returns a feasible cover of cost at most in deterministic polynomial time: there are at most rounds by step 1.1, each round scans the finitely many listed sets, computes exact rational ratios with positive denominators, and performs exact comparisons; for the bound is the zero identity of step 1.2. By [F4] the procedure is a polynomial-time -approximation for weighted set cover.
A random cut crosses half the edges in expectation
Statement
In a finite simple graph with edges, place each vertex independently and uniformly in one of two sides. The number of crossing edges satisfies . Since , this random algorithm has expected value at least ; for both values are zero.
Facts & Assumptions
Given: A finite simple graph with , the random placement of each vertex on one of two sides according to a fair independent bit , and the number of edges whose endpoints land on different sides.
Every edge of a finite simple graph is a two-element subset of distinct vertices. (A finite simple graph is a finite vertex set together with a set of two-element vertex subsets)
In a finite product of finite probability spaces the coordinate events are mutually independent, and for a set of coordinates the probability of the intersection is the product of the coordinate probabilities. (Product weights normalize, and coordinate events are mutually independent)
For every event one has , and a finite sum of indicators counts the events containing the outcome. (Indicators turn event probabilities, intersections, and finite counts into expectations and products)
Expectation is linear for every finite family of real random variables, with no independence hypothesis. (Expectation is linear for every finite family of random variables, without any independence hypothesis)
For the maximization problem Max-Cut the objective is the number of crossing edges; the optimum is a maximum over the finitely many placements, and a randomized algorithm whose expected value is at least half the optimum is the corresponding -guarantee in value form. (Optimization problems and approximation ratios)
Proof
Take one uniform two-point probability space per vertex and form their finite product; its outcomes are the maps with the weights of [F2], so the bits are independent and each is or with probability . Interpret side as the side of vertex ; this is exactly the stated independent uniform placement.
For each edge define the indicator of the event that crosses the cut, and put . At each outcome the sum counts precisely the crossing edges, so is the number of crossing edges.
Fix an edge . The events and are coordinate events, so [F2] gives ; similarly . The two cases are disjoint and exhaust , hence .
By [F3] and step 2.2, for every edge .
If , then at every outcome by the empty-sum convention of [F3], so ; also every placement crosses all zero edges, so , and both values are zero.
By linearity [F4] applied to the finite family , . The calculation uses only the individual probabilities of step 3.1; no independence between distinct edge indicators is assumed or needed.
Every placement yields a cut with at most crossing edges, since has edges in total; hence , and step 4.1 gives .
Consequently the independent uniform placement produces a cut whose expected number of crossing edges is , at least half of in the value sense of [F5], with the zero-edge case covered by step 3.2.
Conditional expectation yields a deterministic half-approximation for Max-Cut
Statement
For every finite simple graph, there is a deterministic polynomial-time algorithm returning a cut of at least edges, hence at least half of . It fixes vertices one at a time to the side with the larger conditional expected final cut size.
Facts & Assumptions
Given: A finite simple graph with , a fixed ordering of its vertices, and the product probability space of independent fair bits , one per vertex.
Placing each vertex independently and uniformly in one of two sides gives the cut number with , and every placement crosses at most edges, so ; for both values are zero. (A random cut crosses half the edges in expectation)
For the maximization problem Max-Cut the objective is the number of crossing edges, the optimum is a maximum over the finitely many placements and is attained, and a polynomial-time -approximation returns a feasible cut of value at least in the value-inequality sense. (Optimization problems and approximation ratios)
Expectation is linear on every finite family of real random variables, with no independence hypothesis. (Expectation is linear for every finite family of random variables, without any independence hypothesis)
Every edge of a finite simple graph is a two-element subset of distinct vertices. (A finite simple graph is a finite vertex set together with a set of two-element vertex subsets)
Proof
Let be the number of crossing edges, where is the indicator that the endpoints of lie on different sides. For a partial assignment of the first bits, define the conditional expectation as the average of over the equally weighted completions. The closed form is , where counts the edges whose two endpoints are among the fixed vertices and which cross under , and counts the edges with at least one unfixed endpoint: a fully fixed edge contributes its crossing indicator, an edge with exactly one fixed endpoint crosses for exactly one of the two equally likely values of the free bit, an edge with two unfixed endpoints crosses for exactly two of the four equally likely pairs of free bits, and [F3] sums these contributions, the edges being finitely many.
For any and any , the completions of split into those with and those with , two equally weighted families of equal size, so . Hence at least one of the two one-bit extensions has conditional expectation at least , and the maximizer is at least the current value.
Define the algorithm: start with the empty assignment ; for compute the two numbers and from the closed form of step 1.1, each a sum over the edges, and extend by if and by otherwise; return the resulting cut. By step 2.1 the conditional expectation does not decrease at any choice, so the nondecreasing sequence ends at the actual cut size of the returned placement, giving .
The algorithm is deterministic after the fixed tie rule and the fixed vertex order, and it runs in polynomial time: rounds with two closed-form evaluations of exact rational operations each, all comparisons of rationals with polynomially bounded bit lengths. By step 3.1 and [F1], the returned feasible cut satisfies ; when both values are zero. By [F2] this is a deterministic polynomial-time -approximation for Max-Cut.
Metric traveling-salesperson problem
Definition
An instance of the metric traveling-salesperson problem consists of:
- a finite set of labelled vertices, with the complete undirected graph on in the sense of A finite simple graph is a finite vertex set together with a set of two-element vertex subsets, whose edge set is the set of all two-element subsets of ;
- explicitly encoded nonnegative rational lengths , one for each unordered pair of distinct vertices, symmetric in the sense that ; one also fixes the diagonal value ;
- the triangle inequality for all vertices .
A feasible solution, called a tour, is a cyclic ordering visiting every vertex exactly once. Its cost is the sum of the consecutive lengths, including the closing edge,
The direction is minimization, and denotes the minimum tour cost over the finitely many cyclic orderings; it is a nonnegative rational attained by at least one tour. The completeness of the graph and the triangle inequality are exactly the properties used later to shortcut a repeated-vertex closed walk; this metric problem is not the unrestricted traveling-salesperson problem, in which an instance may omit edges and arbitrary nonnegative lengths need not satisfy the triangle inequality. All ties in the algorithms below are resolved by fixed lexicographic orders of the finitely many explicit objects involved.
A minimum spanning tree lower-bounds metric-TSP optimum
Statement
For a metric-TSP instance, let be a minimum spanning tree of its complete weighted graph. Then .
Facts & Assumptions
Given: A metric-TSP instance with vertex set , , complete graph on , nonnegative symmetric rational lengths , and the optimal tour cost ; and a minimum spanning tree of of weight .
A feasible tour is a cyclic ordering visiting every vertex exactly once, its cost sums the consecutive lengths including the closing edge, and is the minimum of these costs, attained over the finitely many cyclic orderings; all lengths are nonnegative and every two distinct vertices are joined by an edge. (Metric traveling-salesperson problem)
A minimum spanning tree of a connected weighted graph is a spanning tree with for every spanning tree of , where . (Real edge-weighted graphs, total tree weight and minimum spanning trees)
A finite graph is connected if and only if it has a spanning tree, and a spanning tree of is a spanning subgraph with , that is connected and acyclic. (A finite graph is connected if and only if it has a spanning tree, Spanning trees of a graph)
Proof
Take an optimal tour and write its cyclic ordering as with the closing edge , so . Delete the closing edge and let be the subgraph of with vertex set and edge set . The subgraph spans and is connected: for the walk lies in and joins to . Its total length is , because lengths are nonnegative.
Since is a finite connected graph, [F3] provides a spanning tree of with and . All lengths are nonnegative, so deleting edges cannot increase total length and . In particular is also a spanning tree of the complete graph , since and .
The tree is a minimum spanning tree of the complete graph , and is a spanning tree of , so by [F2] .
Therefore every metric-TSP instance satisfies for a minimum spanning tree of its complete weighted graph. The argument uses one optimal tour only as a comparison object; it computes no optimal tour and gives a lower bound on , not an upper bound.
Euler-tour shortcutting of a doubled tree does not increase metric cost
Statement
In a metric-TSP instance, double every edge of any spanning tree . An Euler circuit of the resulting connected even-degree multigraph, followed by first-visit shortcutting, yields a Hamiltonian tour of cost at most .
Facts & Assumptions
Given: A metric-TSP instance with vertex set , , complete graph and nonnegative symmetric rational lengths satisfying the triangle inequality, and a spanning tree of the complete graph with total weight .
Every two distinct vertices are joined by an edge of the complete graph; the lengths are symmetric and nonnegative, , the triangle inequality holds for all vertices, and a tour is a cyclic ordering of all vertices with cost the sum of consecutive lengths including the closing edge. (Metric traveling-salesperson problem)
A spanning tree of a graph is a spanning subgraph that is connected and acyclic, equivalently , with connected and acyclic; its weight is . (Spanning trees of a graph, Real edge-weighted graphs, total tree weight and minimum spanning trees)
An Euler circuit is a closed trail using every edge exactly once. (Euler trails and Euler circuits in multigraphs and digraphs)
A connected finite undirected multigraph has an Euler circuit if and only if every vertex has even degree, where a nonloop edge contributes one to the degree of each endpoint; this includes the edgeless one-vertex multigraph. (Euler's theorem and Hierholzer's construction: a connected finite undirected multigraph has an Euler circuit if and only if every degree is even, Degree in a multigraph, indegree and outdegree in a digraph, and their underlying connectivity)
Proof
Form the multigraph on whose edge list contains, for each tree edge , exactly two parallel edges between and with length ; these are nonloop edges because . Since is connected and spanning, so is ; each vertex degree is , because every nonloop edge contributes one to the degree of each endpoint, hence every degree of is even; and the total length of the edge list of is .
By [F4] the multigraph has an Euler circuit , which by [F3] is a closed trail using every edge of exactly once, so its total length is the total length of the edge list of . Since and the spanning tree is connected, every vertex of has degree at least one, so every vertex of occurs on .
Start at the first vertex of and list the vertices in order of their first visit, obtaining the distinct vertices with . The closed walk splits at these first visits into consecutive segments: for the segment from to , and the final segment from back to . These segments partition the edges of , so their lengths sum to .
Replace each segment by the direct edge joining its two endpoints, which exists because the graph is complete; this gives the cyclic ordering visiting every vertex exactly once, a feasible Hamiltonian tour. Iterating the triangle inequality along a segment bounds each shortcut edge by the length of that segment, since the metric is symmetric and all lengths are nonnegative; summing over the segments gives tour cost at most the total length of , namely .
The construction is explicit: the doubled multigraph is read off the finitely many tree edges, its Euler circuit is obtained by the constructive direction of [F4], and the first-visit scan of the closed walk takes time linear in its length, hence polynomial time in the encoded size of the instance. Therefore first-visit shortcutting of a doubled spanning tree yields a Hamiltonian tour of cost at most .
Double-tree shortcutting is a 2-approximation for metric TSP
Statement
Compute a minimum spanning tree of the complete metric graph, double its edges, traverse the resulting closed Euler walk and shortcut repeated vertices in first-visit order. The resulting Hamiltonian tour is found in polynomial time and has cost at most .
Facts & Assumptions
Given: A metric-TSP instance with vertices, complete graph and nonnegative symmetric rational lengths satisfying the triangle inequality, and optimum tour cost .
A tour is a cyclic ordering visiting every vertex exactly once and its cost sums the consecutive lengths including the closing edge; the complete graph joins every two distinct vertices; is the attained minimum over the finitely many tours. (Metric traveling-salesperson problem)
A minimum spanning tree of a connected weighted graph is a spanning tree with for every spanning tree , where sums the lengths of the edges of . (Real edge-weighted graphs, total tree weight and minimum spanning trees)
A graph is connected when its vertex set is nonempty and every two of its vertices are joined by a path. (Connected graphs and connected components defined by the existence of vertex paths)
Kruskal's algorithm, starting from the edgeless spanning forest and repeatedly adding a minimum-weight edge that creates no cycle until no such edge remains, outputs a minimum spanning tree of a connected weighted graph; arbitrary tie-breaking preserves correctness. (Kruskal's greedy edge procedure produces a minimum spanning tree)
For a metric-TSP instance and a minimum spanning tree of its complete graph, . (A minimum spanning tree lower-bounds metric-TSP optimum)
Doubling the edges of a spanning tree , traversing an Euler circuit of the resulting connected even-degree multigraph and shortcutting in first-visit order yields a Hamiltonian tour of cost at most . (Euler-tour shortcutting of a doubled tree does not increase metric cost)
A polynomial-time -approximation for a minimization problem returns, on every instance, a feasible solution of value at most twice the attained optimum; the comparison is a value inequality. (Optimization problems and approximation ratios)
Proof
The complete graph on the vertex set of the instance, with the given lengths, is a finite connected real edge-weighted graph: the vertex set is nonempty because , and any two distinct vertices are adjacent, hence joined by the one-edge path consisting of that edge. All edge lengths are nonnegative rationals by the metric convention.
Run Kruskal's algorithm on this weighted graph, breaking ties by a fixed order of the finitely many edges. By [F4] it outputs a minimum spanning tree . This run is polynomial time on the explicit rational input: there are at most additions, and each round can scan all edges, test eligibility by graph search, and compare the encoded rational lengths using polynomial bit arithmetic. By [F2], has minimum total weight among spanning trees.
Double every edge of , obtaining the connected multigraph in which every vertex degree is twice its degrees in , hence even; take an Euler circuit of this multigraph and shortcut repeated vertices in first-visit order. By [F6] the result is a Hamiltonian tour of the instance whose cost is at most , and the doubling, traversal and first-visit scan take polynomial time in the size of the explicit graph.
The same tree is a minimum spanning tree of the complete weighted graph, so [F5] gives the lower bound .
The tour returned in step 3.1 is feasible and has cost at most by step 3.2. The algorithm is deterministic polynomial time by steps 2.1 and 3.1, with all ties resolved by fixed finite orders. By [F7] it is a polynomial-time -approximation for metric TSP.
Gap promise problems and gap-preserving reductions
Definition
Fix a maximization problem in the finite-instance model of Optimization problems and approximation ratios and a scale function that assigns to every instance a positive rational , thought of as the count of the objects being optimized; for max-3SAT below the domain consists of formulas with at least one clause, is the number of clauses, and the objective is the maximum number of simultaneously satisfied clauses.
For rationals with , the gap problem is the promise problem whose yes side consists of the instances with and whose no side consists of the instances with . Instances with lie outside the promise. Since and the objective is nonnegative, both conditions are value inequalities and no quotient by is formed; in particular the case is covered by the no side whenever .
A gap-preserving reduction from a source promise problem to a target promise problem is a total function computable by a deterministic polynomial-time algorithm such that every source instance is carried into the target promise, every source yes instance is carried into a target yes instance, and every source no instance is carried into a target no instance. When the source is a language , the same definition applies with yes side and no side its complement, in the sense of Polynomial-time many-one reductions; the target is then read as the indication that the constructed target instance satisfies the required side of its gap. Compositions of gap-preserving reductions are again gap-preserving reductions, the intermediate instance always lying in the target promise by construction.
The two gap reductions on this page use these fixed conventions. For max-3SAT the gap domain consists of formulas with clauses, the scale is , and the optimum is the maximum number of simultaneously satisfiable clauses. For maximum independent set the clause-literal reduction uses the number of clause clusters as its positive scale. The PCP reduction constructs a formula with at least one clause on every input, so its composition with the clause-literal reduction stays in these domains. The latter construction also preserves optimum values for the empty formula and its empty graph, but these zero-clause instances are outside the positive-scale gap domains.
A constant-query PCP verifier yields constant-gap Max-3SAT
Statement
Assume the Axiom of Choice for the currently published PCP supplier proof route. For every language in NP, the published perfect-completeness binary PCP verifier with nonadaptive queries, fair random bits and fixed soundness gives a deterministic polynomial-time map to a 3-CNF formula with clauses and a fixed such that implies , while implies .
Facts & Assumptions
Given: A language , an input of length , and the verifier supplied by the PCP theorem over the binary proof alphabet, whose proof length is bounded by a polynomial .
: every has a constant , a bound and a constant bound with over the binary alphabet, that is, a verifier with perfect completeness, soundness at most , random bits, a constant number of nonadaptive bit queries, and one fixed polynomial-length proof per input. (The PCP theorem: NP equals PCP(log n, O(1)))
Membership means: on every input , if there is one fixed proof with acceptance probability at least , and if every fixed proof has acceptance probability at most ; probabilities are over the verifier's coins and the same deterministic proof is used for every coin string. (PCP classes with completeness and soundness)
A nonadaptive verifier uses at most unbiased random bits, reads the fixed proof at at most locations computed from and the coins before any symbol is read, and its acceptance probability for a fixed proof is the proportion of the coin strings on which it accepts; the coin set is nonempty even for . (PCP verifier resources and deterministic proof strings)
The language -SAT consists of satisfiable CNF formulas with exactly three literals per clause. (3-SAT is NP-complete)
For Max-3SAT the scale is the number of clauses and the optimum is the maximum number of simultaneously satisfied clauses, so the no side of a gap statement is the value inequality with no quotient. (Gap promise problems and gap-preserving reductions)
The Axiom of Choice states that every family of nonempty sets has a choice function. Here it is assumed solely for the currently published proof route of the PCP supplier, which reaches a published algebraic embedding-extension result whose proof invokes Zorn's lemma; the finite verifier-to-formula reduction of this lemma makes only explicit finite choices. (The Axiom of Choice)
Strictly between any two real numbers lies a rational. (The rationals embed densely in the reals)
Proof
Fix and an input of length . Under the Axiom of Choice hypothesis of [F6], [F1] supplies a verifier for with perfect completeness , fixed soundness , a bound , a constant query bound , and a fixed polynomial bound on the addressable proof length. By [F7], fix a rational with ; the verifier also has soundness at most . This rational constant may be hardcoded without computing . Put , so and is polynomially bounded in .
For each coin string , the nonadaptive verifier queries a set of distinct proof locations determined by and , with ; let be the finite set of local assignments on which rejects, . If , then is either empty (the verifier accepts) or the single empty assignment (the verifier rejects).
Build a CNF formula over one Boolean variable per addressable proof location, treating each coin string in exactly one of three cases. If , insert one tautology on a fresh bit reserved to . If and the verifier rejects, insert only the contradictory pair and on a fresh bit reserved to ; do not insert an empty clause. Otherwise : for every insert , where is if and if . This clause is falsified exactly by the assignments realizing . Every inserted clause has width between and , and the construction is an explicit finite procedure.
Convert each clause of width into a block of 3-clauses with fresh auxiliary bits reserved to that block: for keep the clause; for write ; for write ; for use fresh bits and the chain , then for , then ; each written clause has exactly three literal occurrences, so is a 3-CNF in the format of [F4], and distinct blocks share no auxiliary bit.
For , padding or keeping a clause preserves its truth value. For , if all original literals are false, satisfying the first clause would force true, the intermediate clauses would force all subsequent true, and the last clause would then be false; thus every auxiliary assignment falsifies at least one clause. Conversely, if is true, assigning true for and false for satisfies the whole chain. The tautology of step 2.1 is always satisfied, while its contradictory pair always has exactly one falsified clause.
Count clause occurrences in the blocks checked in step 4.1. Each coin string contributes at least one: the always-accepting case contributes one tautology, the no-query rejecting case contributes two clauses, and every other case contributes between and pattern blocks, each of at most clauses. Thus bounds the contribution of any coin string, including , and . In particular and is the scale of [F5].
Suppose . By perfect completeness some fixed proof is accepted on every one of the coin strings, so for no does the realized local pattern lie in ; every clause is therefore satisfied by the proof variables, the tautology clauses are satisfied by their fresh bits, and step 4.1 supplies auxiliary values satisfying all 3-clauses of every block. Hence all clauses can be satisfied simultaneously and .
Suppose and fix any assignment to all variables of . By soundness at least coin strings reject its fixed proof part. For each such with , the realized rejected pattern falsifies , so step 4.1 forces a falsified 3-clause in its block. For a rejecting with , its contradictory pair has a falsified clause instead. Distinct coin strings contribute distinct clause occurrences, even when the written clauses coincide, so at least occurrences are falsified. Hence .
Set , a fixed rational constant because is rational and is a positive integer. From we get , so step 6.2 gives .
The map is deterministic and polynomial-time: the verifier is a uniform polynomial-time algorithm, is polynomially bounded, each coin string's queries and local predicate are computed in polynomial time, and polynomially many clauses of constant width are written; by step 5.1. Therefore implies and implies with the fixed of step 7.1; by [F5] these are the yes-side equality and no-side value inequality of the constant-gap Max-3SAT statement with scale .
Max-3SAT has no PTAS unless P=NP
Statement
Assume the Axiom of Choice for the currently published PCP supplier proof route. If Max-3SAT has a polynomial-time approximation scheme, then . More precisely, fix the preceding reduction for the NP-complete language -SAT and its gap . Any polynomial-time algorithm with maximization factor would decide every language in NP.
Facts & Assumptions
Given: Fix -SAT and its gap from the preceding reduction. Assume either a PTAS for Max-3SAT or a polynomial-time algorithm with value guarantee for a fixed rational .
Under the Axiom of Choice for its published proof route, the constant-query PCP verifier gives a deterministic polynomial-time map to a 3-CNF formula with clauses and a fixed such that implies and implies . (A constant-query PCP verifier yields constant-gap Max-3SAT)
A PTAS for an optimization problem is a family such that for each fixed the algorithm runs in polynomial time in the input length and, for maximization, returns a feasible solution of value at least in the value-inequality sense. (PTAS, FPTAS and APX)
For Max-3SAT the scale is the number of clauses and is the maximum number of simultaneously satisfied clauses, so any particular assignment satisfies at most clauses. (Gap promise problems and gap-preserving reductions)
is NP-hard when for every language one has , and NP-complete when is NP-hard and . (NP-hard and NP-complete languages)
is the class of languages decided by some deterministic Turing machine in time polynomial in the input length. (The class P)
Every language in belongs to , so . (, The class NP via polynomial-time verifiers)
The Axiom of Choice states that every family of nonempty sets has a choice function; it is assumed here solely through the published PCP supplier route used by [F1]. (The Axiom of Choice)
The language -SAT is NP-complete. (3-SAT is NP-complete)
A polynomial-time many-one reduction from to is a total polynomial-time computable function with if and only if . (Polynomial-time many-one reductions)
Proof
By [F8], -SAT belongs to NP. Fix its gap reduction from [F1], under the Axiom of Choice hypothesis of [F7]. The construction in that supplier's proof supplies a rational with , because its rational soundness bound satisfies and its integer . In the PTAS case fix , so , and use from [F2]; in the factor- case use the given . All these constants and algorithms are fixed for -SAT, independently of any later source language.
Define the decision procedure: on input , compute , run the fixed algorithm ( or ) on to obtain an assignment, evaluate that assignment clause by clause to count the number of satisfied clauses, and accept exactly when . The formula is polynomial size in , the fixed algorithm runs in polynomial time, and the exact comparison of the integer with the rational threshold is polynomial.
If , then by [F1], so in the PTAS case and in the factor- case , because and ; in both cases and the procedure accepts .
If , then by [F1], and the counted assignment satisfies by [F3], so and the procedure rejects .
Steps 2.1, 3.1 and 3.2 give a deterministic polynomial-time decider for -SAT in either case. For any language , [F4] and [F8] give a polynomial-time many-one reduction to -SAT. On input , compute and run this decider; [F9] gives the correct answer for . The output length of is polynomially bounded by its running time, so this composition is polynomial-time. Thus by [F5], while by [F6].
Hence a PTAS, or a polynomial-time maximization factor for this fixed -SAT gap, forces under the stated Axiom of Choice hypothesis.
Clause-literal consistency graph preserves the Max-3SAT optimum
Statement
For every 3-CNF formula with clauses of exactly three literal occurrences, construct in polynomial time a simple graph with vertices, one per occurrence. Vertices in the same clause are adjacent, and vertices from distinct clauses are adjacent exactly when their literals are complementary. Then . For and , the promise versus at most transfers with unchanged and positive scale . For the graph is empty and both optima are ; this case is outside the positive-scale gap domain. From any independent set of vertices one can produce an assignment satisfying at least clauses in polynomial time.
Facts & Assumptions
Given: A 3-CNF formula whose clauses contain exactly three literal occurrences, with repeated occurrences allowed, and the number of clauses satisfied by a best assignment.
The language -SAT consists of satisfiable CNF formulas with exactly three literals per clause (3-SAT is NP-complete). Its published reduction to CLIQUE uses one vertex per literal occurrence and joins two vertices exactly when they come from different clauses and their literals are not complementary (3SAT polynomial-time many-one reduces to CLIQUE, proof, step 1.2).
A subset of the vertex set of a finite simple graph is an independent set when no two distinct vertices of are adjacent, and the associated maximum-independent-set problem asks for the largest such size . (Clique, independent set, and vertex cover decision problems)
A finite simple graph is a pair with finite and , so every edge is an unordered pair of distinct vertices and no pair occurs twice. (A finite simple graph is a finite vertex set together with a set of two-element vertex subsets)
A gap scale must be positive. For Max-3SAT formulas with clauses the scale is and the optimum is the maximum number of simultaneously satisfied clauses; for the corresponding maximum-independent-set instances the scale is the number of clause clusters. (Gap promise problems and gap-preserving reductions)
Proof
List the occurrences of as pairs with and , where carries the -th listed literal occurrence of clause , and let have vertex set . Declare two vertices adjacent exactly when either and (same clause) or and the two carried literals are complementary, that is, one is the negation of the other (distinct clauses). Then , no loops or repeated edges occur because adjacency is a symmetric condition on distinct listed pairs, and is a finite simple graph. Building the vertex list and testing pairs runs in polynomial time in the encoding of .
Let an assignment satisfy a set of clauses. In each satisfied clause choose one of its three occurrences whose literal is true under the assignment. The chosen vertices number , no two lie in the same clause, and no two are complementary, since a single assignment cannot make a variable and its negation both true; hence the chosen set is independent and . Taking a best assignment gives .
Conversely let be an independent set of of size . By step 1.1, contains at most one occurrence from each clause, and no two of its occurrences are complementary. Assign a variable the value true if some occurrence in carries the literal , the value false if some occurrence in carries the literal , and the value false otherwise; this is well defined because complementary occurrences cannot both belong to , and it assigns a value to every variable in polynomial time. Every occurrence in is then true, so the distinct clauses containing members of are all satisfied, and . Taking a largest independent set gives .
Steps 2.1 and 2.2 give and , hence the exact equality for every 3-CNF formula with three literal occurrences per clause, including repeated literals and tautological clauses. For the graph is empty and both optima are , so the equality and decoder remain valid. For and , with positive scale by [F4], an instance with gives , and an instance with gives , so the gap promise transfers with the same and scale . The empty formula is outside this positive-scale gap domain.
The graph of step 1.1 is the complement, on the same occurrence vertices, of the published occurrence graph in [F1]: it joins exactly the pairs that the CLIQUE construction does not. Steps 2.1–3.1 establish directly that this complement graph has independent-set number and give a polynomial-time decoder; the cited decision theorem alone states only a satisfiability equivalence.
Maximum independent set has no PTAS unless P=NP
Statement
Assume the Axiom of Choice for the currently published PCP supplier proof route. A polynomial-time approximation scheme for maximum independent set on finite simple graphs implies . On the graphs from the two gap reductions, when is a yes instance and when is a no instance, for the same fixed .
Facts & Assumptions
Given: A language , a PTAS for the maximum independent set problem on finite simple graphs, and the two gap reductions below.
Under the Axiom of Choice for its published proof route, the PCP verifier gives, for each input , a 3-CNF formula with clauses and a fixed such that implies and implies . (A constant-query PCP verifier yields constant-gap Max-3SAT)
The clause-literal consistency graph of a 3-CNF formula with clauses of three literal occurrences is a simple graph with vertices, computable in polynomial time, with ; for the gap promise versus transfers with unchanged and positive scale , and any independent set of size decodes in polynomial time to an assignment satisfying at least clauses. (Clause-literal consistency graph preserves the Max-3SAT optimum, Gap promise problems and gap-preserving reductions)
A subset of the vertex set of a finite simple graph is independent when no two of its vertices are adjacent, and denotes the largest size of an independent set. (Clique, independent set, and vertex cover decision problems)
A PTAS for a maximization problem is a family such that for every fixed the algorithm runs in polynomial time in the input length and returns a feasible solution of value at least times the optimum, in the value-inequality sense. (PTAS, FPTAS and APX)
is the class of languages decided by some deterministic Turing machine in polynomial time, and every language in belongs to , so . (The class P, , The class NP via polynomial-time verifiers)
is NP-hard when every language reduces to it in polynomial time. (NP-hard and NP-complete languages)
The Axiom of Choice states that every family of nonempty sets has a choice function; it is assumed here solely through the published PCP supplier route used by [F1]. (The Axiom of Choice)
Proof
Fix and the reduction of [F1], which supplies the fixed constant and, for each input , the formula with clauses; for each apply the polynomial-time construction of [F2] to obtain the finite simple graph with vertices and , whose scale is the number of clause clusters. Assume the PTAS of [F4] and fix a rational with , for instance . The PCP supplier route is used under the Axiom of Choice hypothesis of [F7].
By [F1] and the exact optimum equality of [F2], the graphs satisfy when , and when ; the scale is positive and unchanged, so the same fixed separates the two cases.
Define the decision procedure: on input , construct , run the fixed algorithm on to obtain an independent set , let , and accept exactly when . The graph construction is polynomial by [F2], the algorithm is polynomial time for the fixed by [F4], and the returned set is independent of size ; by the PTAS guarantee the value satisfies .
If , then by step 2.1, so because ; hence the procedure accepts .
If , then by step 2.1, and because is the size of an independent set; hence and the procedure rejects .
Steps 4.1 and 4.2 show that the deterministic polynomial-time procedure accepts exactly the inputs of , so ; since was arbitrary (the quantifier in [F6]), , and by [F5], so . Therefore a PTAS for maximum independent set implies , and on the graphs one has for yes instances and for no instances with the same fixed .
L-reductions between optimization problems
Definition
Let and be finite-instance optimization problems in the model of Optimization problems and approximation ratios, with objective directions and nonnegative rational values as specified there; write and for their attained optima and , for their objective values. An L-reduction from to consists of:
- a total instance map , computable in deterministic polynomial time, that carries every instance of to an instance of ;
- a feasible-solution map , computable in deterministic polynomial time, that on every instance of and every feasible solution of the -instance produces a feasible solution of the -instance ;
- constants and , independent of the instance, such that for every instance of and every feasible solution of ,
The first inequality relates the two optima and the second is the error transfer inequality: it compares the loss of the decoded solution to the loss of the given one. Both maps are required to be total on their stated domains and to run in time polynomial in the encoding lengths involved, and both objectives are nonnegative rationals, so the absolute values are ordinary finite differences of nonnegative numbers. The definition covers minimization and maximization problems without change; the first inequality is an ordinary comparison of nonnegative rationals and the second is stated with absolute values rather than a quotient, so instances with optimum are included. The APX-hardness and APX-completeness notions attached to this reduction are defined separately under the selected convention of APX-hardness and APX-completeness under L-reductions, and the transfer and composition properties are proved in L-reductions compose and transfer PTAS and APX-hardness. An L-reduction alone is not a promise problem or a gap-preserving reduction in the sense of Gap promise problems and gap-preserving reductions: it carries feasible solutions backwards through , which a gap map need not do.
APX-hardness and APX-completeness under L-reductions
Definition
Under the explicitly selected L-reduction convention of L-reductions between optimization problems, an optimization problem in the finite-instance model is APX-hard when every problem in the locally defined class APX has an L-reduction to . The problem is APX-complete under this convention when it is APX-hard and also belongs to APX.
The class APX here is the one fixed in PTAS, FPTAS and APX: problems in the finite-instance model of Optimization problems and approximation ratios that admit one polynomial-time fixed-factor approximation in their objective direction. Thus APX-hardness quantifies over every such source problem, with the reduction maps and constants of L-reductions between optimization problems, and APX-completeness adds membership of the target in that class. The reduction notion is part of this definition: this page explicitly chooses L-reductions and does not claim that all of the literature uses the same convention for APX-hardness or APX-completeness.
No concrete target is certified APX-hard or APX-complete here. In particular a PCP constant-gap or no-PTAS result, such as the consequences proved on this page for Max-3SAT and maximum independent set, establishes no APX-hardness or APX-completeness under this definition; those self-contained no-PTAS arguments do not exhibit L-reductions from all APX problems. The composition and transfer properties of this reduction notion are established separately in L-reductions compose and transfer PTAS and APX-hardness.
L-reductions compose and transfer PTAS and APX-hardness
Statement
Let and be finite-instance optimization problems with polynomially bounded feasible encodings, polynomial-time feasibility and value operations, attained optima, and nonnegative objective values. If L-reduces to with constants , then for a feasible solution with relative error at most decodes to a solution with relative error at most . If , the appropriate minimization or maximization ratio guarantee and nonnegative feasible values force the value to be zero, and the L-reduction error bound forces the decoded solution to be optimal. Thus an L-reduction transfers PTAS membership. L-reductions compose: constants followed by give constants . Consequently, if is APX-hard under L-reductions and L-reduces to , then is APX-hard under L-reductions.
Facts & Assumptions
Given: Two finite-instance optimization problems and with the stated model properties, and an L-reduction from to .
An L-reduction from to consists of a polynomial-time instance map , a polynomial-time feasible-solution map defined on instances of and feasible solutions of , and constants with and for all such . (L-reductions between optimization problems)
In the finite-instance model each problem has a polynomially bounded feasible-solution encoding, polynomial-time feasibility and value operations, at least one feasible solution per instance, attained optima, and nonnegative rational objective values computable in polynomial time. (Optimization problems and approximation ratios)
An -approximation ratio guarantee in the value-inequality sense means for minimization, respectively for maximization; a PTAS is a family with polynomial running time for each fixed and these value guarantees for and . (Optimization problems and approximation ratios, PTAS, FPTAS and APX)
Under the selected convention, is APX-hard when every problem in the locally defined class APX has an L-reduction to , and APX is the class of finite-instance problems admitting one polynomial-time fixed-factor approximation. (APX-hardness and APX-completeness under L-reductions, PTAS, FPTAS and APX)
Proof
Fix an instance of , write , and let be a feasible solution of . By [F1] the maps and are polynomial time, the defining inequalities are and , and by [F2] all optima and values are attained nonnegative rationals, so each of these expressions is a finite nonnegative difference and all values are computed in polynomial time.
Composition: suppose in addition that is an L-reduction from to a third problem . Define and for every instance of and feasible -solution of ; these are compositions of polynomial-time maps and produce feasible solutions. The two defining inequalities give and , so is an L-reduction from to by [F1].
Relative-error transfer for positive target optimum: suppose and the feasible solution satisfies in the minimization direction or in the maximization direction, that is, its relative error in 's direction is at most in the value sense of [F3]. Since is an attained minimum in the first case, there, and since it is an attained maximum in the second case, there; in both cases .
APX-hardness transfer: assume is APX-hard under the selected convention [F4] and let be any problem in APX. By APX-hardness of there is an L-reduction from to with constants ; composing it with the reduction of step 1.1 by the construction of step 2.1 gives an L-reduction from to with constants . Since was arbitrary, every problem in APX L-reduces to , so is APX-hard by [F4].
Error bound: applying the second L-reduction inequality of step 1.1 to the solution of step 2.2 and then the optimum bound of [F1], . If , dividing by it bounds the relative error in 's direction by ; if , the displayed chain gives , so the decoded solution is optimal.
Zero target optimum: suppose . If is a minimization problem, the ratio guarantee gives and [F2] gives , so ; if is a maximization problem, is the largest feasible value and all values are nonnegative, so again . Then the L-reduction error inequality gives , so the decoded -solution is optimal. The same conclusion holds when , because then and nonnegativity give , reducing to the case just treated.
PTAS transfer: let be a PTAS for by [F3] and let be a rational tolerance for . Choose a rational with , which is possible because and , so that and . Run on to obtain a feasible , then decode . If , step 3.2 bounds the relative error of the decoded solution by ; if , step 4.1 shows the decoded solution is optimal, a relative error of . The running time is polynomial in , being a composition of the polynomial map , the fixed- polynomial algorithm , and the polynomial map ; hence implies .
Consequently an L-reduction transfers relative-error guarantees and PTAS membership, L-reductions compose with constants , and by step 3.1 the APX-hardness of a problem transfers to any L-reduction target under the selected convention. These conclusions rest on the value inequalities and polynomial maps of [F1]; a PCP gap bound or a no-PTAS theorem alone proves no APX-hardness statement and is not used here.
False: exact NP-hardness rules out constant-factor approximation
Statement
False claim: if exact optimization of a problem is NP-hard, then no polynomial-time constant-factor approximation exists. Minimum vertex cover is a counterexample: its threshold decision problem is NP-complete, yet the endpoints of a maximal matching yield a deterministic polynomial-time factor-two approximation. This refutes the unconditional claim; it does not refute a separate inapproximability claim conditional on .
Facts & Assumptions
Given: The universal claim under examination, and the minimum vertex cover problem on finite simple graphs with its optimal value .
VERTEX COVER, the problem of deciding whether a finite simple graph has a vertex cover of size at most , is NP-complete, and a vertex cover is a set meeting every edge. (INDEPENDENT SET and VERTEX COVER are NP-complete, Clique, independent set, and vertex cover decision problems)
Greedily constructed maximal matchings produce, in deterministic polynomial time, the endpoint set of the matching, with a vertex cover and , including the edgeless case. (A maximal matching gives a 2-approximate minimum vertex cover)
A polynomial-time -approximation for a minimization problem returns on every instance a feasible solution of value at most times the optimum, with ; the comparison is a value inequality needing no division by the optimum. (Optimization problems and approximation ratios)
A finite simple graph has a finite vertex set and its edges are two-element subsets of distinct vertices. (A finite simple graph is a finite vertex set together with a set of two-element vertex subsets)
Refutation
Exact optimization of minimum vertex cover is NP-hard. Indeed, a polynomial-time algorithm computing exactly would decide VERTEX COVER by computing and comparing it with the integer , which answers a problem that [F1] records as NP-complete; hence no polynomial-time exact optimizer exists unless .
Nonetheless minimum vertex cover admits an unconditional constant-factor approximation: by [F2] the maximal-matching endpoints form a deterministic polynomial-time computed vertex cover of value at most on every finite simple graph, which by [F3] is precisely a polynomial-time -approximation in the value-inequality sense. No hypothesis is used.
The four-vertex path with vertices and edges illustrates both sides. The matching is maximal with endpoint set , a vertex cover of size ; one vertex meets at most two of the three edges, so no cover of size exists and . Scanning the edges in the order , the greedy procedure instead inserts and then and returns all four vertices, so realizes the factor-two upper bound, while the matching of the middle edge has size .
Minimum vertex cover has NP-hard exact optimization by step 1.1 and an unconditional polynomial-time factor-two approximation by step 2.1, so it refutes the unqualified claim of [F1]. This does not refute a separate claim that approximation is impossible unless ; such a conditional lower bound needs additional evidence, such as a gap reduction. The four-vertex path illustrates tightness, while the general theorem establishes the uniform ratio.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Williamson and Shmoys, The Design of Approximation Algorithms, §§1.1, 1.6, 2.4, 5.1–5.2, 16.2, printed pp. 14–15, 24–26, 44–46, 107–109, 413–414
- Ghaffari, Advanced Algorithms, Lecture 1: Approximation Algorithms I, §§1, 2.1, 2.2.2, PDF pp. 1–5
- Williamson and Shmoys, The Design of Approximation Algorithms, §1.1 Definition 1.2 (printed p. 15), §3.1 Definition 3.4 and Theorem 3.5 (printed pp. 68–69)
- Williamson and Shmoys, The Design of Approximation Algorithms, §1.6 Fact 1.10 and its proof, printed p. 25
- Ghaffari, Advanced Algorithms, Lecture 1: Approximation Algorithms I, §2.1 Theorem 3, PDF pp. 2–3
- Williamson and Shmoys, The Design of Approximation Algorithms, §1.6 Theorem 1.11 with proof, printed pp. 25–26
- Cornell CS 4820, Lecture notes on randomized approximation algorithms, §1.1–1.1.2, PDF pp. 1–3
- Williamson and Shmoys, The Design of Approximation Algorithms, §5.2 conditional-expectation argument, printed pp. 108–109
- Cornell CS 4820, Lecture notes on randomized approximation algorithms, §1.1.2 Algorithms 1–2, PDF pp. 2–3
- Williamson and Shmoys, The Design of Approximation Algorithms, §2.4 Lemma 2.10 and its proof, printed pp. 44–45
- Williamson and Shmoys, The Design of Approximation Algorithms, §2.4 Theorem 2.12 and its proof, printed pp. 45–46
- Williamson and Shmoys, The Design of Approximation Algorithms, §2.4 Theorem 2.12 with proof, printed pp. 45–46
- Arora and Barak, Computational Complexity: A Modern Approach, author-hosted draft, §18.2.4–18.2.5, printed pp. 358–361
- Williamson and Shmoys, The Design of Approximation Algorithms, §16.2, printed pp. 413–414
- Arora and Barak, Computational Complexity: A Modern Approach, §18.2.4 Theorem 18.13 and §18.2.5 Lemma 18.15 with proof, printed pp. 358–360
- Arora and Barak, Computational Complexity: A Modern Approach, §18.2.5 and the inapproximability discussion, printed pp. 359–361
- Williamson and Shmoys, The Design of Approximation Algorithms, §1.5 and §16.2, printed pp. 21–25 and 413–414
- Arora and Barak, Computational Complexity: A Modern Approach, §18.2.5 Lemma 18.16 and Remark 18.17, printed pp. 359–361
- Williamson and Shmoys, The Design of Approximation Algorithms, §16.2 Definition 16.4 and Theorems 16.5–16.6, printed pp. 413–414
- Williamson and Shmoys, The Design of Approximation Algorithms, §16.2 Theorems 16.5–16.6 with proofs, printed p. 414
- Williamson and Shmoys, The Design of Approximation Algorithms, §1.6 and §2.4, printed pp. 24–26 and 44–46