1 Computing Functions with Turing Machines. 2 A function Domain Result Region has:

Slides:



Advertisements
Similar presentations
ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala
Advertisements

Introduction to Turing Machines
Algorithms Sipser 3.3 (pages ). CS 311 Fall Computability Hilbert's Tenth Problem: Find a process according to which it can be determined.
Fall 2006Costas Busch - RPI1 Turing Machines. Fall 2006Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Computing functions with Turing machines
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Algorithms Sipser 3.3 (pages ). CS 311 Mount Holyoke College 2 Computability Hilbert's Tenth Problem: Find “a process according to which it can.
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Courtesy Costas Busch - RPI1 Turing’s Thesis. Courtesy Costas Busch - RPI2 Turing’s thesis: Any computation carried out by mechanical means can be performed.
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
Courtesy Costas Busch - RPI1 Turing Machines. Courtesy Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Computing Functions with Turing Machines. 2 A function Domain: Result Region: has:
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Costas Busch - RPI1 Turing Machines. Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2004COMP 3351 Turing’s Thesis. Fall 2004COMP 3352 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
Theory of Computation. Computation Computation is a general term for any type of information processing that can be represented as an algorithm precisely.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2011.
1 Language Recognition (11.4) and Turing Machines (11.5) Longin Jan Latecki Temple University Based on slides by Costas Busch from the courseCostas Busch.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
Turing Machines – Decidability Lecture 25 Section 3.1 Fri, Oct 19, 2007.
1 Turing Machines There are languages that are not context-free. What can we say about the most powerful automata and the limits of computation?. Alan.
Procedures for managing workflow components Workflow components: A workflow can usually be described using formal or informal flow diagramming techniques,
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation - Turing Machines Dale Roberts, Lecturer.
Turing Machines (13.5) Based on slides by Costas Busch from the course
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
Theory of computing, part 4. 1Introduction 2Theoretical background Biochemistry/molecular biology 3Theoretical background computer science 4History of.
1 Turing machines Chapter 4, Smith and Kimber. A Turing machine is an abstraction of a human “computer”. Consists of - control, in the form of states -
Recursively Enumerable and Recursive Languages
1 IDT Open Seminar ALAN TURING AND HIS LEGACY 100 Years Turing celebration Gordana Dodig Crnkovic, Computer Science and Network Department Mälardalen University.
1 Turing Machines - Chap 8 Turing Machines Recursive and Recursively Enumerable Languages.
1 Introduction to Turing Machines
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS 154 Formal Languages and Computability April 12 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
How Does Turing Machine Think? Example Chaoyang Li RULE’S If read 1, write 0, go right, repeat. If read 0, write 1, HALT! If read , write 1, HALT! Let’s.
Chapter 9 Turing Machines What would happen if we change the stack in Pushdown Automata into some other storage device? Truing Machines, which maintains.
Turing Machines. The next level of Machine… PDAs improved on FSAs by adding memory. We make the memory more flexible to do more complicated tasks.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary.
CS 154 Formal Languages and Computability April 7 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Mealy Machines Finite State Machines with Outputs given on the transitions.
1 Recursively Enumerable and Recursive Languages.
Turing’s Thesis.
CSE202: Introduction to Formal Languages and Automata Theory
Computable Functions.
Busch Complexity Lectures: Turing Machines
Turing’s Thesis Costas Busch - RPI.
Computing Functions with Turing Machines
Turing Machines 2nd 2017 Lecture 9.
University of Gujrat Department of Computer Science
Chapter 9 TURING MACHINES.
Turing acceptable languages and Enumerators
Turing Machines (11.5) Based on slides by Costas Busch from the course
Theory of Computation Turing Machines.
Decidable Languages Costas Busch - LSU.
Computing Functions with Turing Machines
Theory of computing, part 4
Turing acceptable languages and Enumerators
Formal Languages, Automata and Models of Computation
Formal Definitions for Turing Machines
Presentation transcript:

1 Computing Functions with Turing Machines

2 A function Domain Result Region has:

3 Integer Domain: Unary: Binary: Decimal: We prefer Unary representation: Easier to manipulate

4 A function may have many parameters: Example: Addition function are integers

5 Definition: A function is computable if there is a Turing Machine such that: Initial Configuration Final configuration Domain final state

6 Initial Configuration Final Configuration Domain A function is computable if there is a Turing Machine such that: In other words:

7 Example The function is computable Turing Machine: Input string: unary Output string:unary are integers

8 Start Finish final state

9 Turing machine for function

10 Execution Example: Time 0 Final Result (2)

11 Time 0Time 1

12 Time 2Time 3

13 Time 4Time 5

14 Time 6Time 7

15 Time 8Time 9

16 Time 10Time 11

17 Time 12 HALT & accept

18 Another Example The function is computable Turing Machine: Input string: unary Output string:unary is integer

19 Start Finish final state

20 Turing Machine Pseudocode for 1. Replace every 1 with $ Repeat: 2. Find rightmost $, replace it with 1 3. Go to right end, insert 1 Until no more $ remain

21 Turing Machine for

22 Example Start Finish

23 Another Example The function is computable if

24 Turing Machine for if Input: Output: or

25 Turing Machine Pseudocode: Match a 1 from with a 1 from 1. Repeat Until all or has been matched 2. If a 1 from is not matched erase tape, write 1 else erase tape, write 0

26 Combining Turing Machines

27 Block Diagram Turing Machine inputoutput

28 Example: if Comparer Adder Eraser

29 Turing ’ s Thesis

30 Do Turing machines have the same power with a digital computer?

31 Do Turing machines have the same power with a digital computer? Intuitive answer: Yes There is no formal answer

32 Turing ’ s thesis: Any computation carried out by mechanical means can be performed by Turing Machine (1930)

33 Computer Science Law: A computation is mechanical if and only if it can be performed by a Turing Machine There is no known model of computation more powerful than Turing Machines

34 Definition of Algorithm: An algorithm for function is a Turing Machine which computes

35 When we say: There exists an algorithm Algorithms are Turing Machines We mean: There exists a Turing Machine