Top Banner
Chapter 3: The CHURCH-Turing thesis CS314: FORMAL LANGUAGES AND AUTOMATA THEORY L. NADA ALZABEN
19

Chapter 3 : The CHURCH-Turing thesis

Feb 23, 2016

Download

Documents

ace xander

CS314: Formal languages and automata theory L. Nada ALZaben. Chapter 3 : The CHURCH-Turing thesis. Quick Note. don’t forget to read chapter 2 section 2 .1 and 2 .2 Always check the blog for new updates: Cs314pnu.wordpress.com. 3.1 Turing machines (TM). Lecture # 11. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter  3 :  The CHURCH-Turing thesis

Chapter 3: The CHURCH-Turing thesis

CS314: FORMAL LANGUAGES AND AUTOMATA THEORYL. NADA ALZABEN

Page 2: Chapter  3 :  The CHURCH-Turing thesis

2

Quick Note don’t forget to read

chapter 2section 2.1 and 2.2

Always check the blog for new updates:

Cs314pnu.wordpress.com

Computer Science Department

Page 3: Chapter  3 :  The CHURCH-Turing thesis

3

3.1 Turing machines (TM) We have presented in previous lectures the

Finite Automata model (small amount of memory) and Push Down Automata ( unlimited memory with the concept of last in first out.

But they do not serve as models of general purpose computers.

Turing machines are powerful models (Alan Turing-1936). It is similar to FA but with unlimited and unrestricted memory.

Turing machine is more accurate model of general purpose computer.

Computer Science Department

Lecture #11

Page 4: Chapter  3 :  The CHURCH-Turing thesis

4

Turing machine have both accept and reject states.

Turing machine is unlike the PDA in:

Input tape (infinite memory )

Tape Head (Read\Write)

FA part (state diagram)

W string + blank

3.1 Turing machines (TM)

Computer Science Department

Page 5: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

5

3.1 Turing machines (TM) E.g. M1 is a machine that will accept if the

string is a member of B={w#w |w } ….(imagine your self as M1)

Computer Science Department

Page 6: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

6

3.1 Turing machines (TM) E.g. M1 is a machine that will accept if the

string is a member of B={w#w |w } ….(imagine your self as M1)

Computer Science Department

Page 7: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

7

Formal definition of TM Most thing need to be known is the transition

function ( ᵟ) which is described as (ᵟ is deterministic)

Computer Science Department

Page 8: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

8 Halt state. Configuration of TM (the status of the machine is a

setting of three items) e.g.

We say configuration C1 yields configuration C2 if the TM can change from C1 to C2 by one single step.

E.g. yields What about if ??

Formal definition of TM

Computer Science Department

Page 9: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

9 Configuration states may be:

In the start configuration the state is In the Accept configuration the state is In the Reject configuration the state is Accept configuration and Reject

configuration are halting configuration

Formal definition of TM

Computer Science Department

Page 10: Chapter  3 :  The CHURCH-Turing thesis

10

Loop means the TM never halt. TM are deciders if they halt on every input (never

loop) (less time waiting)

Every Turing-decidable is Turing-recognizable but not vice versa

Formal definition of TM

Computer Science Department

Page 11: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

11

TM – example’s

Computer Science Department

Page 12: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

12

Give the formal definition to M2

TM – example’s

Computer Science Department

Page 13: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

13

TM – example’s The formal definition of M2 is:

Computer Science Department

Page 14: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

14

TM – example’s Run input string 0000 on M2:

Computer Science Department

Page 15: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

15

TM – example’s

Computer Science Department

Page 16: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

16

TM – example’s

Computer Science Department

Page 17: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

17

TM – example’s

Computer Science Department

Page 18: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

18

TM – example’s

Computer Science Department

Page 19: Chapter  3 :  The CHURCH-Turing thesis

Computer Science Department

19

TM – example’s Let M be the TM defined by:

Computer Science Department