Back to the 2022 paper

Module 4: Tractable and Intractable Problems

20227m

Define P-Class, NP-class, NP-complete class and NP-hard class of problems. What is the relation between them?

Worked SolutionAI Assisted

Complexity Classes PP, NPNP, NPNP-Complete, NPNP-Hard — Definitions & Relations

Definitions

  • PP (Polynomial): Decision problems solvable by deterministic TM in O(nk)O(n^k) for some kk. Example: Sorting, MST, Shortest path (non-neg). Tractably solvable.
  • NPNP (Nondeterministic Polynomial): Problems where yes instances have certificate verifiable in polytime by deterministic TM (equivalently solvable by nondet TM in polytime). P⊆NPP\subseteq NP. Example: SAT, Hamiltonian Cycle decision, Subset Sum.
  • NPNP-Hard: Problem HH such that ∀L∈NP\forall L\in NP, L≤pHL\le_p H (polytime reducible). No need to be in NPNP; at least as hard as hardest in NPNP. Example: Halting Problem, TSP optimization, any NP-complete problem.
  • NPNP-Complete: NP∩NP \cap NPNP-Hard = hardest problems in NPNP. Formal: C∈NPC\in NP and ∀L∈NP\forall L\in NP, L≤pCL\le_p C. Cook proved SAT is NP-complete. Example: 3-SAT, Clique, Vertex Cover decision, Hamiltonian Cycle.

Relations

P ⊆ NP   (unknown if equal — Clay Millennium)
NP-Complete ⊂ NP
NP-Complete ⊂ NP-Hard
NP-Hard extends outside NP (includes undecidable)
P = NP  ⇔  some NP-complete ∈ P  ⇔  all NP-complete ∈ P
If any NP-hard problem outside NP is in P, not relevant (still P vs NP open).

Venn diagram: Large oval NP-Hard; inside it smaller oval NP; within NP: P region and NP-Complete ring (NP-Complete = intersection of NP-Hard with NP). Outside NP-Hard? None — NP-Hard superset.

Consequences: Proving new problem XX NP-complete shows it is among hardest in NPNP; proving NP-hard shows at least as hard (possibly harder than NP).

Similar questions

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.