Formal Languages, Automata and Models of Computation

Slides:



Advertisements
Similar presentations
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Advertisements

Lecture 24 MAS 714 Hartmut Klauck
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
1 COMP 382: Reasoning about algorithms Unit 9: Undecidability [Slides adapted from Amos Israeli’s]
Sep. 29, 2004Tufts University1 Interaction: Conjectures, Results, and Myths Dina Goldin University of Connecticut.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
Introduction to Computability Theory
CPSC 411, Fall 2008: Set 12 1 CPSC 411 Design and Analysis of Algorithms Set 12: Undecidability Prof. Jennifer Welch Fall 2008.
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Rules have form String of variables and terminals String of variables and terminals.
Fall 2004COMP 3351 The Chomsky Hierarchy. Fall 2004COMP 3352 Non-recursively enumerable Recursively-enumerable Recursive Context-sensitive Context-free.
Turing Machines, Transition Systems, and Interaction
CHAPTER 4 Decidability Contents Decidable Languages
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
Linear Bounded Automata LBAs
1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
EXPRESS'011 Turing Machines, Transition Systems, and Interaction Dina Goldin, U.Connecticut Scott Smolka, SUNY at Stony Brook Peter Wegner, Brown University.
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 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 13 Mälardalen University 2010.
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 CO Games Development 2 Week 21 Turing Machines & Computability Gareth Bellaby.
Turing Machines (13.5) Based on slides by Costas Busch from the course
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2005.
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 Linear Bounded Automata LBAs. 2 Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the.
Overview of the theory of computation Episode 3 0 Turing machines The traditional concepts of computability, decidability and recursive enumerability.
1 Introduction to Turing Machines
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 5 Reducibility Some slides are in courtesy.
1 Unit – 5 : STATE MACHINES Syllabus: Languages and Grammars – Finite State Machines State machines and languages – Turing Machines – Computational Complexity.
The Church-Turing Thesis Chapter Are We Done? FSM  PDA  Turing machine Is this the end of the line? There are still problems we cannot solve:
CS 154 Formal Languages and Computability April 5 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Decidability.
The Acceptance Problem for TMs
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
CSE 311 Foundations of Computing I
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
LIMITS OF ALGORITHMIC COMPUTATION
CSE 105 theory of computation
Turing Machines Acceptors; Enumerators
Modeling Computation:
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Turing Machines (11.5) Based on slides by Costas Busch from the course
Jaya Krishna, M.Tech, Assistant Professor
CSCE 411 Design and Analysis of Algorithms
Decidable Languages Costas Busch - LSU.
Formal Languages, Automata and Models of Computation
CSE 105 theory of computation
Instructor: Aaron Roth
Subject Name: FORMAL LANGUAGES AND AUTOMATA THEORY
Decidability continued….
CO Games Development 2 Week 21 Turing Machines & Computability
CSE 105 theory of computation
Presentation transcript:

Formal Languages, Automata and Models of Computation CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 13 Mälardalen University 2007

Content Introduction Universal Turing Machine Chomsky Hierarchy Decidability Reducibility Uncomputable Functions Rice’s Theorem Interactive Computing & Persistent TM’s (Dina Goldin)

http://www.turing.org.uk/turing/ Who was Alan Turing? Founder of computer science, mathematician, philosopher, codebreaker, visionary man before his time. http://www.cs.usfca.edu/www.AlanTuring.net/turing_archive/index.html- Jack Copeland and Diane Proudfoot http://www.turing.org.uk/turing/ The Alan Turing Home Page Andrew Hodges

Alan Turing 1912 (23 June): Birth, London 1926-31: Sherborne School 1930: Death of friend Christopher Morcom 1931-34: Undergraduate at King's College, Cambridge University 1932-35: Quantum mechanics, probability, logic 1935: Elected fellow of King's College, Cambridge 1936: The Turing machine, computability, universal machine 1936-38: Princeton University. Ph.D. Logic, algebra, number theory 1938-39: Return to Cambridge. Introduced to German Enigma cipher machine 1939-40: The Bombe, machine for Enigma decryption 1939-42: Breaking of U-boat Enigma, saving battle of the Atlantic

Alan Turing 1943-45: Chief Anglo-American crypto consultant. Electronic work. 1945: National Physical Laboratory, London 1946: Computer and software design leading the world. 1947-48: Programming, neural nets, and artificial intelligence 1948: Manchester University 1949: First serious mathematical use of a computer 1950: The Turing Test for machine intelligence 1951: Elected FRS. Non-linear theory of biological growth 1952: Arrested as a homosexual, loss of security clearance 1953-54: Unfinished work in biology and physics 1954 (7 June): Death (suicide) by cyanide poisoning, Wilmslow, Cheshire.

Hilbert’s Program, 1900 Hilbert’s hope was that mathematics would be reducible to finding proofs (manipulating the strings of symbols) from a fixed system of axioms, axioms that everyone could agree were true. Can all of mathematics be made algorithmic, or will there always be new problems that outstrip any given algorithm, and so require creative acts of mind to solve?

TURING MACHINES

Turing’s "Machines". These machines are humans who calculate Turing’s "Machines". These machines are humans who calculate. (Wittgenstein) A man provided with paper, pencil, and rubber, and subject to strict discipline, is in effect a universal machine. (Turing)

Standard Turing Machine Tape ...... ...... Read-Write head Control Unit

The Tape No boundaries -- infinite length ...... ...... Read-Write head The head moves Left or Right

...... ...... Read-Write head The head at each time step: 1. Reads a symbol 2. Writes a symbol 3. Moves Left or Right

Example Time 0 ...... Time 1 ...... 1. Reads 2. Writes 3. Moves Left

The Input String Input string Blank symbol ...... ...... head Head starts at the leftmost position of the input string

States & Transitions Write Read Move Left Move Right

Time 1 ...... ...... Time 2 ...... ......

Determinism Not Allowed Turing Machines are deterministic Allowed No lambda transitions allowed in standard TM!

Formal Definitions for Turing Machines

Transition Function

Turing Machine Input alphabet Tape alphabet States Final Transition function Initial state blank

Universal Turing Machine

A limitation of Turing Machines: Turing Machines are “hardwired” they execute only one program Better are reprogrammable machines.

Solution: Universal Turing Machine Characteristics: Reprogrammable machine Simulates any other Turing Machine

Universal Turing Machine simulates any other Turing Machine Input of Universal Turing Machine Description of transitions of Initial tape contents of

Three tapes Description of Universal Turing Machine Tape Contents of State of

We describe Turing machine as a string of symbols: Tape 1 Description of We describe Turing machine as a string of symbols: We encode as a string of symbols

Alphabet Encoding Symbols: Encoding:

State Encoding States: Encoding: Head Move Encoding Move: Encoding:

Transition Encoding Transition: Encoding: separator

Machine Encoding Transitions: Encoding: separator

Tape 1 contents of Universal Turing Machine: encoding of the simulated machine M as a binary string of 0’s and 1’s

A Turing Machine is described with a binary string of 0’s and 1’s. Therefore: The set of Turing machines forms a language: Each string of the language is the binary encoding of a Turing Machine.

Language of Turing Machines 00100100101111, 111010011110010101, …… } (Turing Machine 2) ……

The Chomsky Hierarchy

The Chomsky Language Hierarchy Recursively-enumerable Recursive Context-sensitive Context-free Regular Non-recursively enumerable

Unrestricted Grammars Productions String of variables and terminals

Example of unrestricted grammar

Theorem A language L is recursively enumerable if and only if it is generated by an unrestricted grammar.

Context-Sensitive Grammars Productions String of variables and terminals String of variables and terminals and

The language is context-sensitive:

Theorem A language L is context sensitive if and only if it is accepted by a Linear-Bounded automaton.

Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the only tape space allowed to use.

Linear Bounded Automaton (LBA) Input string Working space in tape Left-end marker Right-end marker All computation is done between end markers.

Observation There is a language which is recursive but not context-sensitive.

Decidability

Consider problems with answer YES or NO. Examples Does Machine M have three states ? Is string w a binary number? Does DFA M accept any input?

A problem is decidable if some Turing machine solves (decides) the problem. Decidable problems: Does Machine M have three states ? Is string w a binary number? Does DFA M accept any input?

The Turing machine that solves a problem answers YES or NO for each instance. Input problem instance YES Turing Machine NO

The machine that decides a problem: If the answer is YES then halts in a yes state If the answer is NO then halts in a no state These states may not be the final states.

YES NO Turing Machine that decides a problem YES and NO states are halting states

Difference between Recursive Languages accept (“Acceptera”) and Decidable problems decide (“Avgöra”) For decidable problems: The YES states may not be final states.

Some problems are undecidable: There is no Turing Machine that solves all instances of the problem.

A famous undecidable problem: The halting problem

The Halting Problem Input: Turing Machine M String w Question: Does M halt on w?

Theorem The halting problem is undecidable. Proof Assume to the contrary that the halting problem is decidable.

M halts on w M doesn’t halt on w There exists Turing Machine H that solves the halting problem YES NO M halts on w M doesn’t halt on w

YES NO Construction of H Input: initial tape contents encoding of M string w

Construct machine H´ If H returns YES then loop forever. If H returns NO then halt.

NO Loop forever YES

Construct machine Input: (machine ) If halts on input Then loop forever Else halt

copy

Run machine with input itself If halts on input Then loop forever Else halt

on input : If halts then loops forever. If doesn’t halt then it halts. CONTRADICTION !

The halting problem is undecidable. This means that The halting problem is undecidable. END OF PROOF

Another proof of the same theorem If the halting problem was decidable then every recursively enumerable language would be recursive.

Theorem Proof The halting problem is undecidable. Assume to the contrary that the halting problem is decidable.

M halts on w M doesn’t halt on w There exists Turing Machine H that solves the halting problem. YES NO M halts on w M doesn’t halt on w

Let L be a recursively enumerable language. Let M be the Turing Machine that accepts L. We will prove that L is also recursive: We will describe a Turing machine that accepts L and halts on any input.

Turing Machine that accepts L and halts on any input reject w NO M halts on w ? YES accept w Halts on final state Run M with input w reject w Halts on non-final state

Contradiction! Therefore L is recursive. Since L is chosen arbitrarily, we have proven that every recursively enumerable language is also recursive. But there are recursively enumerable languages which are not recursive. Contradiction!

Therefore, the halting problem is undecidable. END OF PROOF

A simple undecidable problem: The Membership Problem

The Membership Problem Input: Turing Machine M String w Question: Does M accept w?

Theorem Proof The membership problem is undecidable. Assume to the contrary that the membership problem is decidable.

M accepts w M rejects w There exists Turing Machine H that solves the membership problem YES NO M accepts w M rejects w

Let L be a recursively enumerable language. Let M be the Turing Machine that accepts L. We will prove that L is also recursive: We will describe a Turing machine that accepts L and halts on any input.

YES M accepts w? NO Turing Machine that accepts L and halts on any input YES accept w M accepts w? NO reject w

Contradiction! Therefore L is recursive. Since L is chosen arbitrarily, we have proven that every recursively enumerable language is also recursive. But there are recursively enumerable languages which are not recursive. Contradiction!

Therefore, the membership problem is undecidable. END OF PROOF

Reducibility

Problem A is reduced to problem B. If we can solve problem B then we can solve problem A.

Problem A is reduced to problem B. If B is decidable then A is decidable. If A is undecidable then B is undecidable.

Example the halting problem reduced to the state-entry problem.

The state-entry problem Input: Turing Machine M State q String w Question: Does M enter state q on input w?

Theorem Proof The state-entry problem is undecidable. Reduce the halting problem to the state-entry problem.

Suppose we have an algorithm (Turing Machine) that solves the state-entry problem. We will construct an algorithm that solves the halting problem.

Assume we have the state-entry algorithm: YES M enters q Algorithm for state-entry problem NO M doesn’t enter q

We want to design the halting algorithm: YES M halts on q Algorithm for Halting problem M doesn’t halt on q NO

From any halting state add transitions to q Modify input machine M Add new state q From any halting state add transitions to q single halt state halting states

halts if and only if halts on state

Algorithm for halting problem Input: machine M and string w 1. Construct machine M’ with state q 2. Run algorithm for state-entry problem with inputs: M’, q, w

Halting problem algorithm YES YES State-entry algorithm Generate NO NO

We reduced the halting problem to the state-entry problem. Since the halting problem is undecidable, it must be that the state-entry problem is also undecidable. END OF PROOF

Another example The halting problem reduced to the blank-tape halting problem. Input: Turing Machine M Question: Does M halt when started with a blank tape?

Theorem Proof The blank-tape halting problem is undecidable. Reduce the halting problem to the blank-tape halting problem.

Suppose we have an algorithm for the blank-tape halting problem. We will construct an algorithm for the halting problem.

M doesn’t halt on blank tape Assume we have the blank-tape halting algorithm YES M halts on blank tape Algorithm for blank-tape halting problem NO M doesn’t halt on blank tape

YES NO M halts on w M doesn’t We want to design the halting algorithm: Algorithm for halting problem YES NO M halts on w M doesn’t halt on w

Construct a new machine On blank tape writes Then continues execution like step 1 step2 if blank tape execute then write with input

halts on input string if and only if halts when started with blank tape.

Algorithm for halting problem Inputs: machine and string 1. Construct 2. Run algorithm for blank-tape halting problem with input

YES NO Halting problem algorithm YES Blank-tape Generate halting

We reduced the halting problem to the blank-tape halting problem. Since the halting problem is undecidable, the blank-tape halting problem is also undecidable. END OF PROOF

Summary of Undecidable Problems Halting Problem Does machine M halt on input w? Membership problem Does machine M accept string w? In other words: Is a string w a member of a recursively enumerable language L?)

Blank-tape halting problem Does machine M halt when starting on blank tape? State-entry Problem: Does machine M enter state q on input w?

Uncomputable Functions

Uncomputable Functions Domain Range A function is uncomputable if it cannot be computed for all of its domain.

Example An uncomputable function: maximum number of moves until any Turing machine with n states halts when started with the blank tape.

Theorem Proof is computable. Function is uncomputable. Assume to the contrary that is computable. Then the blank-tape halting problem is decidable.

Algorithm for blank-tape halting problem Input: machine 1. Count states of : 2. Compute 3. Simulate for steps starting with empty tape If halts then return YES otherwise return NO

Contradiction! Therefore, the blank-tape halting problem must be decidable. However, we know that the blank-tape halting problem is undecidable. Contradiction!

Therefore, function is uncomputable. END OF PROOF

Rice’s Theorem

Definition Non-trivial properties of recursively enumerable languages: any property possessed by some (not all) recursively enumerable languages.

Some non-trivial properties of recursively enumerable languages: L is empty L is finite L contains two different strings of the same length

Rice’s Theorem Any non-trivial property of a recursively enumerable language is undecidable.

We will prove some non-trivial properties without using Rice’s theorem.

Theorem Proof For any recursively enumerable language L it is undecidable whether it is empty. Proof We will reduce the membership problem to the problem of deciding whether L is empty.

Membership problem: Does machine M accept string w?

Let M be the machine that accepts L Assume we have the empty language algorithm: YES L(M) empty Algorithm for empty language problem NO L(M) non-empty

YES M accepts w NO M rejects w We will design the membership algorithm: YES M accepts w Algorithm for membership problem NO M rejects w

First construct machine When M enters a final state, compare original input string with w. Accept if original input is the same as w.

if and only if is not empty

Algorithm for membership problem Inputs: machine and string 1. Construct 2. Determine if is empty YES: then NO: then

Membership algorithm NO YES Check if construct YES is empty NO

We reduced the empty language problem to the membership problem. Since the membership problem is undecidable, the empty language problem is also undecidable. END OF PROOF

Decidability …continued…

Theorem For a recursively enumerable language L it is undecidable whether L is finite. Proof We will reduce the halting problem to the finite language problem.

YES L(M) finite NO L(M) not finite Let M be the machine that accepts L Assume we have the finite language algorithm: YES L(M) finite Algorithm for finite language problem NO L(M) not finite

YES M halts on w NO M doesn’t We will design the halting problem algorithm: Algorithm for halting problem YES NO M halts on w M doesn’t halt on w

First construct machine . Initially simulates M on input w. When M enters a halt state, accept any input (infinite language). Otherwise accept nothing (finite language).

halts on is not finite. if and only if

Algorithm for halting problem: Inputs: machine and string 1. Construct 2. Determine if is finite YES: then doesn’t halt on NO: then halts on

Machine for halting problem construct Check if is finite YES NO

We reduced the finite language problem to the halting problem. Since the halting problem is undecidable, the finite language problem is also undecidable. END OF PROOF

Theorem For a recursively enumerable language L it is undecidable whether L contains two different strings of same length. Proof We will reduce the halting problem to the two strings of equal length- problem.

L(M) does not contain two equal length strings NO Let M be the machine that accepts L: Assume we have the equal-strings algorithm: YES L(M) contains Algorithm for two-strings problem L(M) does not contain two equal length strings NO

YES NO M halts on w M doesn’t We will design the halting problem algorithm: Algorithm for halting problem YES NO M halts on w M doesn’t halt on w

First construct machine Initially simulates M on input w. When M enters a halt state, accept symbols a and b. (two equal length strings)

halts on if and only if accepts and (two equal length strings)

Algorithm for halting problem Inputs: machine and string 1. Construct 2. Determine if accepts two strings of equal length YES: then halts on NO: then doesn’t halt on

YES NO Machine for halting problem YES Check if construct NO has two equal length strings

We reduced the two strings of equal length - problem to the halting problem. Since the halting problem is undecidable, the two strings of equal length problem is also undecidable. END OF PROOF

Rice's theorem: (Henry Gordon Rice ) If S is a non-trivial property of Turing-acceptable languages, then the problem ‘Does L(M) have the property S? is undecidable. Any nontrivial property of the language recognized by a Turing machine is undecidable. (Only trivial properties of programs are algorithmically decidable. Undecidability is not the exception when it comes to recursively enumerable sets, it is the rule. ) If  is a set of Turing-acceptable languages, containing some but not all such languages, no TM can decide for an arbitrary Turing-acceptable language L if L belongs to  or not.

Example Given a Turing machine M, is it possible to decide if all strings accepted by M start and end with the same symbol?

Undecidable Problem is about non-trivial property of a language. There exist TM’s with given property, and TM’s without.

Formally  = { L | TM acceptable languages With strings that start and end with the same symbol. }

Interaction: Conjectures, Results, and Myths Dina Goldin Univ. of Connecticut, Brown University http://www.cse.uconn.edu/~dqg

Fundamental Questions Underlying Theory of Computation What is computation? How is computation modeled?

Shared Wisdom (from our undergraduate Theory of Computation courses) computation: finite transformation of input to output input: finite size (e.g. string or number) closed system: all input available at start, all output generated at end behavior: functions, transformation of input data to output data Church-Turing thesis: Turing Machines capture this (algorithmic) notion of computation Mathematical worldview: All computable problems are function-based.

The Mathematical Worldview “The theory of computability and non-computability [is] usually referred to as the theory of recursive functions... the notion of TM has been made central in the development." Martin Davis, Computability & Unsolvability, 1958 “Of all undergraduate CS subjects, theoretical computer science has changed the least over the decades.” SIGACT News, March 2004 “A TM can do anything that a computer can do.” Michael Sipser, Introduction to the Theory of Computation, 1997

The Operating System Conundrum* Real programs, such as operating systems and word processors, often receive an unbounded amount of input over time, and never "finish" their task. Turing machines do not model such ongoing computation well… [TM entry, Wikipedia] If a computation does not terminate, it’s “useless” – but aren’t OS’s useful?? * Enigma

Rethinking Shared Wisdom: (what do computers do?) computation: finite transformation of input to output input: finite-size (string or number) closed system: all input available at start, all output generated at end behavior: functions, algorithmic transformation of input data to output data Church-Turing thesis: Turing Machines capture this (algorithmic) notion of computation computation: ongoing process which performs a task or delivers a service dynamically generated stream of input tokens (requests, percepts, messages) open system: later inputs depend on earlier outputs and vice versa (I/O entanglement, history dependence) behavior: processes, components, control devices, reactive systems, intelligent agents Wegner’s conjecture: Interaction is more powerful than algorithms

Example: Driving home from work Algorithmic input: a description of the world (a static “map”) Output: a sequence of pairs of #s (time-series data) - for turning the wheel - for pressing gas/break Similar to classic AI search/planning problems.

Driving home from work (cont.) But… in a real-world environment, the output depends on every grain of sand in the road (chaotic behavior). Can we possibly have a map that’s detailed enough? ? Worse yet… the domain is dynamic. The output depends on weather conditions, and on other drivers and pedestrians. We can’t possibly be expected to predict that in advance! Nevertheless the problem is solvable! Google “autonomous vehicle research”

Driving home from work (cont.) The problem is solvable interactively. Interactive input: stream of video camera images, gathered as we are driving Output: the desired time-series data, generated as we are driving similar to control systems, or online computation A paradigm shift in the conceptualization of computational problem solving.

Sequential Interaction Sequential interactive computation: system continuously interacts with its environment by alternately accepting an input string and computing a corresponding output string. Examples: method invocations of an object instance in an OO language a C function with static variables queries/updates to single-user databases recurrent neural networks - control systems - online computation - transducers - dynamic algorithms - embedded systems

Sequential Interaction Thesis Whenever there is an effective method for performing sequential interactive computation, this computation can be performed by a Persistent Turing Machine Universal PTM: simulates any other PTM Need additional input describing the PTM (only once) Example: simulating Answering Machine (simulate AM, will-do), (record hello, ok), (erase, done), (record John, ok), (record Hopkins, ok), (playback, John Hopkins), … Simulation of other sequential interactive systems is analogous.

Church-Turing Thesis Revisited Whenever there is an effective method for obtaining the values of a mathematical function, the function can be computed by a Turing Machine Common Reinterpretation (Strong Church-Turing Thesis) A TM can do (compute) anything that any computer can do!

Church-Turing Thesis Revisited The equivalence of the two is a myth the function-based behavior of algorithms does not capture all forms of computation this myth has been dogmatically accepted by the CS community Turing himself would have denied it in the same paper where he introduced what we now call Turing Machines, he also introduced choice machines, as a distinct model of computation choice machines extend Turing Machines to interaction by allowing a human operator to make choices during the computation.

Origins of the Church-Turing Thesis Myth A TM can do anything that a computer can do. Based on several claims: A problem is solvable if there exists a Turing Machine for computing it. A problem is solvable if it can be specified by an algorithm. Algorithms are what computers do. Each claim is correct in isolation provided we understand the underlying assumptions Together, they induce an incorrect conclusion TMs = solvable problems = algorithms = computation

Deconstructing the Turing Thesis Myth (1) TMs = solvable problems Assumes: All computable problems are function-based. Reasons: Theory of Computation started as a field of mathematics; mathematical principles were adopted for the fundamental notions of computation, identifying computability with the computation of functions, as well as with Turing Machines. The batch-based modus operandi of original computers did not lend itself to other conceptualizations of computation.

Deconstructing the Turing Thesis Myth (2) solvable problems = algorithms Assumes: Algorithmic computation is also function based; i.e., the computational role of an algorithm is to transform input data to output data. Reasons: Original (mathematical) meaning of “algorithms” E.g. Euclid’s greatest common divisor algorithm Original (Knuthian) meaning of “algorithms” “An algorithm has zero or more inputs, i.e., quantities which are given to it initially before the algorithm begins.“ [Knuth’68]

Deconstructing the Turing Thesis Myth (3) algorithms = computation Reasons: The ACM Curriculum (1968): Adopted algorithms as the central concept of CS without explicit agreement on the meaning of this term. Textbooks: When defining algorithms, the assumption of their closed function-based nature was often left implicit, if not forgotten “An algorithm is a recipe, a set of instructions or the specifications of a process for doing something. That something is usually solving a problem of some sort.” [Rice&Rice’69] “An algorithm is a collection of simple instructions for carrying out some task. Commonplace in everyday life, algorithms sometimes are called procedures or recipes...” [Sipser’97]

The Shift to Interaction in CS Algorithmic Interactive Computation = transforming input to output Computation = carrying out a task over time Logic and search in AI Intelligent agents, partially observable environments, learning Procedure-oriented programming Object-oriented programming Closed systems Open systems Compositional behavior Emergent behavior Rule-based reasoning Simulation, control, semi-Markov processes

The Interactive Turing Test From answering questions to holding discussions. Learning from -- and adapting to -- the questioner. “Book intelligence” vs. “street smarts”. “It is hard to draw the line at what is intelligence and what is environmental interaction. In a sense, it does not really matter which is which, as all intelligent systems must be situated in some world or other if they are to be useful entities.” [Brooks]

Modeling Interactive Computation: PTMs in Perspective Many other interactive models Reactive [MP] and embedded systems Dataflow, I/O automata [Lynch], synchronous languages, finite/pushdown automata over infinite words Interaction games [Abramsky], online algorithms [Albers] TM extensions: on-line Turing machines [Fischer], interactive Turing machines [Goldreich]... Concurrency Theory Focuses on communication (between concurrent agents/processes) rather than computation [Milner] Orthogonal to the theory of computation and TMs. What makes PTMs unique? Provably more expressive than TMs. Bridging the gap between concurrency theory (labeled transition systems) and traditional TOC.

Future Work: 3 conjectures Theory of Sequential Interaction conjecture: notions analogous to computational complexity, logic, and recursive functions can be developed for sequential interaction computation Multi-stream interaction From hidden variables to hidden interfaces conjecture: multi-stream interaction is more powerful than sequential interaction [Wegner’97] Formalizing indirect interaction Interaction via persistent, observable changes to the common environment In contrast to direct interaction (via message passing) conjecture: direct interaction does not capture all forms of multi-agent behaviors

References http://www.cse.uconn.edu/~dqg/papers/ [Wegner’97] Peter Wegner Why Interaction is more Powerful than Algorithms Communications of the ACM, May 1997 [EGW’04] Eugene Eberbach, Dina Goldin, Peter Wegner Turing's Ideas and Models of Computation book chapter, in Alan Turing: Life and Legacy of a Great Thinker, Springer 2004 [I&C’04] Dina Goldin, Scott Smolka, Paul Attie, Elaine Sonderegger Turing Machines, Transition Systems, and Interaction Information & Computation Journal, 2004 [GW’04] Dina Goldin, Peter Wegner The Church-Turing Thesis: Breaking the Myth presented at CiE 2005, Amsterdam, June 2005 to be published in LNCS