Docsity

Back to Complexity Classes - Lecture Notes | CMPSCI 601, Study notes of Computer Science

Toggle sidebar
bg1
CMPSCI 601: Recall From Last Time Lecture 17
First-Order Logic: A vocabulary to talk about a par-
ticular type of domain, formulas with atomic predicates,
boolean operators, and quantifiers.
Fitch: A proof system including the rules we had for
boolean operators plus new rules for identity and quanti-
fiers.
Main Theorems:
Soundness: (Lecture 14) If
in Fitch, and
, then
.
Completeness: (Lecture 15) If
, meaning that
is true in any model where
is true, then
in Fitch.
Compactness: (Lecture 16) If every finite subset of
has a model, then
has a model.
Incompleteness: (Lecture 16) Any r.e. set of sen-
tences
in the language of number theory either con-
tains some statement that is false in Nor cannot prove
some statement that is true in N.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

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

CMPSCI 601: Recall From Last Time Lecture 17

First-Order Logic: A vocabulary to talk about a par- ticular type of domain, formulas with atomic predicates, boolean operators, and quantifiers.

Fitch: A proof system including the rules we had for boolean operators plus new rules for identity and quanti- fiers.

Main Theorems:

Soundness: (Lecture 14) If    in Fitch, and

, then

Completeness: (Lecture 15) If    , meaning that

is true in any model where

is true, then

in Fitch.

Compactness: (Lecture 16) If every finite subset of

has a model, then

has a model.

Incompleteness: (Lecture 16) Any r.e. set of sen-

tences

in the language of number theory either con- tains some statement that is false in N or cannot prove some statement that is true in N.

Relating Logic to Computability:

We observed that it is easy, certainly primitive recursive, to test whether an alleged proof is valid according to the rules of Fitch.

Corollary to Completeness:

 ^  

FO-VALID
FO-THEOREMS

Note that FO-VALID and FO-THEOREMS are state- ments that are true in any model of the given vocabu- lary. While we constructed a special model where every statement was either provably true or provably false, this is not true in general. An FO-VALID statement about graphs would be true for all graphs, but most interesting statements are true for some graphs and not for others.

CMPSCI 601: Back to Complexity Classes Lecture 17

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/CM730-A: The Function Class

Lecture 17

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-

We rule out functions that are not polynomially bounded because we want to be able to define the complexity class in terms of either the input length or the output length.

CMPSCI 601: NSPACE Lecture 17

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

Proposition REACH  NL

NSPACE   

Proof: Let 

, and let  and  be variables ranging

over vertices.

boolean reach() { b = s; for (int c=0; c < n; c++) { if (b==t) return true; a = b; b = nondeterministicChoice(); if (not edge(a,b)) return false;} return false;}

This algorithm might return true if the input graph is in REACH, and cannot return true if it is not. It uses three

variables of

  bits each, and thus puts the lan-

guage REACH in the class NSPACE   .

Definition 17.2 A problem is complete for a complex-

ity class

iff

, and

We have to redefine the notion of reduction used in defin-

ing the  symbol. Total recursive reductions would make

the concept of NP -completeness unreasonable.

NP -completeness is usually defined in terms of reduc- tions in the class

P , functions computable in polyno- mial time. But we’re going to want to talk about lan- guages complete for P and NL , so we redefine our re- ductions to be in

L.

We’re most interested in natural complete problems for these classes, meaning problems that someone might have posed other than as examples of complete problems. It turns out that the natural complete problems we will see remain complete under any reasonable notion of reduc- tion.

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

NL  P

Proof: We say that REACH  P

P is closed under (logspace) reductions.

That is

P  

  P

The Four Hierarchy Theorems:

Theorem 17.7 If 

 is a

-constructible function;

is

DSPACE, NSPACE, DTIME, or NTIME; and, if

 is

sufficiently smaller than 

 then

  is strictly con-

tained in

 sufficiently smaller than 

 ” means:

^ ^ 

for

DSPACE  NSPACE  NTIME  and

^ ^ 

for

DTIME

We’ll only prove one of these four in lecture:

Theorem 17.8 (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   ) "

3. if ( 

 needs more space or time) then accept

4. else if ( 

 = accept ) then reject

5. else accept // ( 

 = reject )

space to simulate 

counter

co-r.e. complete

Arithmetic Hierarchy (^) r.e. co-r.e. r.e. complete

Polynomial-Time Hierarchy (^) NP complete

co-NP complete co-NP NP

NP^ Uco-NP P

NC 2 log(CFL)

NC

NC

SAC

ThC

"truly feasible"

Regular

NSPACE[log n]

Logarithmic-Time Hierarchy (^) AC

DSPACE[log n]

PSPACE

EXPTIME

Primitive Recursive

Recursive

1

0

1

0