COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.

Slides:



Advertisements
Similar presentations
Measuring Time Complexity
Advertisements

CS 345: Chapter 9 Algorithmic Universality and Its Robustness
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
EPPING, LQB381 Flow Diagrams Dr Ron Epping LQB381 Unit Coordinator
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf.
Computability and Complexity 4-1 Existence of Undecidable Problems Computability and Complexity Andrei Bulatov.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Computing Functions with Turing Machines. 2 A function Domain: Result Region: has:
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Lecture 13 Turing machine model of computation –Sequential access memory (tape) –Limited data types and instructions –Graphical representation –Formal.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
UNIVERSAL TURING MACHINES. OUTLINE Review Algorithm Why.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Lecture 07: Formal Methods in SE Finite Automata Lecture # 07 Qaisar Javaid Assistant Professor.
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.
Computability Construct TMs. Decidability. Preview: next class: diagonalization and Halting theorem.
1 COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf.
Theory of Computation, NTUEE Theory of Computation Lecture 04 Undecidability Part of the materials are from Courtesy of Prof. Peter J. Downey Department.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Fundamentals of Informatics Lecture 4 From Turing Machines to Algorithms Bas Luttik.
Becoming Colleagues: Narratives of Early Career Teaching Jill Willis, Leanne Crosswell, Chad Morrison & Andrew Gibson CRICOS No JCRICOS No B.
Recursively Enumerable and Recursive Languages
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.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of the University.
CS 461 – Oct. 28 TM applications –Recognize a language √ –Arithmetic √ –Enumerate a set –Encode a data structure or problem to solve Two kinds of TMs –Decider:
 2004 SDU 1 Algorithm Informally speaking, an algorithm is a collection of simple instructions for carrying out a task. Example:  Elementary arithmetic.
1 1. Design a TM which on a input w  {0, 1}*, shifts w over one position to the right. That is: (s, # w [#]) ├ * (h, # # w [#]). 2. Show the computation.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
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
1 Computing Functions with Turing Machines. 2 A function Domain Result Region has:
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines Space bounds Reductions Complexity classes
The Encoding of TM Motivation for encoding of TM
The Definition of Algorithm
CSE 105 theory of computation
CSE322 Recursive and Recursively enumerable sets
Turing Machines 2nd 2017 Lecture 9.
Decidability Turing Machines Coded as Binary Strings
Computing Functions with Turing Machines
Decidability Turing Machines Coded as Binary Strings
Title slide B with image
Title slide B with image
Formal Languages, Automata and Models of Computation
Subject Name: FORMAL LANGUAGES AND AUTOMATA THEORY
Formal Definitions for Turing Machines
Title slide B with image
Presentation transcript:

COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University pursuant to Part VB of the Copyright Act 1968 (the Act). The material in this communication may be subject to copyright under the Act. Any further reproduction or communication of this material by you may be the subject of copyright protection under the Act. Do not remove this notice.

Universal Turing Machine CSE2303 Formal Methods I Lecture 16

Overview Tables for Turing Machines Encoding Decoding Definition of a Universal Turing Machine Algorithm for a Universal Turing Machine

Assumptions Input Alphabet a b Tape Alphabet a b # Start State –Numbered 1. Halt State –Numbered 2

Example START 1 34 HALT 2 (a, a, R) (b, b, R) ( , , R)

TM for a n b n a n HALT 2START ( , , L) (a, a, R) (b, a, R) (a, , L) (a, a, L) (b, b, L) (a, a, L) (b, b, R) (a, a, R) (a,#, R) (#,#, R) ( , , R)

Table

Conditions to Check Check whether there is a row with a 1 in the From column. Check that there is no row with a 2 in the From column. Check there are no two rows with the same numbers in the From and the same letter in the Read column.

Coding Integer n –Code as: a n b

Coding the Table

Encoding of the TM abaaabaabbbaaabaaabaaaabaaabaaaabababbaa aabaaaabababbaaaabaaaaabaaaaaaaaaabaaaa aababaabaaaaaabaaaaaabaaaabaaaaaabaaaaa aabbabaaaaaaaaabaaaaaaaabaabaaaaaaaaaab aaaaaaaaabaabaaaaaaaaaaabaaaaaaaaabaaaa aaaaaaaaaabaaaaaaaaabababaaaaaaaaaababb bbbbabaabbabab

Code Word Language (CWL) CWL is the regular language (a + ba + b (a + b) 5 )* Words which encode a TM belong to CWL. Note: Not all words in CWL encode a TM

Decode abaaabaaaababaaabababbaaabaaaabababbaaaabaabbabab

Algorithm 1. Count the initial clump of a ’s. 2. Count the next clump of a ’s. 3. Read the next two letters. 4. Read the next two letters. 5. Read the next letter. 6. Repeat until there are no more letters.

Definition An Universal Turing Machine (UTM) is A Turing Machine Can run any TM on any input data.

Example Turing Machine abaaabaaaabababababbaaabaabaaaab Data baa HALT 2START 1 3 (a, a, R) (b, b, R)

Input for UTM #abaaabaaaabababababbaaabaabaaaab$baa  Start of Tape Turing Machine (encoded) Mark to indicate start of Data Data

Algorithm for an UTM Initialize Tape Remember first letter of data Find first instruction Is the next state HALT? Update Tape Remember current letter of data Find next instruction YES NO HALT Find & remember what to write & where to move Update Tape Find & remember what to write & where to move

Revision Know how to encode a Turing Machine. Know how to decode Turing Machine representation. Know what is a Universal Turing Machine, and what it does. Preparation Read –Chapter 25 in the Text Book.