- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Wave)
An independent set of a graph $G=(V,E)$ is a subset $V' \subseteq V$ of vertices such that each edge in $E$ is incident on at most one vertex in $V'$. The independent-set problem is to find a maximum-size independent set in $G$.
I have tried the following:
A non-deterministic Turing machine first "guesses" the set and then it verifies that this set contains the maximum number of vertices such that each edge of the graph is incident on at most one vertex in the set in $O(V+E)$ time.
Thus, the independent-set problem is in NP.
Let $(G_1,k)$ be an arbitrary instance of the clique problem, where $k$ is the number of the vertices of the clique.
We can construct an instance of the independent-set problem as follows:
Let $G=G_1$.
The graph $G_1$ has a clique iff there is an independent set of size $k$.
So we have that $G_1$ has a clique iff $G$ has a maximum-size independent set.
So the instance of the independent-set problem has a solution iff the initial instance of the clique problem has a solution.
Thus, the independent- set problem is NP-complete.
But, this proposition:
[m]So we have that $G_1$ has a clique iff $G$ has a maximum-size independent set. [/m]
would hold if we would require that each edge in $E$ is incident on at least one vertex in $V'$, right?
What could we say in our case?
An independent set of a graph $G=(V,E)$ is a subset $V' \subseteq V$ of vertices such that each edge in $E$ is incident on at most one vertex in $V'$. The independent-set problem is to find a maximum-size independent set in $G$.
- Formulate a related decision problem for the independent-set problem, and prove that it is NP-complete. (Hint: Reduce from the Clique problem)
I have tried the following:
A non-deterministic Turing machine first "guesses" the set and then it verifies that this set contains the maximum number of vertices such that each edge of the graph is incident on at most one vertex in the set in $O(V+E)$ time.
Thus, the independent-set problem is in NP.
Let $(G_1,k)$ be an arbitrary instance of the clique problem, where $k$ is the number of the vertices of the clique.
We can construct an instance of the independent-set problem as follows:
Let $G=G_1$.
The graph $G_1$ has a clique iff there is an independent set of size $k$.
So we have that $G_1$ has a clique iff $G$ has a maximum-size independent set.
So the instance of the independent-set problem has a solution iff the initial instance of the clique problem has a solution.
Thus, the independent- set problem is NP-complete.
But, this proposition:
[m]So we have that $G_1$ has a clique iff $G$ has a maximum-size independent set. [/m]
would hold if we would require that each edge in $E$ is incident on at least one vertex in $V'$, right?
What could we say in our case?