Lecture 28 - ApproximationAlgorithms
Lecture 28 - ApproximationAlgorithms
Approximation Algorithms
Introduction to Algorithms
Sungkyunkwan University
Hyunseung Choo
choo@skku.edu
(a) Input graph 𝐺. (b) The edge (𝑏, 𝑐), shown heavy, is the first edge chosen by
APPROX-VERTEX-COVER. Vertices 𝑏 and 𝑐, shown lightly shaded, are added
to the set 𝐶 containing the vertex cover being created. Edges (𝑎, 𝑏), (𝑐, 𝑒), and
(𝑐, 𝑑), shown dashed, are removed since they are now covered by some vertex
in 𝐶.
(c) Edge (𝑒, 𝑓) is chosen; vertices 𝑒 and 𝑓 are added to 𝐶; edges (𝑑, 𝑒) and
(𝑑, 𝑓) are removed. (d) Edge (𝑑, 𝑔) is chosen; vertices 𝑑 and 𝑔 are added to 𝐶
(a) A complete undirected graph. (b) A minimum spanning tree 𝑇 of the graph
computed by MST-PRIM, a is the root vertex. (c) A walk of 𝑇, starting at a. A full
walk of the tree visits the vertices in the order
𝑎; 𝑏; 𝑐; 𝑏; ℎ; 𝑏; 𝑎; 𝑑; 𝑒; 𝑓; 𝑒; 𝑔; 𝑒; 𝑑; 𝑎. A preorder walk of 𝑇 lists a vertex just
when it is first encountered, as indicated by the dot next to each vertex, yielding
the ordering 𝑎; 𝑏; 𝑐; ℎ; 𝑑; 𝑒; 𝑓; 𝑔.
(d) A tour obtained by visiting the vertices in the order given by the preorder
walk, which is the tour 𝐻 returned by APPROX-TSP-TOUR. (e) An optimal tour
𝐻 ∗ for the original complete graph
𝑇 ∗ ≥ max 𝑡𝑖
𝑖
𝑛
1
𝑇∗ ≥ 𝑡𝑖
𝑚
𝑖