lecture 23 space complexity of dtm. space space m (x) = # of cell that m visits on the work...

21
Lecture 23 Space Complexity of DTM

Upload: karley-manner

Post on 14-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Lecture 23 Space Complexity of DTM

Page 2: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Space

• SpaceM(x) = # of cell that M visits on the work (storage) tapes during the computation on input x.

• If M is a multitape DTM, then the work tapes do not include the input tape and the write-only output tape.

Page 3: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Space Bound

• A DTM is said to have a space bound s(n) if for any input x with |x| < n,

SpaceM(x) < max{1, s(n)}.

Page 4: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Time and Space

• For any DTM with k work tapes,

SpaceM(x) < K (TimeM(x) + 1)

Page 5: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Complexity Classes

• A language L has a space complexity s(n) if it is accepted by a multitape with write-only output tape DTM with space bound s(n).

• DSPACE(s(n)) = {L | L has space

complexity s(n)}

Page 6: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Tape Compression Theorem

• For any function s(n) and any constant c > 0,

DSPACE(s(n)) = DSPACE(c·s(n))

Page 7: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Model Independent Classes

• P = U c>0 DTIME(n )

• EXP = U c > 0 DTIME(2 )

• EXPOLY = U c > 0 DTIME(2 )

• PSPACE = U c > 0 DSPACE(n )

c

cn

n

c

c

Page 8: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Extended Church-Turing Thesis

• A function computable in polynomial time in any reasonable computational model using a reasonable time complexity measure is computable by a DTM in polynomial time.

Page 9: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

P PSPACE

Page 10: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

PSPACE EXPOLY

Page 11: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

A, B ε P imply A U B ε P

Page 12: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

A, B ε P imply AB ε P

Page 13: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

L ε P implies L* ε P

Page 14: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

All regular sets belong to P

Page 15: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

Hierachy Theorem

Page 16: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

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).

Page 17: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

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)) ≠ Φ

Page 18: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

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).

Page 19: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

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)) ≠ Φ

Page 20: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

P EXP

Page 21: Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is

EXP ≠ PSAPACE