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]].

πŸ“š Catalogue β€” instance, certificate, check

ProblemInstanceCertificate Polynomial checkStatus
2-SATCNF formula, exactly 2 literals/clausetruth assignment evaluate every clausein
SATISFIABILITYany CNF formulatruth assignment evaluate every clause, not known in
3-SATCNF, exactly 3 literals/clausetruth assignment evaluate every clause, not known in
2-COLOURABILITYgraph scan edges for in
3-COLOURABILITYgraph scan edges, , not known in
GRAPH COLOURINGscan edges, not known in
COMPOSITE; with a factor one divisionin (PRIMES, AKS 2004)
INTEGER FACTORISATIONinteger + bounda factorone division, not known in
EULERIANgraph an Euler tour β€” closed walk using each edge exactly oncewalk is closed, edges used once eachin
HAMILTONIAN CIRCUITgraph a circuit visiting each vertex exactly onceconsecutive pairs adjacent, all vertices hit, not known in
GRAPH ISOMORPHISMbijection , 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