Docsity

Regular Sets, CFL's and Recursive Sets - Lecture Notes | CMPSCI 601, Study notes of Computer Science

Partial preview of the text

Download Regular Sets, CFL's and Recursive Sets - Lecture Notes | CMPSCI 601 and more Study notes Computer Science in PDF only on Docsity!

CMPSCI 601: Summary & Conclusions Lecture 27

We’ve studied the main models and concepts of the the-

ory of computation:

Computability : what can be computed in principle

Logic : how can we express our requirements

Complexity : what can be computed in practice

Problem

Mathematical

Concrete

Model

Formal Models of Computation:

FA

 

Regular Expression

PDA

 

CFG

TM

 

Recursive Function

 

Boolean Circuits...

logical formula

CMPSCI 601: Regular Sets Lecture 27

Kleene’s Theorem: Let

be any language.

Then the following are equivalent:



, for some DFA

.



, for some NFA wo transitions



, for some NFA.



, for some regular expression.

Myhill-Nerode Theorem: The language

is regular

iff



has a finite number of equivalence classes. Fur-

thermore, this number of equivalence classes is equal to

the number of states in the minimum-state DFA that ac-

cepts

.

Pumping Lemma for Regular Sets: Let



be a DFA. Let 



. Let  

s.t.

. Then "$#

s.t. the following all

hold:

, and

CMPSCI 601: Recursive Sets Lecture 27

A (partial) function is recursive iff it is computed by

some TM .

Let 

or 

N.

 is a recursive set iff the function  is a (total) recursive

function,



if #  

otherwise

 is a recursively enumerable set (  is r.e.) iff the func-

tion  is a (partial) recursive function,



if #  

otherwise

Th: Recursive = r.e. co-r.e.

Define the primitive recursive functions to be the smallest

class of functions that

contains the Initial functions:

, and 



,

 , and

is closed under Composition , and

is closed under Primitive Recursion

Define the G¨odel recursive functions to be the smallest

class of functions that

contains the Initial functions, and

is closed under Composition , and

is closed under Primitive Recursion , and

is closed under Unbounded Mimimalization

Th: [Kleene] COMP

is a primitive recursive

predicate.

Theorem: A (partial) function is recursive iff it is

G¨odel recursive.

CMPSCI 601: Uses of Diagonalization Lecture 27

^ 

Theorem:

is not r.e.

Hierarchy Theorems: Let 

 be a well behaved

function, and  one of DSPACE, NSPACE, DTIME, NTIME.

If 

 is sufficiently smaller than 

 then  

is

strictly contained in  

.

 sufficiently smaller than 

 ” means





DSPACE

NSPACE

NTIME 



DTIME

Hence P



, L



PSPACE.

But these are the only separations of classes we know!

(Except at the p.r. and above level, and for REG and

CFL ).

Th: The busy beaver function is eventually larger than

any total, recursive function.

Th: Let 

N. T.F.A.E.

1.  is the domain of a partial, recursive function.



or  is the range of a total, recursive function.

3.  is the range of a partial, recursive function.



, some 



where

Soundness Theorem: If



then



.

FO-THEOREMS

FO-VALID

Completeness Theorem: If



then



.

FO-THEOREMS FO-VALID

Corollary:

 

FO-THEOREMS



FO-VALID

Compactness Th: If every finite subset of

has a

model, then

has a model.

G¨odel’s Incompleteness Theorem:

Theory

N is not r.e. and thus not axiomatizable.

CMPSCI 601: Complexity Classes Lecture 27

Th: For 

,

DTIME 

NTIME 

DSPACE 

DSPACE 

DTIME 

Savitch’s Theorem:

For

 

,

NSPACE 

ATIME

DSPACE 

Immerman-Szelepcs´enyi Theorem:

For

 

,

NSPACE 

co- NSPACE 

CMPSCI 601: Complete Problems Lecture 27

Complete for NL: REACH, EMPTY-DFA, EMPTY-

NFA, 2-SAT

Complete for P: CVP, MCVP, EMPTY-CFL, Horn-

SAT, REACH

Complete for NP: TSP, SAT, 3-SAT, 3-COLOR,

CLIQUE, Subset Sum, Knapsack

Complete for PSPACE: QSAT, GEOGRAPHY,

SUCCINT-REACH, REG-EXP-

Complete for r.e.:

, HALT,



 , FO-VALID

Complete for co-r.e.:

,

CFL, EMPTY, FO-SAT

CMPSCI 601: Descriptive Complexity Lecture 27

Theorem:

r.e.



FO "

N

co- r.e.



FO

N

PH



SO

NP



SO"

P



SO " -Horn

AC



CRAM 

 

LH



FO

One can understand the complexity of a problem as the

richness of a logical language that is needed to describe

the problem.

CMPSCI 601: Circuit Complexity Lecture 27

depth



parallel time

width



hardware

number of gates



computational work



sequential time

Theorem: For all , CRAM 

 

AC

AC

ThC

NC

L

NL

sAC

AC

ThC

NC

sAC

. . .

. . .

. . .

. . .

AC

ThC

NC



sAC



. . .

. . .

. . .

. . .

NC



NC



NC



NC



NC

P

NP

Alternation/Circuit Theorem:

Log-space ATM’s with:

time give NC

(

)

alternations give AC

(

)

Alternating TM’s are one good way to design uniform

families of circuits. We used this method to prove

sAC.

First-order logic gives us another way to design uniform

families of circuits. We’ve used this to construct AC

circuits by showing a problem to be in FO.

We need uniformity definitions on our circuit classes to

relate them to ordinary classes. For example, poly-size

circuit families compute languages in P only if they are

at least P -uniform.

CMPSCI 601: Optimization Lecture 27

is an optimization problem iff

For each instance # ,

# is the set of feasible solutions

Each

# has a cost

Z

For minimization problems,

OPT



For maximization problems,

OPT





Let be an algorithm s.t. on any instance # ,

is an -approximation algorithm iff for all # ,

OPT

OPT

exists P approx alg for
poly in n, 1/ ε
some but not all
all
no ε

APPROX

P

FPTAS

Knapsack

PTAS

ETSP

Clique TSP

VertexCover MAX SAT^ ∆TSP

INAPPROX