Computability and Complexity 4-1 Existence of Undecidable Problems Computability and Complexity Andrei Bulatov.

Slides:



Advertisements
Similar presentations
Countability. The cardinality of the set A is equal to the cardinality of a set B if there exists a bijection from A to B cardinality? bijection? injection.
Advertisements

Lecture 3 Universal TM. Code of a DTM Consider a one-tape DTM M = (Q, Σ, Γ, δ, s). It can be encoded as follows: First, encode each state, each direction,
Lecture 16 Deterministic Turing Machine (DTM) Finite Control tape head.
CS 461 – Nov. 9 Chomsky hierarchy of language classes –Review –Let’s find a language outside the TM world! –Hints: languages and TM are countable, but.
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]
Complexity 7-1 Complexity Andrei Bulatov Complexity of Problems.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Introduction to Computability Theory
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
FLAC Lecture 19 Turing Machines and Real Life * Reductions Mihai Budiu March 3, 2000.
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata are like Turing Machines with a restriction: The working space of the tape is the space of the.
Complexity 5-1 Complexity Andrei Bulatov Complexity of Problems.
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
Computability and Complexity 7-1 Computability and Complexity Andrei Bulatov Recursion Theorem.
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Decidable and undecidable problems deciding regular languages and CFL’s Undecidable problems.
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.
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 18 Instructor: Paul Beame.
Lecture 27UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 27.
CS21 Decidability and Tractability
1 Introduction to Computability Theory Lecture11: The Halting Problem Prof. Amos Israeli.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
Cardinality of Sets Section 2.5.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
1 Undecidability Reading: Chapter 8 & 9. 2 Decidability vs. Undecidability There are two types of TMs (based on halting): (Recursive) TMs that always.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
1 The Halting Problem and Decidability How powerful is a TM? Any program in a high level language can be simulated by a TM. Any algorithmic procedure carried.
A Universal Turing Machine
CSE 311 Foundations of Computing I Lecture 26 Computability: Turing machines, Undecidability of the Halting Problem Spring
CSE 311 Foundations of Computing I Lecture 29 Computability: Turing machines, Undecidability of the Halting Problem Autumn 2012 CSE 3111.
COMPSCI 102 Introduction to Discrete Mathematics.
CS 3813: Introduction to Formal Languages and Automata Chapter 12 Limits of Algorithmic Computation These class notes are based on material from our textbook,
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.
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.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
Great Theoretical Ideas in Computer Science.
CS 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
Computability and Complexity 2-1 Problems and Languages Computability and Complexity Andrei Bulatov.
To Infinity And Beyond! CS Lecture 11 The Ideal Computer: no bound on amount of memory Whenever you run out of memory, the computer contacts the.
1 Introduction to Turing Machines
Section 2.5. Cardinality Definition: A set that is either finite or has the same cardinality as the set of positive integers (Z + ) is called countable.
1 Chapter 9 Undecidability  Turing Machines Coded as Binary Strings  Universal Turing machine  Diagonalizing over Turing Machines  Problems as Languages.
Turing Machines Sections 17.6 – The Universal Turing Machine Problem: All our machines so far are hardwired. ENIAC
Recall last lecture and Nondeterministic TMs Ola Svensson.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
1 A Universal Turing Machine. 2 Turing Machines are “hardwired” they execute only one program A limitation of Turing Machines: Real Computers are re-programmable.
Fall 2013 Lecture 27: Turing machines and decidability CSE 311: Foundations of Computing.
The Acceptance Problem for TMs
A Universal Turing Machine
This statement is false.
Busch Complexity Lectures: Reductions
Lecture12 The Halting Problem
Reductions Costas Busch - LSU.
Decidable Languages Costas Busch - LSU.
Undecidable problems:
Computability and Complexity
Proposed in Turing’s 1936 paper
Formal Languages, Automata and Models of Computation
Intro to Theory of Computation
Recall last lecture and Nondeterministic TMs
CS21 Decidability and Tractability
More Undecidable Problems
Presentation transcript:

Computability and Complexity 4-1 Existence of Undecidable Problems Computability and Complexity Andrei Bulatov

Computability and Complexity 4-2 Math Prerequisites We can make a list of natural numbers: 1,2,3,4,5,… integers : 0,1,-1,2,-2,… even rationals : These sets are countable

Computability and Complexity 4-3 Math Prerequisites However, we cannot make a list of reals Every real number can be thought to have an infinite decimal representation, say,  = … Suppose we get a list of all real numbers: Then the number where (modulo 10) is not in the list. The set of real numbers is uncountable

Computability and Complexity 4-4 Question Is the set  * countable? uncountable?

Computability and Complexity 4-5 Coding up a TM Any TM may be described by a finite string of 0 ’s and 1 ’s Here is one way to do it: First we code the states: Then we code S as 0, L as 00, R as 000 Then we code the alphabet: (  is coded as an empty string of 0 ’s)

Computability and Complexity 4-6 Now we can code the elements of the transition function: Now we can code the whole machine by giving the whole transition function:

Computability and Complexity 4-7 Universal TM Definition A “Universal Turing Machine” (UTM) is a TM, U, such that, for any TM T and any input x U(T,x) is finite iff T(x) is finite; and the output of U(T,x) encodes the output of T(x) Turing showed in his 1936 paper that UTMs exist One form of UTM uses 3 tapes. To simulate the operation of T on input x : Write the code for T on Tape 1 and the code for x on Tape 2 Write the code for on Tape 3

Computability and Complexity 4-8 Universal TM description Find the first symbol of the coded input on Tape 2; Search the list of transitions on Tape 1 for a transition from that applies to this symbol; Simulate the effect of this transition on the coded input and the stored state (Tapes 2 and 3); Search the list of transitions for one that applies in the new situation; Continue until a final state is reached. (Marvin Minsky designed a UTM using only 7 states and 4 symbols in No one has yet designed a smaller one … )

Computability and Complexity 4-9 Unsolvable problem Problems : functions from {0,1}* to {0,1} (that is problems of recognizing 01-strings) Theorem There exists a problem that cannot be solved by any Turing Machine

Computability and Complexity 4-10 Lemma 1 There are countably many Turing Machines Proof Each TM can be represented as a binary string. Therefore the set set all TMs can be thought as a subset of {0,1}* Since {0,1}* is countable, the set of all TMs is also countable

Computability and Complexity 4-11 Lemma 2 The set of all problems is uncountable. Proof Each function {0,1}*  {0,1} can be represented as a binary string: f(0) f(1) f(00) f(01) f(10) f(11) … Suppose this set is countable. Then we are able to create a list of all problems (This time ) The string, where

Computability and Complexity 4-12 Lemmas 1 and 2 implies that there are a lot more problems than Turing Machines. Therefore at least one of the problems cannot be solved by a TM QED Note that this is an “existence argument”. We cannot point out any particular undecidable problem This is what we shall do in the next lecture