David Evans Turing Machines, Busy Beavers, and Big Questions about Computing.

Slides:



Advertisements
Similar presentations
CS211 Problems: unsolvable, unfeasible and unsolved Topic 2: Halting problem.
Advertisements

David Evans CS200: Computer Science University of Virginia Computer Science Class 30: Models of Computation.
Class 39: Universality cs1120 Fall 2009 David Evans University of Virginia.
Big Words, Busy Beavers, and The Cake of Computing David Evans flickr: mwichary TAPESTRY Workshop University of Virginia 15.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Variants.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Humans, Computers, and Computational Complexity J. Winters Brock Nathan Kaplan Jason Thompson.
Turing’s Bold Claim He could design a simple computer that could solve anything that was computable. He postulated that whatever fancy new computers were.
CS1001 Lecture 23. Overview Incompleteness and the Halting Problem Incompleteness and the Halting Problem Methods in Artificial Intelligence Methods in.
CIS 197 Computers in Society Professor John Peterson Philosophy Week!
1 Foundations of Software Design Fall 2002 Marti Hearst Lecture 29: Computability, Turing Machines, Can Computers Think?
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Turing Machines CS 105: Introduction to Computer Science.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 2: Modeling Computers.
Class 19: Undecidability in Theory and Practice David Evans cs302: Theory of Computation University of Virginia Computer.
Theory of Computation. Computation Computation is a general term for any type of information processing that can be represented as an algorithm precisely.
Design and Analysis of Algorithms
Cs3102: Theory of Computation Class 20: Busy Beavers Spring 2010 University of Virginia David Evans Office hours: I am not able to hold my Thursday morning.
David Evans CS200: Computer Science University of Virginia Computer Science Class 31: Universal Turing Machines.
Computer Science Science of Computation Omer Reingold.
Lecture 14: Church-Turing Thesis Alonzo Church ( ) Alan Turing ( )
Cs3102: Theory of Computation Class 17: Undecidable Languages Spring 2010 University of Virginia David Evans.
Welcome Aboard – Chapter 1 COMP 2610 Dr. James Money COMP
Context-Free Languages Regular Languages Violates Pumping Lemma For RLs Violates Pumping Lemma For CFLs Described by CFG, PDA 0n1n0n1n 0n1n2n0n1n2n Described.
Turing Machines Chapter Plan Turing Machines(TMs) – Alan Turing Church-Turing Thesis – Definitions Computation Configuration Recognizable vs. Decidable.
Cs3102: Theory of Computation Class 18: Proving Undecidability Spring 2010 University of Virginia David Evans.
Class 37: Computability in Theory and Practice cs1120 Fall 2011 David Evans 21 November 2011 cs1120 Fall 2011 David Evans 21 November 2011.
The Turing machine Olena Lastivka. Definition Turing machine is a theoretical device that manipulates symbols on a strip of tape according to a table.
Algorithms and their Applications CS2004 ( ) Dr Stephen Swift 1.2 Introduction to Algorithms.
David Evans Curing Cancer with Your Cell Phone: Why all Sciences are Becoming Computing Sciences.
1 CO Games Development 2 Week 21 Turing Machines & Computability Gareth Bellaby.
David Evans University of Virginia cs1120 Fall Lecture 38: Modeling Computing.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Unsolvability and Infeasibility. Computability (Solvable) A problem is computable if it is possible to write a computer program to solve it. Can all problems.
What Every Biologist, Chemist, and Poet Should Know about Computer Science David Evans UVaCompBio 25 April
Halting Problem Introduction to Computing Science and Programming I.
Cs3102: Theory of Computation Class 14: Turing Machines Spring 2010 University of Virginia David Evans.
1 More About Turing Machines “Programming Tricks” Restrictions Extensions Closure Properties.
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.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 16: Universality and Undecidability.
David Evans CS150: Computer Science University of Virginia Computer Science Lecture 36: Modeling Computing.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Computer Science 101 Theory of Computing. Computer Science is... The study of algorithms, with respect to –their formal properties –their linguistic realizations.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Turing Machines.
Complexity & Computability. Limitations of computer science  Major reasons useful calculations cannot be done:  execution time of program is too long.
Introduction to Computer Engineering CS/ECE 252, Spring 2008 Prof. David A. Wood Computer Sciences Department University of Wisconsin – Madison Adapted.
CSE 311 Foundations of Computing I Lecture 28 Computability: Other Undecidable Problems Autumn 2011 CSE 3111.
Fundamentals of Informatics Lecture 12 The Halting Problem Bas Luttik.
In the news: A recently security study suggests that a computer worm that ran rampant several years ago is still running on many machines, including 50%
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
Chapter 12 Theory of Computation Introduction to CS 1 st Semester, 2014 Sanghyun Park.
CS 154 Formal Languages and Computability April 12 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
CS150: Computer Organization and Architecture Michael D. Wilder, Ph.D.
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:
MA/CSSE 474 Theory of Computation Universal Turing Machine Church-Turing Thesis Delayed due dates for HWs See updated schedule page. No class meeting.
Fall 2013 Lecture 27: Turing machines and decidability CSE 311: Foundations of Computing.
Instructor:Po-Yu Kuo 教師:郭柏佑
Class 30: Models of Computation CS200: Computer Science
CSE 311 Foundations of Computing I
Lecture 37: A Universal Computer
Turing Machines.
Turing Machines, Busy Beavers, and Big Questions about Computing
فصل سوم The Church-Turing Thesis
Instructor:Po-Yu Kuo 教師:郭柏佑
Class 24: Computability Halting Problems Hockey Team Logo
Class 34: Models of Computation CS200: Computer Science
Class 26: Modeling Computing CS150: Computer Science
CO Games Development 2 Week 21 Turing Machines & Computability
Lecture 23: Computability CS200: Computer Science
Presentation transcript:

David Evans Turing Machines, Busy Beavers, and Big Questions about Computing

2 College Science Scholars My Research Group Computer Security: computing in the presence of adversaries Last summer student projects: –Privacy in Social Networks (Adrienne Felt) –Thwarting Spyware (Meghan Knoll) –Hiding Keys in Software (Carly Simpson)

3 College Science Scholars Computer Science = Doing Cool Stuff with Computers?

4 College Science Scholars Toaster Science = Doing Cool Stuff with Toasters?

5 College Science Scholars Computer Science Mathematics is about declarative (“what is”) knowledge; Computer Science is about imperative (“how to”) knowledge The Study of Information Processes –How to describe them –How to predict their properties –How to implement them quickly, cheaply, and reliably Language Logic Engineering

6 College Science Scholars Most Science is About Information Processes Which came first, the chicken or the egg? How can a (relatively) simple, single cell turn into a chicken?

7 College Science Scholars Understanding Information Processes Art: How to describe information processes –Designing programming languages –Inventing algorithms Science: Predicting properties –What resources will a computation consume? –Will a program produce the correct output? Engineering: Implementing processes –How to build hardware and software to efficiently carry out information processes

8 College Science Scholars “Computers” before WWII

9 College Science Scholars Mechanical Computing

10 College Science Scholars Modeling Pencil and Paper “Computing is normally done by writing certain symbols on paper. We may suppose this paper is divided into squares like a child’s arithmetic book.” Alan Turing, On computable numbers, with an application to the Entscheidungsproblem, 1936 #CSSA723 How long should the tape be?...

11 College Science Scholars Modeling Brains Rules for steps Remember a little “For the present I shall only say that the justification lies in the fact that the human memory is necessarily limited.” Alan Turing

12 College Science Scholars Turing’s Model A Start B Input: 0 Write: 1 Move:  Input: 0 Write: 1 Move:  H Input: 1 Write: 1 Move: Halt Input: 1 Write: 1 Move: 

13 College Science Scholars What makes a good model? Copernicus F = GM 1 M 2 / R 2 Newton Ptolomy

14 College Science Scholars Questions about Turing’s Model How well does it match “real” computers? –Can it do everything they can do? –Can they do everything it can do? Does it help us understand and reason about computing?

15 College Science Scholars Power of Turing Machine Can it add? Can it carry out any computation? Can it solve any problem?

16 College Science Scholars Universal Machine Description of a Turing Machine M Input Universal Machine Result tape of running M on Input A Universal Turing Machine can simulate any Turing Machine running on any Input!

17 College Science Scholars Manchester Illuminated Universal Turing Machine, #9 from

18 College Science Scholars Church-Turing Thesis All mechanical computers are equally powerful* There exists a Turing machine that can simulate any mechanical computer Any computer that is powerful enough to simulate a Turing machine, can simulate any mechanical computer *Except for practical limits like memory size, time, energy, etc.

19 College Science Scholars What This Means Your cell phone, watch, iPod, etc. has a processor powerful enough to simulate a Turing machine A Turing machine can simulate the world’s most powerful supercomputer Thus, your cell phone can simulate the world’s most powerful supercomputer (it’ll just take a lot longer and will run out of memory)

20 College Science Scholars Recap A computer is something that can carry out well-defined steps All computers are equally powerful –If a machine can simulate any step of another machine, it can simulate the other machine (except for physical limits) –What matters is the program that defines the steps

21 College Science Scholars Are there problems computers can’t solve?

22 College Science Scholars The “Busy Beaver” Game Design a Turing Machine that: –Uses two symbols (e.g., “0” and “1”) –Starts with a tape of all “0”s –Eventually halts (can’t run forever) –Has N states Goal is to run for as many steps as possible (before halting) Tibor Radó, 1962

23 College Science Scholars Busy Beaver: N = 1 A Start Input: 0 Write: 1 Move: Halt H BB(1) = 1Most steps a 1-state machine that halts can make

24 College Science Scholars A Start B Input: 0 Write: 1 Move:  Input: 0 Write: 1 Move:  H Input: 1 Write: 1 Move: Halt Input: 1 Write: 1 Move:  BB(2) = 6

25 College Science Scholars A Start B C D E F 0/1/R 1/0/L 0/0/R 1/0/R 0/1/L 1/1/R 0/0/L 1/0/L 0/0/R 1/1/R 0/1/L H 1/1/H 6-state machine found by Buntrock and Marxen, 2001

26 College Science Scholars A Start B C D E F 0/1/R 1/0/L 0/0/R 1/0/R 0/1/L 1/1/R 0/0/L 1/0/L 0/0/R 1/1/R 0/1/L H 1/1/H (1730 digits) Best found before 2001, only 925 digits!

27 College Science Scholars Busy Beaver Numbers BB(1) = 1 BB(2) = 6 BB(3) = 21 BB(4) = 107 BB(5) = Unknown! –The best found so far is 47,176,870 BB(6) >

28 College Science Scholars Finding BB(5) Why not just try all 5-state Turing Machines? A Transitions from A on 0: 5 possible states + Halt * 2 possible write symbols * 2 possible directions (L, R) = 24 possibilities * 24 transitions from A on 1 5 states: (24 2 ) 5 ~ 6.3 * 10 13

29 College Science Scholars The Halting Problem Input: a description of a Turing Machine Output: “1” if it eventually halts, “0” if it never halts. Is it possible to design a Turing Machine that solves the Halting Problem? Note: the solver must always finish!

30 College Science Scholars Example A Start B 0/ 0/R H 1/1/H 0/0/L 0 (it never halts) Halting Problem Solver

31 College Science Scholars Example Halting Problem Solver Halting Problem Solver

32 College Science Scholars Impossibility Proof! Halting Problem Solver H X Y 1/1/L */1/R 0/0/H Halting Problem Solver

33 College Science Scholars Impossible to make Halting Problem Solver If it outputs “0” on the input, the input machine would halt (so “0” cannot be correct) If it outputs “1” on the input, the input machine never halts (so “1” cannot be correct) If it halts, it doesn’t halt! If it doesn’t halt, it halts!

34 College Science Scholars Busy Beaver Numbers Input: N (number of states) Output: BB(N) –The maximum number of steps a Turing Machine with N states can take before halting Is it possible to design a Turing Machine that solves the Busy Beaver Problem?

35 College Science Scholars Summary Computer Science is the study of information processes: all about problem solving –Almost all science today depends on computing –All computers are deeply equivalent –Some things cannot be computed by any machine

36 College Science Scholars Challenges Specify a number bigger than BB( ) on an index card Find a TM with 6 states that halts after more than steps

37 College Science Scholars Computer Science at UVa New Interdisciplinary Major in Computer Science for A&S students Take CS150 this Spring –Every scientist needs to understand computing, not just as a tool but as a way of thinking Lots of opportunities to get involved in research groups

38 College Science Scholars Questions