Problem. CLIQUE
[CLIQUE]
Problem. CLIQUE [CLIQUE]
Given and , does there exist with such that for all distinct vertices ?
- No specification on size: in our example above, there are cliques of size 0 through 3
- Theorem.
-
CLIQUE is NP-complete: i.e. CLIQUE is NP-hard, and CLIQUE is in NP.
- Proof.
-
CLIQUE is in NP: because there exists a verifier that can check a possible clique in polytime.
CLIQUE is NP-hard: because 3SAT (known NP-hard problem) reduces to CLIQUE. How can we do that?
- Proof. (reduction)
-
maps to
- If where is a satisfiable 3CNF formula, then where has a clique of size .
maps to
- If where has no satisfiable assignments, then where has no clique of size .
- junk can map to junk
We can show 3SAT can be solved by finding a clique of size .
- Connect every vertex in a block to every other vertex that is not its inverse.
- Then, every clique of size is a possible satisfiable assignment.
- We can’t have and both being true: which is represented by no connecting edges.
We still need to “decode” to … i.e. .
- Let be a clique of size . We must divy it up so that there is exactly one vertex in each group.
- Given a constructed from a problem, then we find a satisfying .
Aside: suppose we want to ensure there is a clique of at least size . We can make a separate, disconnected clique of vertices. What’s this useful for? Don’t know yet…