Reduction and NPC

Concepts

Clique - a subgraph in which there exists an edge between every pair of vertices
Independent set - a set of vertices in the graph in which none of two are adjacent
Vertex cover - a set of vertices in which every edge in the graph is incident to at least one vertex in the set

Polynomial time reducible

Consider problem AA and BB

  • There exists a function ff that runs in polynomial time
  • ff can map every instance IAI_A of AA to an instance IBI_B of BB to IBI_B
  • IAI_A is a "yes" iff IBI_B is a "yes"

  • ApBA \leq_p B means that A is polynomial time reducible to BB

  • p\leq_p is a transitive relationship

    • e.g. If ApBA\leq_p B, BpCB\leq_p C then ApCA\leq_p C

NP

  • A problem is in NP if each of its "yes" instance has a concise proof that can be verified in polynomial time

NP-complete

  • A problem AA is NP-complete if every problem in NP can be reduced to AA in polynomial time
  • If two problems are both NP-complete then they can be reduced to each other
  • If a problem is NP-complete, a polynomial algorithm would implie NP=PNP=P since every problem in NP can be reduced to the NPC problem
  • Every problem in NP is also NPC by transitivity

results matching ""

    No results matching ""