Standard NP Problems and Certificates
Context: FIT2014_MOC Β· the named instance stock the unit reduces between β every problem in Polynomial-Time Reductions and every NP-completeness argument is drawn from this list, so the definitions must be recallable cold
Quick Revision
- π― Objective: for each problem hold three things β the instance, the certificate, and its polynomial check β that triple is the proof of membership of [[Verifiers, Certificates and the Class NP|]].
- β‘ Key Constraint: superficially twinned problems sit on opposite sides of the frontier β 2-SAT vs 3-SAT, 2-colourable vs 3-colourable, Eulerian (edges, in ) vs Hamiltonian (vertices, not known to be). Never generalise a membership by analogy.
π Core β the three vertex-set problems
All three fix a graph with and ask for a set ; they differ only in the condition on and the direction of the size bound.
- VERTEX COVER has a vertex cover of size β covers iff every edge has at least one endpoint in : .
- INDEPENDENT SET has an independent set of size β is independent iff no edge has both endpoints in : .
- CLIQUE has a clique of size β is a clique iff every pair inside is adjacent: .
- The two identities that drive the reductions β is a vertex cover of is independent in ; and is independent in is a clique in the complement (edges non-edges). Both are proved by unfolding the two -statements above.
- Direction discipline β VERTEX COVER asks (small is hard to achieve), the other two ask (large is hard to achieve) β which is why appears in [[Polynomial-Time Reductions|VERTEX COVER INDEPENDENT SET]].
Lecture's 4-vertex instance β , triangle plus the edge
vertex cover? independent? clique? β β β β β β β (misses ) β β β β (no edge ) β β β β β β (edge ) β β β β β β β (no edge )
- Key move: to refute a cover, name the uncovered edge; to refute independence or a clique, name the offending pair. A one-word βnoβ earns nothing.
π Catalogue β instance, certificate, check
| Problem | Instance | Certificate | Polynomial check | Status |
|---|---|---|---|---|
| 2-SAT | CNF formula, exactly 2 literals/clause | truth assignment | evaluate every clause | in |
| SATISFIABILITY | any CNF formula | truth assignment | evaluate every clause | , not known in |
| 3-SAT | CNF, exactly 3 literals/clause | truth assignment | evaluate every clause | , not known in |
| 2-COLOURABILITY | graph | scan edges for | in | |
| 3-COLOURABILITY | graph | scan edges, | , not known in | |
| GRAPH COLOURING | scan edges | , not known in | ||
| COMPOSITE | ; with | a factor | one division | in (PRIMES, AKS 2004) |
| INTEGER FACTORISATION | integer + bound | a factor | one division | , not known in |
| EULERIAN | graph | an Euler tour β closed walk using each edge exactly once | walk is closed, edges used once each | in |
| HAMILTONIAN CIRCUIT | graph | a circuit visiting each vertex exactly once | consecutive pairs adjacent, all vertices hit | , not known in |
| GRAPH ISOMORPHISM | bijection | , all pairs | , not known in | |
| SUBGRAPH ISOMORPHISM | : is isomorphic to a subgraph of ? | injection | image pairs adjacent in | , not known in |
| VERTEX COVER | , cover of size | the set | ; every edge meets | , not known in |
| INDEPENDENT SET | , ind. set of size | the set | ; no edge inside | , not known in |
| CLIQUE | , clique of size | the set | ; all pairs adjacent | , not known in |
| PARTITION | : with | the index set | add both sides, compare | , not known in |
| SUBSET SUM | : with | the index set | add and compare with | , not known in |
- Reading the Status column β βnot known in β is a statement about human knowledge, not a proven exclusion; every entry is in and therefore decidable in exponential time. If the column collapses.
- Isomorphism vocabulary β iff some bijection satisfies β adjacent in adjacent in β βΉ the same graph up to renaming vertices. The bijection is the isomorphism, and it is exactly the certificate.
β οΈ Common Mistakes
- π‘ Euler/Hamilton mix-up β Euler traverses every edge once (in ); Hamilton visits every vertex once (not known in ). The words are similar, the complexity is not.
- π‘ Flipping the size bound β βvertex cover of size β and βclique of size β are trivial problems β the hardness lives entirely in minimising the cover and maximising the clique.
- π‘ Certificate that is not checkable in isolation β βa certificate that is not 3-colourableβ has no known short form; certifies Yes-instances only.
- π‘ Confusing GRAPH with SUBGRAPH ISOMORPHISM β the first needs a bijection preserving adjacency both ways; the second only an injection into with images adjacent. Different certificate types.
- π‘ Assuming the 2-versus-3 pattern is a rule β 2-SAT and 2-COLOURABILITY are in by specific algorithms, not because β2 is easyβ. No such argument transfers.
π§ Active Recall
Give the certificate and the polynomial check for CLIQUE, and state its relationship to INDEPENDENT SET.
Answer
- Short answer: certificate the vertex set ; check and that every pair in is adjacent β lookups. is a clique in iff is independent in the complement .
- Why: Complementation swaps the edge predicate β βall pairs adjacent in β becomes βno pair adjacent in β, which is independence verbatim; building costs , giving [[Polynomial-Time Reductions|INDEPENDENT SET CLIQUE]] with the parameter untouched.
Both ask for a tour of a graph, so why is EULERIAN in while HAMILTONIAN CIRCUIT is not known to be?
Answer
- Short answer: an Euler tour constrains edges and admits a local characterisation checkable by degree counting; a Hamiltonian circuit constrains vertices and no such local test is known β only a certificate to verify, never an efficient way to find one.
- Why: Both are in with the tour as certificate β verification is trivial in each case, so the split is entirely about deciding, not verifying. This pair is the standard illustration that membership of says nothing about membership of .