NP, NP-Completeness & Reductions

independent set

An independent set is the opposite of a clique. Instead of a group where everyone is connected, it is a group where NO two members are connected: a set of mutual strangers, with no edge between any pair. Picture choosing committee members who must have no conflicts of interest: any two who share an edge cannot both serve. The independent set problem asks whether you can find such a conflict-free group of at least a given size k.

Formally, an independent set in an undirected graph G is a set of vertices with no edge between any two of them. The decision problem INDEPENDENT-SET takes G and a number k and asks whether an independent set of size k exists. It is in NP: the candidate set is the certificate, and a verifier checks in polynomial time that none of its internal pairs is an edge. The three sibling problems form a tight cluster: an independent set in G is exactly a clique in the complement graph G-bar, and the complement (within the vertex set) of an independent set is a vertex cover. So a size-k independent set, a size-k clique in G-bar, and a size-(n - k) vertex cover all say the same thing.

Because of these equivalences, INDEPENDENT-SET is NP-complete: hardness flows in from CLIQUE (via complementation) or directly from 3-SAT, and membership in NP is obvious. The trio CLIQUE / INDEPENDENT-SET / VERTEX-COVER is usually taught together precisely because one quick reduction connects all three. Independent set also models real packing-without-conflict tasks, like scheduling non-overlapping events or selecting non-interfering wireless channels, which is why it shows up constantly in applications even though its general version is intractable.

In the path graph 1-2-3-4 (edges 1-2, 2-3, 3-4), the set {1,3} is independent (no edge between 1 and 3), and so is {1,4} and {2,4}. The largest independent set has size 2; you cannot pick three vertices with no edge among them on this short path.

INDEPENDENT-SET: pick k pairwise-nonadjacent vertices. It equals a clique in the complement and the complement of a vertex cover.

Independent set, clique, and vertex cover are three faces of one problem connected by simple reductions. Solve any one efficiently in general and you solve the other two.

Also called
INDEPENDENT-SETstable setmaximum independent set穩定集