Max independent set problem is NP-hard

programming

Statement

Proof

We know the Independent set of a given size is NP-complete, therefore it is NP-hard. We can reduce the Independent set of a given size to max independent set problem using the straight forward Many-one reduction.

Suppose we have a graph $G$ and integer $g \geq 1$. Pass this graph $G$ to the max independent set problem. This step is $O(1)$ as we need to do no manipulation.

The solution provides $I$ a max independent set. If $\vert I \vert \geq g$ then return $I$, otherwise return no. This step takes $O(\vert V \vert)$ so it is polynomial in the input size.

If the graph $G$ has an independent set of size at least $g$ then its max independent set is of size $\geq g$, so we return true in the case.

If the graph $G$ has a max independent set of size greater than $g$ then it has an independent set of size $\geq g$ by definition.