Exercise

Reduce Independent Set to Vertex Cover

Convert an independent-set threshold into a vertex-cover threshold by complementing the chosen vertex set.

Problem

Given an undirected graph G=(V,E)G=(V,E) and integer kk, construct in polynomial time an integer k′k' (on the same graph, or an explicitly described isomorphic copy) such that GG has an independent set of size at least kk if and only if GG has a vertex cover of size at most k′k'. Prove both directions.

Hint 1

If SS is independent, every edge must touch V∖SV\setminus S.

Hint 2

Relate the two sizes by ∣V∣|V|.

Guided construction

Independent Set → Vertex Cover

Step 1 of 6
Independent Set to Vertex Cover via set complementAn independent set on a path is complemented to a vertex cover while the threshold becomes n minus k.Same graph G1234

Full solution

Keep the same graph GG and set k′=∣V∣−kk'=|V|-k. The map (G,k)↦(G,∣V∣−k)(G,k)\mapsto(G,|V|-k) is clearly polynomial.

Claim: S⊆VS\subseteq V is an independent set if and only if V∖SV\setminus S is a vertex cover. Indeed, SS is independent exactly when no edge has both endpoints in SS, which is exactly the statement that every edge has at least one endpoint in V∖SV\setminus S.

Therefore GG has an independent set of size kk if and only if it has a vertex cover of size ∣V∣−k|V|-k. (If an independent set larger than kk exists one may discard vertices; dually, a smaller cover may be padded only when the language uses “at most,” which is the standard decision form here.)

Vertex Cover is in NP via a candidate cover of size k′k'. With Independent Set NP-complete, the reduction yields NP-completeness of Vertex Cover.

Checkpoint

This uses set complement on vertices, not graph complement on edges. The parameter must change: k↦∣V∣−kk\mapsto |V|-k.

Common mistakes

  • Leaving k′=kk'=k, which reverses the intended meaning.
  • Confusing Vertex Cover with Edge Cover or Dominating Set.
  • Claiming the identity without checking edges that touch both SS and V∖SV\setminus S.

Provenance note

This is an independently written presentation of the standard IS/VC duality taught in the course graph-problems lectures and aligned with Sipser / Garey–Johnson. It is not transcribed from a single exam prompt.

Sources and verification

  • Merged summary, pp. 55-57
  • Sipser 3e, sec. 7.5
  • Garey-Johnson, GT1 and GT20
  • Catalog mapping: data/exercises.json; statements and solutions are independently written.