Академический Документы
Профессиональный Документы
Культура Документы
Algorithms
Ragesh Jaiswal
CSE, IIT Delhi
Topics
Greedy Algorithms
Divide and Conquer
Dynamic Programming
Network Flow
Computational intractability
Other topics: Randomized algorithms, Computational
Computational Intractability
Introduction
Computational Intractability
Efficient Algorithms: All algorithms that run in time
Computational Intractability
Efficient Algorithms: All algorithms that run in time
Computational Intractability
Efficient Algorithms: All algorithms that run in time
Computational Intractability
Efficient Algorithms: All algorithms that run in time
Computational Intractability
Efficient Algorithms: All algorithms that run in time
Computational Intractability
NP-Complete Problems: This is a large class of problems
Computational Intractability
NP-Complete Problems: This is a large class of problems
problem .
Suppose any arbitrary instance of problem can be solved using
a polynomial number of standard computational steps and a
polynomial number of calls to the black box that solves instance
of problem correctly.
We say that is polynomial time reducible to or .
Computational Intractability
Polynomial time reduction:
Consider two problems and .
Suppose there is a black box that solves arbitrary instances of
problem .
Suppose any arbitrary instance of problem can be solved using
a polynomial number of standard computational steps and a
polynomial number of calls to the black box that solves instance
of problem correctly.
We say that is polynomial time reducible to or .
Is ?
Computational Intractability
Polynomial time reduction:
Consider two problems and .
Suppose there is a black box that solves arbitrary instances of
problem .
Suppose any arbitrary instance of problem can be solved using
a polynomial number of standard computational steps and a
polynomial number of calls to the black box that solves instance
of problem correctly.
We say that is polynomial time reducible to or .
Claim 1: Suppose . If can be solved in polynomial
Computational Intractability
Polynomial-time reductions
vertex cover of .
vertex cover of .
Claim 2: Let be a vertex cover of , then is an
independent set of .
vertex cover of .
Claim 2: Let be a vertex cover of , then is an
independent set of .
Claim 3: has an independent set of size at least if and only if
has a vertex cover of size at most ( ).
vertex cover of .
Claim 2: Let be a vertex cover of , then is an
independent set of .
Claim 3: has an independent set of size at least if and only if
has a vertex cover of size at most ( ).
Given an instance of the independent set problem (, ) create
an instance of the vertex cover problem (, ), make a
query to the black box solving the vertex cover problem and
return the answer that is returned by the black box.
set.
set.
Proof 1: has an independent set of size at least if and
only if has a vertex cover of size at most ( ).
set.
Proof 1: has an independent set of size at least if and
only if has a vertex cover of size at most ( ).
Proof 2:
Minimum-vertex-cover Vertex-cover.
Vertex-cover Independent-set.
Independent-set Maximum-independent-set.
set.
Proof 1: has an independent set of size at least if and
only if has a vertex cover of size at most ( ).
Proof 2:
Minimum-vertex-cover Vertex-cover.
Vertex-cover Independent-set.
Independent-set Maximum-independent-set.
End