Docsity

Turing Machines: Lecture 4 - Introduction to Recursive Functions and Sets, Study notes of Computer Science

Toggle sidebar
bg1
CMPSCI 601: Turing Machines Lecture 4
๎˜€ ๎˜ ๎˜‚๎˜„๎˜ƒ ๎˜…๎˜‡๎˜†๎˜ˆ๎˜…๎˜Š๎˜‰๎˜‹๎˜…๎˜๎˜Œ๎˜๎˜Ž
๎˜ƒ
: finite set of states;
๎˜Œ ๎˜ ๎˜ƒ
๎˜†
: finite set of symbols;
๎˜‘
๎˜…๎˜“๎˜’ ๎˜ ๎˜†
๎˜‰
:
๎˜ƒ ๎˜” ๎˜† ๎˜• ๎˜‚๎˜„๎˜ƒ ๎˜– ๎˜—๎˜™๎˜˜๎˜›๎˜š๎˜œ๎˜Ž๎˜๎˜” ๎˜† ๎˜” ๎˜—๎˜Ÿ๎˜ž ๎˜… ๎˜• ๎˜…"! ๎˜š
๎˜Œ
๎˜‘
1 1 0 1
๎˜’ ๎˜’ #$#%#
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Turing Machines: Lecture 4 - Introduction to Recursive Functions and Sets and more Study notes Computer Science in PDF only on Docsity!

CMPSCI 601: Turing Machines Lecture 4

: finite set of states;

: finite set of symbols; 

CMPSCI 601: Example TM Lecture 4

mvRt.tm

comment find

memorize change change & erase

to 0

to 1

CMPSCI 601: TM History Lecture 4

Hilbertโ€™s Program [1901]: Give a complete axiomization of all of mathematics!

Such a complete axiomization would have provided a mechanical procedure to churn out exactly all true state- ments in mathematics.

This led to active interest in 1930โ€™s in the question: โ€œWhat is a mechanical procedure?โ€

Church: Lambda calculus

Gยจodel: Recursive function

Kleene: Formal system

Markov: Markov algorithm

Post: Post machine

Turing: Turing machine

Fact: The above models are all define exactly the same class of โ€œcomputableโ€ functions.

Church-Turing Thesis: The intuitive idea of โ€œeffectively computableโ€ is captured by the precise definition of โ€œcom- putableโ€ in any of the above models.

CMPSCI 601: TM Philosophy Lecture 4

โ€œWhy is a Turing machine as powerful as any other com- putational model?โ€

Intuitive answer: Imagine any computational device. It has:

Finitely many states

Ability to scan limited amount per step: one page at

a time

Ability to print limited amount per step: one page at

a time

Next state determined by current state and page cur-

rently being read (but what about randomization?)

Note: Without the potentially infinite supply of tape cells, paper, extra disks, extra tapes, etc. we have just a (poten- tially huge) finite state machine.

The PC on your desk, with 20 GB of hard disk is a finite state machine with over

states!

This is better modeled as a TM with a bounded number of states, and an โ€œinfinite tapeโ€, actually meaning a finite memory that expands whenever necessary.

Remark 4.2 There is an easy to compute 1:1 and onto map between

and N. Thus we can think of the contents of a TM tape as a natural number and talk about N

N being recursive. (We may visit this issue in HW#2.)

Partial function N

N is a total function 

N

where  N. A partial function that is not total is called

strictly partial. If 

N

CMPSCI 601: Recursive, r.e. sets Lecture 4

Definition 4.3 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

Proposition 4.4 If is recursive then is r.e.

Proof: Suppose is recursive and let

be the TM com-

puting  .

Build

simulating

but diverging if

. Thus

computes  .

CMPSCI 601: Recursive

r.e. co- r.e. Lecture 4

If  is any class of sets, define co- to be the class of sets whose complements are in  ,

co-





Theorem 4.6 is recursive iff and are both r.e.

Thus, Recursive

r.e. co- r.e.

Proof: If

Recursive then   is a recursive function.

Thus so is  

   !  



Thus, and are both recursive and thus both r.e.

Suppose

r.e. co- r.e.

Define 

on input

1. for 

to 

  1. run

for  steps.

  1. if

in  steps then return (1)

  1. run

for  steps.

  1. if

in  steps then return (0)

Thus, 

  and thus

Recursive.