next up previous contents index CD CD Algorithms
Next: Clique and Independent Set Up: Simple Reductions Previous: Hamiltonian Cycles

Independent Set and Vertex Cover

 

The vertex cover problem, discussed more thoroughly in Section gif, asks for a small set of vertices that contacts each edge in a graph. More formally:  

Input: A graph G=(V, E) and integer tex2html_wrap_inline26047 .

Output: Is there a subset S of at most k vertices such that every tex2html_wrap_inline26049 has at least one vertex in S?

  figure6147
Figure: Circled vertices form a vertex cover, the dark vertices an independent set  

It is trivial to find a vertex cover of a graph, for the cover can consist of all of the vertices. More tricky is to cover the edges using as small a set of vertices as possible. For the graph of Figure gif, four of the eight vertices are sufficient to cover.

A set of vertices S of graph G is independent if there are no edges (x,y) where tex2html_wrap_inline26053 and tex2html_wrap_inline26055 , meaning there are no edges between any two vertices in the independent set. As discussed in Section gif, the independent set problem arises in facility location problems. The maximum independent set decision problem is formally defined:  

Input: A graph G and integer tex2html_wrap_inline26057 .

Output: Does there exist an independent set of k vertices in G? Both vertex cover and independent set are problems that revolve around finding special subsets of vertices, the first with representatives of every edge, the second with no edges. If S is the vertex cover of G, the remaining vertices S-V must form an independent set, for if there were an edge with both vertices in S-V, then S could not have been a vertex cover. This gives us a reduction between the two problems:


VertexCover(G,k)

G' = G

k' = |V| - k

Return the answer to IndependentSet(G',k')

Again, a simple reduction shows that the problems are identical. Notice how this translation occurs without any knowledge of the answer. We transform the input, not the solution. This reduction shows that the hardness of vertex cover imples that independent set must also be hard. It is easy to reverse the roles of the two problems in this reduction, thus proving that both of these problems are equally hard.


next up previous contents index CD CD Algorithms
Next: Clique and Independent Set Up: Simple Reductions Previous: Hamiltonian Cycles

Algorithms
Mon Jun 2 23:33:50 EDT 1997