Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Presentation of daa on approximation algorithm and vertex cover problem
1. Presentation of Design Analysis and Algorithm on
Approximation Algorithm and
Vertex cover problem
Presented By: Sumit Gyawali
Roll no:325
Bsc csit/3rd year/5th sem
1
3. Approximation Algorithms
It is a way of dealing with NP-completeness for optimization problem.
This technique does not guarantee the best solution.
The goal of an approximation algorithm is to come as close as possible to the
optimum value in a reasonable amount of time which is at most polynomial time.
If we are dealing with optimization problem (maximization or minimization)
with feasible solution having positive cost then it is worthy to look at
approximate algorithm for near optimal solution.
3
4. Continue..
An algorithm has an approximate ratio of ρ(n) if, for any problem of input size
n, the cost C of solution by an algorithm and the cost C* of optimal solution
have the relation as max(C/C*,C*,C) ≤ ρ(n). Such an algorithm is called ρ(n)-
approximation algorithm.
The relation applies for both maximization (0 < C ≤ C*) and minimization (0 <
C* ≤ C) problems. ρ(n) is always greater than or equal to 1. If solution
produced by approximation algorithm is true optimal solution then clearly we
have ρ(n) = 1.
4
5. Vertex cover Problem
A vertex cover of an undirected graph is a subset of its vertices such that for
every edge (u, v) of the graph, either ‘u’ or ‘v’ is in vertex cover. Although the
name is Vertex Cover, the set covers all edges of the given graph.
It is also known as NP Complete problem, i.e., there is no polynomial time
solution for this unless P = NP. There are approximate polynomial time
algorithms to solve the problem though.
Following are some Example:
5
6. Vertex cover Problem
Algorithm:
ApproxVertexCover (G)
{
C { } ;
E’ = E
while E` is not empty
do Let (u, v) be an arbitrary edge of E`
C = C ≈ {u, v}
Remove from E` every edge incident on either u or v
return C
}
6