Docsity

Complexity Classes - Computation Theory - Lecture Notes | CMPSCI 601, Study notes of Computer Science

Toggle sidebar
bg1
CMPSCI 601: Complexity Classes Lecture 16
Definition A set

is in DTIME

iff there
exists a deterministic, multi-tape TM,
, and a constant
, such that,
1.
 


,
and
2.

,

halts within
!
"
#
steps.
Definition A set
is in DSPACE
%$&
iff there
exists a deterministic, multi-tape TM,
, and a constant
, such that,
1.
'
, and
2.

,

uses at most
(
$&
#
work-tape
cells.
(The input tape is considered “read-only” and not counted
as space used.)
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Complexity Classes - Computation Theory - Lecture Notes | CMPSCI 601 and more Study notes Computer Science in PDF only on Docsity!

CMPSCI 601: Complexity Classes Lecture 16

Definition A set

is in DTIME ^  ^ iff there

exists a deterministic, multi-tape TM,  , and a constant  , such that,

,

and

,    halts within

steps.

Definition A set

is in DSPACE %$&  iff there

exists a deterministic, multi-tape TM,  , and a constant  , such that,

' , and

,   uses at most

work-tape

cells.

(The input tape is considered “read-only” and not counted

as space used.)

L  DSPACE  

P  DTIME 

  

 (^)  DTIME 

 

PSPACE  DSPACE  

    

   DSPACE^ 

 

Theorem For any functions "   $&   , we

have

DTIME   

DSPACE " 

DSPACE $& 

DTIME  

  

Proof: Let  be a DSPACE %$   TM, let  

, let   

   has at most,

 "! $# 

   (' )^ * 

(^) ',+ )

possible configurations.

Thus, after 

' ,+ )^ steps,    must be in an infinite loop.

Corollary L

P

PSPACE

CMPSCI 601: NSPACE Lecture 16

NSPACE $&^ ^ is the set of problems accepted by NTMs

using at most

$& # space on each branch.

s 2

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

1

t(n)

t(n)

$& space on each branch

Definition REACH is the set of directed graphs such

that there is a path in from $ to .

1

3

11

10

8

6

7

2

5

4

9

s (^) t

Proposition REACH  NL

NSPACE  

Proof: Let

,  

  1. 
  1. for



to do 

  1. if 

 then accept

  1.  



  1. nondeterministically choose new 
  2. if (       ) then reject
  1. reject

This algorithm accepts REACH in NSPACE ( .

2

read-only input w

worktape p

n

c(log n)

h

q

1

CompGraph   

    $  

 ID

   

 States  

 

   ! 



  ID  ID 

ID     ID   

initial ID

accepting ID

Claim:

 

(^) CompGraph     REACH

v

s t

Corollary 16.

NL

P

Proof: REACH  P

P is closed under (logspace) reductions.

That is

  P 

  

 P

Theorem 16.7 (Space Hierarchy Theorem)

Let   be a space constructible function. If

 

 



Then, DSPACE     DSPACE   .

Proof: Construct following DSPACE    machine,  :

Input:  ,

  1. Mark off   tape cells, ( space constructible)
  2. Simulate  ( using space   , time

 

 )

  1. if ( (^)   needs more space or time) then accept
  2. else if (     = accept ) then reject
  3. else accept // (     = reject )

space to simulate   



)

counter





 )

Claim:

   DSPACE     DSPACE  

   DSPACE    by construction.

Suppose

   DSPACE ^  ^.

Let

  ,   uses

  space.

Choose  s.t. 

  

.

Choose 

 ,   + 

   

,

   

On input 

 ,  successfully simulates   +  

 in  

space and  

 ) time.

 



 



  



  



 

CMPSCI 601/CM730-A: The Function Class    Lecture 16

For any complexity class  , define    , the total, polynomially-

bounded functions computable in  as follows:







 



(^) %

and bit-graph   

 



bit-graph 

     

bit  of   is 

Idea:     iff

  1. is polynomially bounded, and,
  2. bit  of   is uniformly computable in  and co- .