CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Busy Beaver, Universal Machines and the Wolfram Prize James Harland.

Slides:



Advertisements
Similar presentations
CATS’07 1/2/2007James Harland Analysis of Busy Beaver machines via Induction Proofs Analysis of Busy Beaver Machines via Induction Proofs James Harland.
Advertisements

CATS’06 18/1/2006James Harland The Busy Beaver, the Placid Platypus and Other Crazy Creatures The Busy Beaver, the Placid Platypus and Other Crazy Creatures.
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Beaver, Platypus, Unicorn, Zoo …Monash 29 th June,2011 The Busy Beaver, the Placid Platypus and the Universal Unicorn James Harland
Computability and Complexity 4-1 Existence of Undecidable Problems Computability and Complexity Andrei Bulatov.
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
More Turing Machines Sipser 3.2 (pages ).
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
P, NP, PS, and NPS By Muhannad Harrim. Class P P is the complexity class containing decision problems which can be solved by a Deterministic Turing machine.
Complexity ©D.Moshkovitz 1 Turing Machines. Complexity ©D.Moshkovitz 2 Motivation Our main goal in this course is to analyze problems and categorize them.
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.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
Class 19: Undecidability in Theory and Practice David Evans cs302: Theory of Computation University of Virginia Computer.
Prof. Busch - LSU1 Reductions. Prof. Busch - LSU2 Problem is reduced to problem If we can solve problem then we can solve problem.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
The Busy Beaver, the Placid Platypus and the Universal Unicorn Beaver, Platypus, Unicorn … RMIT 1 st August, 2014 James Harland
Cs3102: Theory of Computation Class 17: Undecidable Languages Spring 2010 University of Virginia David Evans.
The Busy Beaver, the Placid Platypus and the Universal Unicorn
Cs3102: Theory of Computation Class 18: Proving Undecidability Spring 2010 University of Virginia David Evans.
Theory of Computing Lecture 15 MAS 714 Hartmut Klauck.
Computability Construct TMs. Decidability. Preview: next class: diagonalization and Halting theorem.
A Universal Turing Machine
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 16: Universality and Undecidability.
BUSY BEAVER PROBLEM by Alejandro Mendoza Rigoberto Fernandez School of Computer Science 04/18/2005.
P Vs NP Turing Machine. Definitions - Turing Machine Turing Machine M has a tape of squares Each Square is capable of storing a symbol from set Γ (including.
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)
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Complexity & Computability. Limitations of computer science  Major reasons useful calculations cannot be done:  execution time of program is too long.
Turing -Recognizable vs. -Decidable
Capabilities of computing systems Numeric and symbolic Computations A look at Computability theory Turing Machines.
Fundamentals of Informatics Lecture 12 The Halting Problem Bas Luttik.
Recursively Enumerable and Recursive Languages
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
1 Introduction to Turing Machines
Unrestricted Grammars
1 1. Which of these sequences correspond to Hamilton cycles in the graph? (a) (b) (c) (d) (e)
Recall last lecture and Nondeterministic TMs Ola Svensson.
Theory of Computational Complexity TA : Junichi Teruyama Iwama lab. D3
1 Recursively Enumerable and Recursive Languages.
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 2006Costas Busch - RPI1 RE languages and Enumerators.
Turing’s Thesis.
Turing’s Thesis Costas Busch - LSU.
The Acceptance Problem for TMs
Busch Complexity Lectures: Reductions
Reductions.
Turing Machines Space bounds Reductions Complexity classes
Reductions Costas Busch - LSU.
Proving Termination and Non-Termination of Busy Beaver Machines
HIERARCHY THEOREMS Hu Rui Prof. Takahashi laboratory
CSCI 2670 Introduction to Theory of Computing
Turing Machines Acceptors; Enumerators
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
Turing acceptable languages and Enumerators
Recall last lecture and Nondeterministic TMs
CS21 Decidability and Tractability
More Undecidable Problems
MA/CSSE 474 Theory of Computation
Intro to Theory of Computation
Presentation transcript:

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Busy Beaver, Universal Machines and the Wolfram Prize James Harland School of CS & IT RMIT University

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Introduction Busy Beavers and the Zany Zoo Small universal Turing machines Wolfram machines The Wolfram prize US$25,000 ‘Constructive’ Computability Machine Learning possibilities

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Busy Beaver function Non-computable Grows faster than any computable function Various mathematical bounds known Seems hopeless for n ≥ 7 Values for n = 5 seem settled 3, 4, 5, 6 symbol versions are popular

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Busy Beaver Problem (Rado, 1962) Turing machine Two-way infinite tape Only tape symbols are 0 and 1 Deterministic Blank on input Question: What is the largest number of 1’s that can be printed by a terminating n-state machine?

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Busy Beaver Function Grows faster than any computable function (!!) Proof: f computable ⇒ so is F(x) = Σ 0 ≤i≤x f(i) + i ² ⇒ k-state machine MF: x 1's → F(x) 1's and x-state machine X: blank → x 1’s M: X then MF then MF M first writes x 1's M then writes F(x) 1's M then writes F(F(x)) 1's

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Busy Beaver Function M has x + 2k states ⇒ bb(n+2k) ≥ 1's output by M = x + F(x) + F(F(x)) Now F(x) ≥ x ² > x + 2k, and F(x) > F(y) when x > y, and so F(F(x)) > F(x+2k) > f(x+2k) So bb(x+2k) ≥ x + F(x) + F(F(x)) > F(F(x)) > F(x+2k) > f(x+2k) ◊

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Known Values (n states, m symbols) nmnamebb(n,m)ff(n,m) 22blue bilby blue bilby938 42ebony elephant ebony elephant≥ 2,050≥ 3,932,964 33white whale≥ 95,524,079≥ 4.3× white whale≥ 4098≥ 47,176,870 25white whale≥ 1.7×10 11 ≥ 7.1× demon duck of doom≥ 1.29× ≥ 3×

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Search Method 1.Generate next machine with n states, m symbols 2.Reject obvious non-terminators 3.Store reasonable candidates 4.Test for termination 5.Attempt ‘sophisticated’ non-termination analysis 6.Give up on this machine 7.Go to 1 unless finished

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Search Results nmMachinesTermitesIguanasDucksWild*Unicorns , , ,440134,04879,328126,7355, (26,911)(10,172)(402)(13,651)(2,273)(413) * Wombats, Snakes, Monkeys, Kangaroos, …

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Dual machines (S1, In, Out, Dir, S2) {1..N} x {0,1} x {0,1} x {l,r} x {1..N} (a, 0, 1, r, c) (In, S1, S2, Dir, Out) {0,1} x {1..N} x {1..N} x {l,r} x {0,1} (0, a, c, r, 1) (naïve) search spaces are the same size Unclear what other relationship exists

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize “Sophisticated” non-termination Use execution history for non-termination conjectures Evaluate conjectures on a “hypothetical” engine Automate the search as much as possible

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Example 11{C}1 → 11{C}111 → 11{C}11111 … Conjecture is 11{C} 1 (11) N → 11{C} 111(11) N Start engine in 11{C} 1 (11) N Terminate with success if we reach 11{C} 111 (11) N (or 11{C} 11 (11) N 1 or …)

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Killer Kangaroos 1 6 {D}0 → 1 18 {D}0 → 1 42 {D}0 (!!!) → 1 90 {D} {D}0 does not occur … 1 N {D}0 → 1 2N+6 {D}0 or alternatively 1 N {D}0 → (11) N {D}0 Then execute on engine as before

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Engine Design L {S}I N R → ???? Run L {S}I R and look for “repeatable” parts L {S}I R → L O {S} R wild wombat L {S}I R → L’ O {S} R slithery snake L {S}I R → L’ O {S} R’ maniacal monkey slithery snake → resilient reptile when |I| < |O|

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Engine State Around 4,000 lines of Ciao Prolog Available on my web page Includes all three heuristics Some killer kangaroos still escape … Analysis does not terminate for all machines (yet!) At least one further heuristic needed

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Addictive Adders 1111{C} {C} {C} {C} {C} {C} {C} {C}11

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Addictive Adders Conjecture is 1 N 1111{C}11 → 1 N {C}11 “Secondary” induction of the form 1 N 0(11) K {C} 1 M → 1 N+1 0(11) K-1 {C} 1 M+1 The forthcoming observant otter heuristic will evaluate this as 1 N+K 0 {C} 1 M+K

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Small Universal Turing machines (Shannon 1956, Watanabe 1961) Minsky 7-state 4-symbol machine (1962) Machines known for the cases: (18,2), (9,3), (6,4), (4,6), (3,9), (2,18) Weakly universal machines known for: (6,2), (3,3), (2,4), (Neary & Woods, Cook) (2,5) (Wolfram)

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Wolfram 2,3 machine

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Wolfram 2,3 machine

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Wolfram 2,3 Machine Doesn’t terminate Simulates termination by generation a particular set of tape symbols Prove universal by encoding a known universal machine Prove non-universal with more care!

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Universal Machines Strong case: M on w ⇒ U on “M+w” M halts on w iff U halts on “M+w” Weak case: M on w ⇒ W on “M+w”, which never halts M halts on w ⇒ W on “M+w” prints T M doesn’t halt on w ⇒ W on “M+w” doesn’t print T

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Blank vs. Arbitrary input Equivalent for termination in general case Not equivalent on size-restricted machines M on w ⇒ M’M on blank where M’ prints w. As w is arbitrary, M’ can be arbitrarily large

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Universal? For: Seems complex (??) Against: Search results suggest low complexity 2,3 class is decidable (paper in Russian), so there is no strongly universal machine Simple reduction would have been found by now

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Finite Decision problems Claim: Any finite decision problem is decidable (!!) 2 N cases, and there is a TM for each case … We call this the bureaucratic TM CaseDecision 1Yes/no 2 …… N

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize ‘Short’ programs Chaitin: An elegant program is the shortest one producing the required output. An algorithmic program is one which is shorter than the bureaucratic program for the same problem. So how do we generate algorithmic programs?

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Machine Learning Possibilities Only about 2% of machine searched required sophisticated techniques (so 98% of cases were trivial) Can we use data mining or learning techniques to find a heuristic to reduce the search space?

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Conclusions & Further Work Plenty of interesting questions … Algorithmic solution (?) for n x m <= 8 Wolfram Prize question Monster termination on other inputs Placid platypus? “Constructive” computability “mine” cases for 3,4,5 for attempt on n = 6

CS&IT Seminar 7/9/2007James Harland Busy Beaver, Universal machines and the Wolfram Prize Any takers? … so who wants to play?