Turing’s halting problem Danny Brown. Barber paradox.

Slides:



Advertisements
Similar presentations
Lecture Ref. handout page
Advertisements

The Halting Problem of Turing Machines. Is there a procedure that takes as input a program and the input to that program, and the procedure determines.
Gödel’s Incompletness Theorem By Njegos Nincic. Overview  Set theory: Background, History Naïve Set Theory  Axiomatic Set Theory  Icompleteness Theorem.
1 COMP 382: Reasoning about algorithms Unit 9: Undecidability [Slides adapted from Amos Israeli’s]
Week 7 - Wednesday.  What did we talk about last time?  Set proofs and disproofs  Russell’s paradox.
04/23/13 Countability Discrete Structures (CS 173) Derek Hoiem, University of Illinois 1.
FIT or unFIT: Change or Die Become Obsolete John Dougherty Computer Science at Haverford College
Zermelo-Fraenkel Axioms Ernst Zermelo ( ) gave axioms of set theory, which were improved by Adolf Fraenkel ( ). This system of axioms called.
Infinity and the Limits of Mathematics Manchester High School for Girls Friday 30 th September 2011 Dr Richard Elwes, University of Leeds.
1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
For slideshow: click “Research and Talks” from The “No WAY!” moment in mathematics.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 18 Instructor: Paul Beame.
Halting Problem. Background - Halting Problem Common error: Program goes into an infinite loop. Wouldn’t it be nice to have a tool that would warn us.
How do I get started? Start with a question about a topic that interests you.
Set Theory A B C.
Problem: Can 5 test tubes be spun simultaneously in a 12-hole centrifuge? What does “balanced” mean? Why are 3 test tubes balanced? Symmetry! Can you merge.
Scientific Method Identify a problem What do you want to know? What question do you want to answer? What problem do you want to solve? An OBSERVATION.
computer
Unsolvability and Infeasibility. Computability (Solvable) A problem is computable if it is possible to write a computer program to solve it. Can all problems.
1 Undecidability Reading: Chapter 8 & 9. 2 Decidability vs. Undecidability There are two types of TMs (based on halting): (Recursive) TMs that always.
Undecidable Languages (Chapter 4.2) Héctor Muñoz-Avila.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
CS 345: Chapter 8 Noncomputability and Undecidability Or Sometimes You Can’t Get It Done At All.
Halting Problem Introduction to Computing Science and Programming I.
Week 7 - Monday.  What did we talk about last time?  Sets.
Relations, Functions, and Countability
The Scientific Method. Problem or Scientific Question –Must be testable –Can’t prove something doesn’t exist.
 What is your topic or question that you want to answer?  Research the topic.
Godel’s proof Danny Brown. Outline of godel’s proof 1.Create a statement that says of itself that it is not provable 2.Show that this statement is provable.
1 Computability CS 101E Spring 2007 Michele Co. 2 So Far In Class We’ve seen the following programming constructs –if, if-else, if-else-if –switch –for.
Great Theoretical Ideas in Computer Science.
Halting Problem and TSP Wednesday, Week 8. Background - Halting Problem Common error: Program goes into an infinite loop. Wouldn’t it be nice to have.
Activity 1-17: Infinity.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
Russell’s Paradox and the Halting Problem Lecture 24 Section 5.4 Wed, Feb 23, 2005.
CSE 311 Foundations of Computing I Lecture 26 Cardinality, Countability & Computability Autumn 2011 CSE 3111.
Chapter 4 Computation Chapter 4: Computation.
CSE 311 Foundations of Computing I Lecture 25 Pattern Matching, Cardinality, Computability Spring
CSE 311: Foundations of Computing Fall 2013 Lecture 26: Pattern matching, cardinality.
CSE 311: Foundations of Computing Fall 2014 Lecture 27: Cardinality.
Recursively Enumerable and Recursive Languages
3:00. 2:59 2:58 2:57 2:56 2:55 2:54 2:53 2:52.
Sets and Size Basic Question: Compare the “size” of sets. First distinction finite or infinite. –What is a finite set? –How can one compare finite sets?
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.
Week 7 - Wednesday.  What did we talk about last time?  Proving the subset relationship  Proving set equality  Set counterexamples  Laws of set algebra.
Recall last lecture and Nondeterministic TMs Ola Svensson.
1 Recursively Enumerable and Recursive Languages.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
Fall 2013 Lecture 27: Turing machines and decidability CSE 311: Foundations of Computing.
Russell’s Paradox Is W in W? In words, W is the set that contains all the sets that don’t contain themselves. If W is in W, then W contains itself. But.
Great Theoretical Ideas In Computer Science
Introduction to Computing Science and Programming I
CIS Automata and Formal Languages – Pei Wang
Self-Reference And Undecidability
The Halting Problem.
Introduction Intro Problem Materials Hypothesis Procedure Results
Recursively Enumerable and Recursive Languages
Universality of Computation
Top Fire Protection Services Ottawa available on Dubinskyconstruction
Confirmation The Raven Paradox.
Decidable Languages Costas Busch - LSU.
Tips for creating a good conclusion
make observations about the world around you
Halting Problem.
SCIENTIFIC METHOD -A PROCESS FOR ANSWERING QUESTIONS OR SOLVING PROBLEMS -NOT NECESSARILY DONE IN ANY ORDER -HAS 6 PARTS.
Formal Languages, Automata and Models of Computation
Scientific Method.
Computability and Undecidability
Presentation transcript:

Turing’s halting problem Danny Brown

Barber paradox

Barber program BARBER(p) If SHAVE(p,p) = N Then SHAVE(barber,p) = Y Else SHAVE(barber,p) = N END

Barber program What happens when we compute BARBER(barber)?

Barber program BARBER(barber) If SHAVE(barber,barber) = N Then SHAVE(barber,barber) = Y Else SHAVE(barber,barber) = N END

Barber program …so what’s the conclusion?

Halting program TEST(p) If HALT(p,p) = N Then HALT(test,p) = Y Else HALT(test,p) = N END

Halting program TEST(p) If HALT(p,p) = N Then HALT(test,p) = Y STOP Else LOOP END

Halting program TEST(test)…?

Halting program TEST(test) If HALT(test,test) = N Then HALT(test,test) = Y STOP Else LOOP END

Halting program …so what’s the conclusion?

Cantor’s diagonal argument # … # … # … # … ………………… …

Cantor’s diagonal argument # … # … # … # … ………………… …

Cantor’s diagonal argument # … # … # … # … ………………… #N …

Continuum Hypothesis

Can’t be disproved (Godel 1940) …and can’t be proved (Cohen 1963)