0% found this document useful (0 votes)
10 views9 pages

25 VertexCover

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views9 pages

25 VertexCover

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Approximation algorithms

1
Many optimization problems are
solvable in P.
Examples
◦ MST
◦ Minimum Cut
Manyare NP-hard
Examples
◦ MINIMUM_VERTEX_COVER
◦ TSP
2
What can we do for NP-Hard
problems?
As of now, there is no known
polynomial exact algorithm for NP-
Hard problems.
Can we find a near-optimal
solutions in polynomial time?
Means what? An algorithm that
runs in polynomial time and
outputs a solution close to the
optimal solution is called an
approximation algorithm.
3
VERTEX COVER
 Given an undirected graph
G(V,E). Find the minimum vertex
cover.

4
APPROX-VERTEX_COVER(G)

◦ While
 Do let be an arbitrary edge of

 Remove from every edge incident on


either .
◦ Return .

5
VERTEX COVER
 Given an undirected graph
G(V,E). Find the minimum vertex
cover.

6
VERTEX COVER
 Given an undirected graph
G(V,E). Find the minimum vertex
cover.

7
VERTEX COVER
 Given an undirected graph
G(V,E). Find the minimum vertex
cover.

8
 Theorem: APPROX-VERTEX-COVER gives a
solution whose cost is at the most twice the
optimal.
 Proof:
 Let A be the set of edges returned by APPROX-
VERTEX-COVER.
 Note every edge in A is disjoint from every
other edge in it.
 Thus solution cost .
 Optimal solution must have at least one vertex
from each edge of A. Thus Optimal cost = ≥ |A|
= ½*.
 Thus Solution Cost ≤ 2* Optimal Cost.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy