




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































5 5 log n (log n)^5 n^5 2 5n
n!
Question: Which problems will we be able to solve in practice?
A working definition. [Cobham 1964, Edmonds 1965, Rabin 1966]. Those with polynomial-time algorithms.
Yes Probably no Shortest path Longest path
Min cut Max cut 2-SAT 3-SAT
Matching 3D-matching
Planar 4-color Planar 3-color Bipartite vertex cover Vertex cover
Suppose we could solve problem Y in polynomial-time. What else could we solve in polynomial time?
Reduction. Problem X polynomial reduces to problem Y, denoted X ≤ (^) P Y, if arbitrary instances of problem X can be solved using:
Suppose we could solve problem Y in polynomial-time. What else could we solve in polynomial time?
Reduction. Problem X polynomial reduces to problem Y, denoted X ≤ (^) P Y, if arbitrary instances of problem X can be solved using:
Input to TC
G=(V,E)
Suppose we could solve problem Y in polynomial-time. What else could we solve in polynomial time?
Reduction. Problem X polynomial reduces to problem Y, denoted X ≤ (^) P Y, if arbitrary instances of problem X can be solved using:
Transforms instance for X to instance(s) for Y
Input to TC
G=(V,E)
The University of Sydney Page 13
Suppose we could solve problem Y in polynomial-time. What else could we solve in polynomial time?
Reduction. Problem X polynomial reduces to problem Y, denoted X ≤ (^) P Y, if arbitrary instances of problem X can be solved using:
Transforms instance for X to instance(s) for Y
Solves Y Solves Y
Solves Y
Input to TC
f 1 (X)
f 2 (X)
fn (X)
Solution to Y on input fi (X).
G=(V,E)
f (^) i (X)=(G,vi ) vertices reachable from v (^) i in G.
The University of Sydney Page 14
Suppose we could solve problem Y in polynomial-time. What else could we solve in polynomial time?
Reduction. Problem X polynomial reduces to problem Y, denoted X ≤ (^) P Y, if arbitrary instances of problem X can be solved using:
Transforms instance for X to instance(s) for Y
Transform solutions for Y to a solution for X
Solves Y Solves Y
Solves Y
Input to TC
f 1 (X)
f 2 (X)
fn (X)
Solution to Y on input fi (X).
G=(V,E)
f (^) i (X)=(G,vi ) vertices reachable from v (^) i
Merge info into G’ = TC(G)
The University of Sydney Page 16
Suppose we could solve problem Y in polynomial-time. What else could we solve in polynomial time?
Reduction. Problem X polynomial reduces to problem Y, denoted X ≤ (^) P Y, if arbitrary instances of problem X can be solved using:
Transforms instance for X to instance(s) for Y
Transform solutions for Y to a solution for X
Solves Y Solves Y
Solves Y
Input to TC
f 1 (X)
f 2 (X)
fk (X)
n·Time(Y)
Solution to Y on input fi (X).
Output for TC
Reduction time?
O(n)
O(n^2 )
TC ≤ (^) P BFS
The University of Sydney Page 17
Suppose we could solve problem Y in polynomial-time. What else could we solve in polynomial time?
Reduction. Problem X polynomial reduces to problem Y, denoted X ≤ (^) P Y, if arbitrary instances of problem X can be solved using:
Transforms instance for X to instance(s) for Y
Transform solutions for Y to a solution for X
Solves Y Solves Y
Solves Y
Input to TC
f 1 (X)
f 2 (X)
fk (X)
k=O(nc)
Solution to Y on input fi (X).
Output for TC
Purpose. Classify problems according to relative difficulty.
Establish equivalence: If X ≤ (^) P Y and Y ≤ (^) P X, then X ≡ (^) P Y.