Classic NPC Problems

3-SAT

Given a CNF formula ϕ\phi, is there a satisfying assignment?

instance ss:

ϕ=(x1x2x3)(x1x2x3)(x1x2x4)\phi = (\overline{x_1} \lor x_2 \lor x_3) \land (x_1 \lor \overline{x_2} \lor x_3) \land (\overline{x_1} \lor x_2 \lor x_4)

certificate t:

x1=true,x2=true,x3=false,x4=falsex_1 = true, x_2 = true, x_3 = false, x_4 = false

Set Cover Problem

Given a set UU of elements, a collection of subsets of UU, S1,S2,S3,...,SmS_1, S_2, S_3, ..., S_m, and an integer KK, does there exist a collection of size K\leq K whose union is equal to UU?

Example:

U={1,2,3,4,5,6,7}U = \{1, 2, 3, 4, 5, 6, 7\}

S1={3,7},S2={2,4},S3={3,4,5,6},S4={1},S5={1,2,6,7}S_1 = \{3, 7\}, S_2 = \{2, 4\}, S_3 = \{3, 4, 5, 6\}, S_4 = \{1\}, S_5 = \{1, 2, 6, 7\}

Let K=2K = 2. Yes, we have S3S_3 and S5S_5.

Vertex Cover Problem

A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Finding a minimum vertex cover is NP-hard. The decision version is NP-complete. To formally state this,

given an undirected graph G=(V,E)G = (V, E), a vertex cover of GG is a subset VVV' \in V such that, for every edge (u,v)E(u, v) \in E, we have either uVu \in V' or vVv \in V'. Is there a vertex cover such that VK|V'| \leq K ?

VC is a special case of set cover. Here is the reduction from vertex cover. So set cover is at least as hard as VC.

Let K=K,U=E,Sv={eE:e  incident  to  v}K = K, U = E, S_v = \{e \in E : e \; incident \; to \; v \}, then set cover of size K\leq K iff vertex cover of size K\leq K.

Clique Cover Problem

Independent Set Problem

In a graph, an independent set is a set of vertices such that no two of which are adjacent. A maximum independent set is an independent set of largest possible size for a given graph G. Again, max independent set is NP-hard. The decision version of independent set is NPC.

Reference

Last updated