I seem to have found an algorithm but am having trouble understanding it, I was wondering if any of you knew the generic outline of the algorithm.
Here is the link to the algorithm I found on page 2
http://www.cse.iitb.ac.in/~sundar/cs435/lecture23.pdf
Algorithm is simple as that:
- Find unmatched vertex, mark it as not included in minimum vertex cover.
- Mark all matched neighbours of this vertex as included in minimum vertex cover.
- Treat all mates of vertexes from previous step as unmatched vertexes and repeat step 1.
- If recursion ended, repeat from step 1 (that is case of several connected components of graph).
- If there is no unmatched vertexes, take all remaining pairs and mark them any way you like (remember that one vertex in pair has to
be included in minimum vertex cover, and other one has to be not
included).