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
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Advertisements

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.
1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Rules have form String of variables and terminals String of variables and terminals.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Decidable and undecidable problems deciding regular languages and CFL’s Undecidable problems.
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
Fall 2004COMP 3351 The Chomsky Hierarchy. Fall 2004COMP 3352 Non-recursively enumerable Recursively-enumerable Recursive Context-sensitive Context-free.
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.
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
Linear Bounded Automata LBAs
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 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
January 28, 2015CS21 Lecture 101 CS21 Decidability and Tractability Lecture 10 January 28, 2015.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
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.
CS 3240 – Chapter 11.  They may not halt on every possible input!  And not just because the creator of a specific TM was a doofus  This is related.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
CSCI 2670 Introduction to Theory of Computing October 12, 2005.
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Computability Review homework. Video. Variations. Definitions. Enumerators. Hilbert's Problem. Algorithms. Summary Homework: Give formal definition of.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
Recursively Enumerable and Recursive Languages
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.
Lecture 24UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 24.
Lecture 16b Turing Machines Topics: Closure Properties of Context Free Languages Cocke-Younger-Kasimi Parsing Algorithm June 23, 2015 CSCE 355 Foundations.
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals.
 2005 SDU Lecture11 Decidability.  2005 SDU 2 Topics Discuss the power of algorithms to solve problems. Demonstrate that some problems can be solved.
The Church-Turing Thesis
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:
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Another famous undecidable problem: The halting problem.
1 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
Recursively Enumerable and Recursive Languages
Linear Bounded Automata LBAs
CS21 Decidability and Tractability
The Encoding of TM Motivation for encoding of TM
BCS 2143 Theory of Computer Science
COSC 3340: Introduction to Theory of Computation
Turing acceptable languages and Enumerators
CSE322 The Chomsky Hierarchy
Chapter 3: The CHURCH-Turing thesis
Intro to Theory of Computation
Automata and Formal Languages (Final Review)
Decidable Languages Costas Busch - LSU.
Turing acceptable languages and Enumerators
CS21 Decidability and Tractability
CS21 Decidability and Tractability
Formal Languages, Automata and Models of Computation
Decidability and Tractability
Decidability continued….
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.

Non-Computable Languages CSE2303 Formal Methods I Lecture 17

Overview Other Machines CFG and Turing Machines Computable Languages Recursive Languages ALAN ALAN ’ Halting Problem and other problems

Definitions For a Turing Machine T Accept(T) –The set of strings leading to a HALT state. –Called the language accepted by T. Reject(T) –The set of strings that crash during execution. Loop(T) –The set of strings that loop forever.

Example HALT 2START 1 3 ( , , R) (b, b, R) (a, a, R) (b, b, R) Accept(T) = strings with a double aa Reject(T) = strings without a double aa that end in a Loop(T) =  or strings without a double aa that end in b

Other Machines Post Machine –Like a deterministic PDA, but uses a Queue. 2PDA –Like a deterministic PDA, but with 2 Stacks. NTM –A Nondeterministic Turing Machine. kTM –A Turing Machine with k Tapes.

Theorems Any language which a Turing machines can accept can also be defined by any of these machines, and visa-versa. There are algorithms to convert all these machines (including Turing Machines) into each other.

CFG and Turing Machines For every CFG there exists a Turing Machine which accepts the language generated by the grammar. Proof: Take a PDA which accepts the language. Convert the PDA into a NTM, using the algorithm which converts PDA2 into NTM. Convert the NTM into TM

Computable Languages A language L is called computable or recursive enumerable (r.e.) if there exist a Turing Machine T such that: Accept(T) = L

Examples Regular Languages Context Free Languages a n b n a n Church’s Thesis Any language which can be defined by an algorithm.

Recursive A language L is called recursive if there exists a Turing Machine T such that Accept(T) = L Reject(T) = L ’ Loop(T) = 

Examples Regular Languages Context Free Languages a n b n a n

Questions Are all languages computable? Are all computable languages recursive?

ALAN All strings in CWL that either 1. Do not represent a Turing Machine 2. Are not accepted by the Turing Machine they represent.

Examples aababaaaaa aaabaabaaaaa abaaabaaaabaaabaaabaaaabaaabaabababa ababababbabaaabaaabbaaabaaabaaabaaaabaabbaaba

Examples aababaaaaa –In ALAN aaabaabaaaaa –In ALAN abaaabaaaabaaabaaabaaaabaaabaabababa –Not in ALAN ababababbabaaabaaabbaaabaaabaaabaaaabaabbaaba –In ALAN

Is ALAN computable ? Assume ALAN is computable. Let T be the Turing Machine which accepts ALAN. Let C be a word in CWL which encodes T. Question: Does T accept C?

Assume T accepts C. Then C is in ALAN Then the Turing Machine C represents cannot accept C. C represents T. Therefore T cannot accept C. Assume T cannot accept C C represents T So the Turing Machine C represents does not accept C. Therefore C is in ALAN. Therefore T accepts C.

Conclusions ALAN is not computable. Therefore there exists languages which cannot be described by a Turing Machine.

ALAN ’ Contains: All the strings not in CWL All the strings in CWL which are accepted by the Turing Machine they represent. It is computable.

Theorems If L is recursive then L ’ is also recursive. ALAN ’ is not recursive. There exists languages which are computable but not recursive. If L and L ’ are computable then L is recursive.

Halting Problem Does there exist an algorithm which given: A Turing Machine, and Input can decided whether this machine halts on the input?

Other Problems Can we tell whether two different CFGs define the same language? Can we tell whether a CFG is ambiguous? Can we tell whether there exists an unambiguous CFG for a given CFL? Does a given TM have an equivalent FA?

Revision Know the definition of computable languages. Know the definition of Recursive languages. Know examples of recursive and computable languages. Know the definition of language ALAN. Know and understand the Halting Problem.