Question from Skiena book on Algorithm:
A vertex cover of a graph G = (V,E) is a subset of vertices V ∈ V such that every edge in E contains at least one vertex from V . An independent set of graph G = (V,E) is a subset of vertices V ∈ V such that no edge in E contains both vertices from V
An independent vertex cover is a subset of vertices that is both an independent set and a vertex cover of G. Give an efficient algorithm for testing whether G contains an independent vertex cover. What classical graph problem does this reduce to?
Does anyone know the answer to this question ?
Thanks.
UPDATE
(Need suggestions on this thought)
So far I think this is related to checking whether the graph can be colored using 2 colors, i.e. whether it is bipartite ? If a BFS variant is used to color a graph ,lets say, white and black, then vertices with one of those colors, say white, also forms a vertex cover in some cases.