Recursively Enumerable and Recursive Languages

Slides:



Advertisements
Similar presentations
Linear Bounded Automata LBAs
Advertisements

Fall 2006Costas Busch - RPI1 Decidable Languages.
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.
Courtesy Costas Busch - RPI1 More Applications of the Pumping Lemma.
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
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.
Costas Busch - RPI1 Undecidable problems for Recursively enumerable languages continued…
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
Costas Busch - RPI1 NPDAs Accept Context-Free Languages.
Recursively Enumerable and Recursive Languages
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Courtesy Costas Busch - RPI1 NPDAs Accept Context-Free Languages.
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Rules have form String of variables and terminals String of variables and terminals.
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.
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
1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
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.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Fall 2003Costas Busch - RPI1 Turing Machines (TMs) Linear Bounded Automata (LBAs)
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
A Universal Turing Machine
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)
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.
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary.
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.
Decidability.
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.
Chapters 11 and 12 Decision Problems and Undecidability.
The Acceptance Problem for TMs
A Universal Turing Machine
Recursively Enumerable Languages
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
NPDAs Accept Context-Free Languages
Turing’s Thesis Costas Busch - RPI.
NPDAs Accept Context-Free Languages
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
DPDA Deterministic PDA
Decidable Languages Costas Busch - LSU.
Decidability and Undecidability
A Universal Turing Machine
Elementary Questions about Regular Languages
Turing acceptable languages and Enumerators
Undecidable problems:
Formal Languages, Automata and Models of Computation
More Applications of the Pumping Lemma
CS21 Decidability and Tractability
CSCI 2670 Introduction to Theory of Computing
Decidability continued….
Formal Definitions for Turing Machines
Presentation transcript:

Recursively Enumerable and Recursive Languages Costas Busch - RPI

A language is recursively enumerable if some Turing machine accepts it Let be a recursively enumerable language and the Turing Machine that accepts it For string : then halts in a final state if if then halts in a non-final state or loops forever Costas Busch - RPI

A language is recursive if some Turing machine accepts it Definition: A language is recursive if some Turing machine accepts it and halts on any input string In other words: A language is recursive if there is a membership algorithm for it Costas Busch - RPI

Let be a recursive language and the Turing Machine that accepts it For string : if then halts in a final state if then halts in a non-final state Costas Busch - RPI

1. There is a specific language which is not recursively enumerable We will prove: 1. There is a specific language which is not recursively enumerable (not accepted by any Turing Machine) 2. There is a specific language which is recursively enumerable but not recursive Costas Busch - RPI

Non Recursively Enumerable Costas Busch - RPI

We want to find a language that is not Recursively Enumerable This language is not accepted by any Turing Machine Costas Busch - RPI

Consider Turing Machines that accept Consider alphabet Strings: Consider Turing Machines that accept languages over this alphabet. These TM’s are countable Costas Busch - RPI

Example language accepted by Alternative representation Costas Busch - RPI

Costas Busch - RPI

The members of L consist of the strings with 1’s in the diagonal Consider the language The members of L consist of the strings with 1’s in the diagonal Costas Busch - RPI

Costas Busch - RPI

consists of the 0’s in the diagonal Consider the language consists of the 0’s in the diagonal Costas Busch - RPI

Costas Busch - RPI

Theorem: The Language is not recursively Enumerable Proof: Assume for contradiction that is recursively enumerable There must exist some machine that accepts Costas Busch - RPI

Question: Costas Busch - RPI

Answer: Costas Busch - RPI

Question: Costas Busch - RPI

Answer: Costas Busch - RPI

Question: Costas Busch - RPI

Answer: Costas Busch - RPI

Similarly: for any Because either: or Costas Busch - RPI

Therefore, the machine cannot exist Therefore, the language is not recursively enumerable End of Proof Costas Busch - RPI

We want to find a language which Is recursively enumerable But not recursive There is a Turing Machine that accepts the language The machine doesn’t halt on some input Costas Busch - RPI

We will prove that the language Is recursively enumerable but not recursive Costas Busch - RPI

Costas Busch - RPI

is recursively enumerable Theorem: The language is recursively enumerable Proof: We will give a Turing Machine that accepts Costas Busch - RPI

Turing Machine that accepts For any input string Compute , for which Find Turing machine (using an enumeration procedure for Turing Machines) Simulate on input If accepts, then accept End of Proof Costas Busch - RPI

Recursively enumerable Observation: Recursively enumerable Not recursively enumerable (Thus, also not recursive) Costas Busch - RPI

Non Recursively Enumerable Costas Busch - RPI