Interactive computability Episode 13 0 Hard-play machines (HPMs) Easy-play machines (EPMs) Definition of interactive computability The interactive version.

Slides:



Advertisements
Similar presentations
Part VI NP-Hardness. Lecture 23 Whats NP? Hard Problems.
Advertisements

Turing Machines Memory = an infinitely long tape Persistent storage A read/write tape head that can move around the tape Initially, the tape contains only.
Variants of Turing machines
Cook’s Theorem The Foundation of NP-Completeness.
Foundations of (Theoretical) Computer Science Chapter 3 Lecture Notes (Section 3.2: Variants of Turing Machines) David Martin With.
Complexity 11-1 Complexity Andrei Bulatov Space Complexity.
1 Introduction to Computability Theory Lecture11: Variants of Turing Machines Prof. Amos Israeli.
Complexity ©D.Moshkovitz 1 Turing Machines. Complexity ©D.Moshkovitz 2 Motivation Our main goal in this course is to analyze problems and categorize them.
CS5371 Theory of Computation Lecture 11: Computability Theory II (TM Variants, Church-Turing Thesis)
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Lecture 5 Turing Machines
CHAPTER 3 The Church-Turing Thesis
1 Lecture 13 Turing machine model of computation –Sequential access memory (tape) –Limited data types and instructions –Formal Definition –Equivalence.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
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.
AUTOMATA THEORY VIII.
More Theory of Computing
Turing Machines A more powerful computation model than a PDA ?
Turing Machines Chapter Plan Turing Machines(TMs) – Alan Turing Church-Turing Thesis – Definitions Computation Configuration Recognizable vs. Decidable.
Reduction Episode 9 0 The operation of reduction and the relation of reducibility Examples of reductions The variety of reduction concepts and their systematization.
CSCI 2670 Introduction to Theory of Computing September 28, 2005.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation - Turing Machines Dale Roberts, Lecturer.
Turing Machines. Intro to Turing Machines A Turing Machine (TM) has finite-state control (like PDA), and an infinite read-write tape. The tape serves.
The Church-Turing Thesis Chapter 3 Giorgi Japaridze Theory of Computability.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
D E C I D A B I L I T Y 1. 2 Objectives To investigate the power of algorithms to solve problems. To explore the limits of algorithmic solvability. To.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Turing Machines.
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
Static games Episode 12 0 Some intuitive characterizations of static games Dynamic games Pure computational problems = static games Delays Definition.
1 Section 13.1 Turing Machines A Turing machine (TM) is a simple computer that has an infinite amount of storage in the form of cells on an infinite tape.
The language and formal semantics of computability logic Episode 14 0 The formal language Interpretations Definitions of validity and uniform validity.
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 and Equivalent Models Section 13.1 Turing Machines.
Overview of the theory of computation Episode 3 0 Turing machines The traditional concepts of computability, decidability and recursive enumerability.
Lecture 24UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 24.
1 Turing Machines - Chap 8 Turing Machines Recursive and Recursively Enumerable Languages.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
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 ? ?
Theory of Computational Complexity Yuji Ishikawa Avis lab. M1.
Chapter 9 Turing Machines What would happen if we change the stack in Pushdown Automata into some other storage device? Truing Machines, which maintains.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Theory of Computation Automata Theory Dr. Ayman Srour.
Modeling Arithmetic, Computation, and Languages Mathematical Structures for Computer Science Chapter 8 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesTuring.
Turing’s Thesis Costas Busch - LSU.
8. Introduction to Turing Machines
Time complexity Here we will consider elements of computational complexity theory – an investigation of the time (or other resources) required for solving.
Part VI NP-Hardness.
Turing Machines.
CSE 105 theory of computation
Turing Machines Acceptors; Enumerators
Chapter 9 TURING MACHINES.
COSC 3340: Introduction to Theory of Computation
Chapter 3: The CHURCH-Turing thesis
Turing Machines (TM) Deterministic Turing Machine (DTM)
Games Episode 6 Games as models of interactive computational tasks
8. Introduction to Turing Machines
Turing Machines Complexity ©D.Moshkovitz.
P.V.G’s College of Engineering, Nashik
CSE 105 theory of computation
Variants of Turing machines
Episode 3 Constant games
Episode 10 Static games Some intuitive characterizations of static games Dynamic games Pure computational problems = static games Delays Definition of.
Interactive computability
CSE 105 theory of computation
Presentation transcript:

Interactive computability Episode 13 0 Hard-play machines (HPMs) Easy-play machines (EPMs) Definition of interactive computability The interactive version of the Church-Turing thesis

From TM to HPM 13.1a Our basic model of interactive computation (game-playing by a machine) is what we call “hard-play machines” (HPM). Remember Turing machines (TM) model from Episode 3. We turn them into HPMsEpisode 3 by making the following changes: Input tapeRead-only # 2 $ -Work tape Read-write Output tapeNo direct access Control (transition function) Has a finite number of states, two of which, Start and Halt, are special. Valuation tape Run tape Read-only Move

From TM to HPM 13.1b The valuation tape, serving as “static input”, spells some valuation by listing its values (separated by blanks) for all variables v 0, v 1, v 3,... in the alphabetical order of those variables. If only finitely many values are listed, the default value for all other variables is 0. For example, this tape spells the valuation e with e(v 0 )=20, e(v 1 )=3, e(v 2 )=62 and v(e i )=0 for all i  3. The content of valuation tape remains unchanged throughout the work of the machine Read-only # 2 $ -Work tape Read-write Control (transition function) Has a finite number of states, two of which, Start and Move, are special. Valuation tape Run tapeRead-only

From TM to HPM 13.1c The run tape, serving as “dynamic input”, spells the current position of the play at any moment by listing its moves (in two colors). For example, this run tape spells the position  400,0,1 . Typically the content of this tape keeps changing (“growing”): every time a player makes a move, the move (in the corresponding color) is added to the content of the run tape. Intuitively, the function of the run tape is to make the run fully visible to the machine Read-only # 2 $ -Work tape Read-write Control (transition function) Has a finite number of states, two of which, Start and Move, are special. Valuation tape Run tapeRead-only

How an HPM works 13.2 At the beginning, the machine is in its Start state, the valuation tape spells some valuation e, the work and run tapes are blank, and the three scanning heads are in their leftmost positions. After the computation (play) starts, the machine deterministically goes from one state to another, writes on the work tape, and moves its scanning heads left or right according to its transition function, which precisely prescribes what to do in each particular case, depending on the current state and the contents of the three scanned cells (on the three tapes). Every time the machine enters the Move state, whatever string  is to the left of the work-tape scanning head, will be automatically appended (in green color) to the content of the run tape. This means that the machine has made the move . During each computation step, any finite number  1,...,  n of red strings can also be (nondeterministically) added to the content of the run tape. This means that Environment has made the moves  1,...,  n. Not limiting the number of such moves accounts for the intuition that we do not impose any conditions on the possible relative speed of the environment. The different possibilities of the above nondeterministic updates of the run tape create different branches of computation of the machine on valuation e, and correspond to all possible scenarios of how things can evolve when the machine plays, with e on its valuation tape, against a capricious and unpredictable environment. Each branch B of computation incrementally spells some (possibly infinite) run on the run tape, which we call the run spelled by B.

Computing by an HPM 13.3 Let A be a game and H be an HPM. We say that H computes (or solves, or wins) A iff, for every valuation e and every computation branch B of H on e, where  is the run spelled by B, we have Wn e A  = ⊤. In other words, H computes A iff, for every valuation e (if A is not a constant game), H wins e[A] no matter how the environment behaves. We write to mean that H wins A. H ⊧ A Thesis More precisely, for every (interactive) computational problem A, we have: (a) If some HPM wins A, then A has an algorithmic (effective) solution according to everyone’s reasonable intuition. (b) If A has an algorithmic solution according to anyone’s reasonable intuition, then there is an HPM that wins A. Interactive algorithm = HPM The above is a generalization of the Church-Turing thesis to interactive problems. So, it can be called the “Interactive version of the Church-Turing thesis”.

From HPM to EPM 13.4 An “easy-play machine” (EPM) is defined in the same way as an HPM, with only the following modifications: There is an additional special state in an EPM called the permission state. We call the event of entering this state granting permission. In the EPM model, the environment can (but is not obligated to) make a (one single) move only when the machine grants permission. The machine is considered to win (solve, compute) a game A iff, for every valuation e and every computation branch B of the machine on that valuation, where  is the run spelled by B, we have: (a) As long as Environment does not offend (does not make illegal moves of e[A]) in , the machine grants permission infinitely many times in B. (b) Wn e A  = ⊤. Intuitions: In the EPM model, the machine has full control over the speed of its adversary --- the latter has to patiently wait for explicit permissions from the machine to make moves. The only fairness condition that the machine is expected to satisfy is that, as long as the adversary plays legal, the machine has to grant permission every once in a while; how long that “while” lasts, however, is totally up to the machine.

The equivalence between HPMs and EPMs 13.5 Of the two models of interactive computation, the HPM model is the basic one, as only it directly accounts for our intuitions that we can not or should not assume any restrictions on the behavior of the environment, including its speed. Theorem For every static game A, the following conditions are equivalent: (a) There is an HPM that computes A. (b) There is an EPM that computes A. Moreover, every HPM H can be effectively converted into an EPM E such that E wins every static game that H wins. And vice versa: every EPM E can be effectively converted into an HPM H such that H wins every static game that E wins. But a natural question to ask is “What happens if we limit the relative speed of the environment?”. The answer turns out to be as simple as “Nothing”, as long as static games (the very entities that we agree to call computational problems) are concerned. The EPM model takes the idea of limiting the speed of the environment to the extreme, yet, according to the following theorem, it yields the same class of computable problems. This theorem provides additional evidence in favor of Thesis Even though the EPM model is equivalent to the HPM model, one of the reasons why we still want have it is that describing winning strategies in terms of EPMs is much easier than in terms of HPMs.

Main definition 13.6 Throughout the previous episodes we have been abundantly using the terms “algorithmic winning strategy” (or “algorithmic solution”), “computable”, etc. It is time to at last define these most basic terms formally. Definition Let A be a computational problem (static game). An algorithmic solution, or an algorithmic winning strategy, for A is an HPM or EPM that wins A. And A is said to be computable (winnable) iff it has an algorithmic solution. We write ⊧ A to mean that A is computable.