Make sure you have read the statement on academic honesty on the homework assignment index page.
Here are three questions concerning this problem:
Input: undirected graph G
for all nodes v
{mark(v) = false;}
edgeSet = empty set;
while there is an edge (x,y) with mark(x) = mark(y) = false
{edgeSet = edgeSet union {(x,y)}
mark(x) = true;
mark(y) = true;
for all nodes z adjacent to either x or y
{mark(z) = true;}
}
return edgeSet;
Explain why this nondetermistic algorithm must produce a vertex cover. What is the approximation ratio of this algorithm for the MAX-VERTEX-COVER optimization problem?
Last modified 7 August 2003