Docsity

Turing Machines - Computability - Lecture Slide, Slides of Computer Science

Partial preview of the text

Download Turing Machines - Computability - Lecture Slide and more Slides Computer Science in PDF only on Docsity!

1

Turing Machines

2

Agenda

Turing Machines

 Alan Turing  Motivation  Church-Turing Thesis  Definitions  Computation  TM Configuration  Recognizers vs. Deciders

4

First Goal of Turing’s Machine: A model that can compute anything that a human can compute. Before invention of electronic computers the term “computer” actually

referred to a person who’s line of work is to

calculate numerical quantities!

As this is a philosophical endeavor, it can’t really be proved.

Turing’s Thesis: Any “algorithm” can be carried out by one of his machines

5

Second Goal of Turing’s Machine: A model that’s so simple, that can actually prove interesting epistemological results. Eyed Hilbert’s 10th^ problem, as well as a computational analog of Gödel’s Incompleteness Theorem in Logic.

Philosophy notwithstanding, Turing’s programs for cracking the Enigma cryptosystem prove that he really was a true hacker! Turing’s machine is actually easily programmable, if you really get into it. Not practically useful, though… Docsity.com

7

EG Successor Program

Sample Rules:

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!

Let’s see how they are carried out on a

piece of paper that contains the

reverse binary representation of 47:

8

EG Successor Program

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!

10

EG Successor Program

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!

11

EG Successor Program

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!

13

EG Successor Program

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!

14

EG Successor Program

So the successor’s output on 111101 was

000011 which is the reverse binary

representation of 48.

Similarly, the successor of 127 should be

16

EG Successor Program

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!

17

EG Successor Program

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!

19

EG Successor Program

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!

20

EG Successor Program

If read 1, write 0, go right, repeat.

If read 0, write 1, HALT!

If read •, write 1, HALT!