Exercises Videos Notes Multiple-choice questions

Related books

Graph Coloring Problems Matching Theory Combinatorial Optimization Modern Graph Theory Chromatic Graph Theory Graph Theory Connections in Combinatorial Optimization Combinatorial Optimization: Theory and Algorithms Suggest a Book
5

Vertex cover using DFS

Level: unknown
 

posted Jun 17 '12

kintali gravatar image Shiva Kintali flag of United States
691 1 6 22
http://www.cs.princeton.e...

updated Jun 17 '12

Consider the following algorithm for Vertex Cover of a graph $G$ :

  • Run depth first search (DFS) on $G$.

  • Output the vertices which are not leaves in the DFS tree.

Prove the following :

  • The output is indeed a vertex cover.

  • This algorithm gives a 2-approximation for the minimum vertex cover.

Printable version LaTeX source
delete flag offensive retag edit

Stats

Posted: Jun 17 '12

Seen: 163 times

Last updated: Jun 17 '12