Reduce Independent Set to Clique
Turn an independent-set instance into a clique instance by complementing the edge set.
Related exam and assignment appearances
These links mark a related idea or close version; only groups explicitly marked as exact repeats in the question map count as duplicates.
Problem
Given an undirected graph and integer , construct in polynomial time a graph and integer such that has an independent set of size if and only if has a clique of size . Prove both directions and argue that the construction is polynomial in the encoded input length.
Hint 1
The same vertex set can serve both instances. What edge relation turns non-adjacency into adjacency?
Hint 2
The parameter need not change if the vertex set is unchanged.
Independent Set → Clique
Full solution
Let be the complement graph on the same vertex set, and set . Listing all non-edges of takes time, which is polynomial in the standard adjacency-matrix or adjacency-list encoding.
A set is independent in exactly when no two vertices of are joined by an edge of . Equivalently, every pair of distinct vertices in is joined by an edge of . Therefore is a clique in . The converse is identical: a clique in has no -edge inside it, so it is independent in . Taking yields the iff.
Membership of CLIQUE in NP is standard: a candidate vertex set of size is a certificate, and every pair can be checked for an edge in polynomial time. Combined with the NP-completeness of Independent Set (via 3SAT), this reduction proves NP-completeness of CLIQUE.
Checkpoint
Distinguish graph complement (flip edges, keep ) from vertex-set complement (used for Vertex Cover, which changes the parameter).
Common mistakes
- Changing unnecessarily, or forgetting that loops and self-pairs are never edges.
- Building the complement incorrectly by deleting vertices instead of flipping edges.
- Proving only one direction of the equivalence.
Provenance note
This is an independently written presentation of a standard identity used throughout the course reduction atlas. It is textbook-aligned (Sipser / Garey–Johnson) and reflected in course lecture notes on IS, CLIQUE, and VC; it is not a verbatim assignment transcript.
Sources and verification
- Merged summary, pp. 55-57
- Sipser 3e, sec. 7.5
- Garey-Johnson, GT19 and GT20
- Catalog mapping:
data/exercises.json; statements and solutions are independently written.