Professional Documents
Culture Documents
Reducibility: Design and Analysis of Algorithms (18CSE107)
Reducibility: Design and Analysis of Algorithms (18CSE107)
Reducibility
Polynomial time Reduction Algorithms
Veningston. K
Computer Science and Engineering
Unit V - Outline
– Reducibility
•Design and Analysis of Algorithms
•2
(18CSE107)
Open questions
• P != NP? we should show that, there is at least one problem outside P for
which “no one could ever produce a polynomial time algorithm”.
Millions of Problems
Scenario
• Chess grandmaster
Why Reducibility?
Millions of Problems
Reducibility - Definition
α β
O(nk)
‘A’ ‘B’
O(nl)
O(nk) + O(nl)
If we have such a conversion,
• NOTE:
– We are doing everything not to say that a problem is easy. ✘
– We are doing everything to say that a problem in hard (or)
difficult
How can we say that a problem is hard?
O(nk)
‘A’ ‘B’
‘A’ is not in P
Problem Conversion?
O(n)
‘A’ ‘B’
O(n)
• NOTE:
– If ‘B’ easy, then ‘A’ is easy i.e. if ‘B’ is in P, ‘A’ is in P
– If ‘A’ is not in P, ‘B’ is not in P i.e. if ‘A’ is hard, ‘B’ is harder
– Conversion works only for Decision problems
– Conversion should take place in polynomial time