270 likes | 385 Views
Lecture 4 Hierarchy Theorem. Space Hierarchy Theorem. Space-constructible function. s(n) is fully space-constructible if there exists a DTM M such that for sufficiently large n and any input x with |x|=n, Space M (x) = s(n). Space Hierarchy. If
E N D
Space-constructible function • s(n) is fully space-constructible if there exists a DTM M such that for sufficiently large n and any input x with |x|=n, SpaceM(x) = s(n).
Space Hierarchy If • s2(n) is a fully space-constructible function, • s1(n)/s2(n) → 0 as n → infinity, • s1(n) > log n, then DSPACE(s2(n)) DSPACE(s1(n)) ≠ Φ
Input tape (read only) Storage tapes Output tape (possibly, write only)
Input tape (read only) Storage tapes Output tape (possibly, write only)
Claim Proof
Claim Proof
Time-constructible function • t(n) is fully time-constructible if there exists a DTM such that for sufficiently large n and any input x with |x|=n, TimeM(x) = t(n).
Time Hierarchy If • t1(n) > n+1, • t2(n) is fully time-constructible, • t1(n) log t1(n) /t2(n) → 0 as n → infinity, then DTIME(t2(n)) DTIME(t1(n)) ≠ Φ
Model Independent Classes c • P = U c>0 DTIME(n ) • EXP = U c > 0 DTIME(2 ) • EXPOLY = U c > 0 DTIME(2 ) • PSPACE = U c > 0 DSPACE(n ) cn c n c
Problems in P • Are they in P? Sorting minimum spanning tree shortest path maximum flow
Problems in P • None of following is in P? Sorting minimum spanning tree shortest path maximum flow • They are all polynomial-time computable functions
P contains only languages or decision problems • A decision problem is a problem who has only two answers, YES and NO. • A decision problem can be described by a language consisting of all inputs at which YES answer would be obtained.
Every optimization problem has a decision version Minimum spanning tree Decision version of minimum spanning tree
For optimization problem with integer value, the decision version is equivalent to it.
Problem in EXP • Traveling Salesman Problem • Minimum Vertex Cover • Hamiltonian Cycle • Satisfiability • Partition
Edmonds Conjecture in 1965 • Traveling Salesman Problem cannot be solved in polynomial time.