Back to the 2025 paper

Module 4: Tractable and Intractable Problems

20257m

Compare NP-hard and NP-completeness?

Worked SolutionAI Assisted

NP-Hard vs NP-Completeness

Aspect NP-Hard NP-Complete
Definition Problem HH is NP-hard if every L∈L\in NP reduces to HH in polytime: ∀L∈\forall L\in NP, L≤pHL\le_p H. No requirement that H∈H\in NP. CC is NP-complete iff CC is both NP-hard and C∈C\in NP. So NP-C = NP ∩ NP-hard.
Verifiable? Not necessarily verifiable in polytime; may be harder than NP (e.g., Halting, undecidable problems are NP-hard). Yes, must be verifiable in polytime (certificate check O(nk)O(n^k)).
Examples Halting Problem, 3-SAT optimization version, TSP optimization; also any NP-complete problem is NP-hard. Decision versions: SAT, 3-SAT, Clique decision, Vertex Cover decision, Hamiltonian Cycle, Subset Sum decision, TSP decision (is there tour ≤K?).
Reduction direction To prove NP-hard: reduce known NP-hard/NP-complete L0≤pHL_0 \le_p H. To prove NP-complete: prove (1) C∈C\in NP and (2) CC NP-hard (reduce known NP-complete to CC).
Solvability If NP-hard problem in P → P=NP, but converse not. NP-hard outside NP cannot be in NP regardless of P vs NP. If any NP-complete in P → P=NP → all NP problems polytime.
Optimization vs Decision Optimization forms often NP-hard but not NP-complete because verification of optimality not polytime (just decision version is NP-complete). Decision versions with yes/no and polytime verifier.

Venn: P⊆P \subseteq NP, NP-Complete ⊂ NP, NP-Hard superset overlapping NP (contains NP-C) and extending outside.

Consequence: Showing new problem NP-complete establishes it is among hardest in NP; showing NP-hard shows at least as hard as NP-complete, possibly harder/undecidable.

Similar questions

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.