Linear Bounded Automata LBAs

Slides:



Advertisements
Similar presentations
Fall 2006Costas Busch - RPI1 Reductions. Fall 2006Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
Advertisements

Fall 2006Costas Busch - RPI1 Time Complexity. Fall 2006Costas Busch - RPI2 Consider a deterministic Turing Machine which decides a language.
Fall 2006Costas Busch - RPI1 A Universal Turing Machine.
Fall 2006Costas Busch - RPI1 Turing Machines. Fall 2006Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2003Costas Busch - RPI1 Properties of Context-Free languages.
Fall 2006Costas Buch - RPI1 Simplifications of Context-Free Grammars.
Context-Free Languages
Fall 2006Costas Busch - RPI1 Decidable Languages.
CS 461 – Nov. 9 Chomsky hierarchy of language classes –Review –Let’s find a language outside the TM world! –Hints: languages and TM are countable, but.
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 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
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 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.
Fall 2006Costas Busch - RPI1 The Chomsky Hierarchy.
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)
Prof. Busch - LSU1 Reductions. Prof. Busch - LSU2 Problem is reduced to problem If we can solve problem then we can solve problem.
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
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)
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2005.
CS 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
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.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
Recursively Enumerable and Recursive Languages
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
NPDAs Accept Context-Free Languages
NPDAs Accept Context-Free Languages
CSE322 Chomsky classification
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
CSE322 The Chomsky Hierarchy
Jaya Krishna, M.Tech, Assistant Professor
Decidable Languages Costas Busch - LSU.
The Post Correspondence Problem
Turing acceptable languages and Enumerators
Undecidable problems:
Formal Languages, Automata and Models of Computation
Decidability continued….
Automata, Grammars and Languages
The Chomsky Hierarchy Costas Busch - LSU.
Presentation transcript:

Linear Bounded Automata LBAs Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the only tape space allowed to use Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Linear Bounded Automaton (LBA) Input string Working space in tape Left-end marker Right-end marker All computation is done between end markers Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI We define LBA’s as NonDeterministic Open Problem: NonDeterministic LBA’s have same power with Deterministic LBA’s ? Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Example languages accepted by LBAs: LBA’s have more power than NPDA’s LBA’s have also less power than Turing Machines Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI The Chomsky Hierarchy Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Example unrestricted grammar: Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Theorem: A language is recursively enumerable if and only if is generated by an unrestricted grammar Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Context-Sensitive Grammars: Productions String of variables and terminals String of variables and terminals and: Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI The language is context-sensitive: Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Theorem: A language is context sensistive if and only if is accepted by a Linear-Bounded automaton Observation: There is a language which is recursive but not context-sensitive Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI The Chomsky Hierarchy Non-recursively enumerable Recursively-enumerable Recursive Context-sensitive Context-free Regular Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Decidability Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary number? Does DFA accept any input? Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI A problem is decidable if some Turing machine decides (solves) the problem Decidable problems: Does Machine have three states ? Is string a binary number? Does DFA accept any input? Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI The Turing machine that decides (solves) a problem answers YES or NO for each instance of the problem Input problem instance YES Turing Machine NO Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI The machine that decides (solves) a problem: If the answer is YES then halts in a yes state If the answer is NO then halts in a no state These states may not be final states Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Turing Machine that decides a problem YES states NO states YES and NO states are halting states Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Difference between Recursive Languages and Decidable problems For decidable problems: The YES states may not be final states Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Some problems are undecidable: which means: there is no Turing Machine that solves all instances of the problem A simple undecidable problem: The membership problem Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI The Membership Problem Input: Turing Machine String Question: Does accept ? Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Theorem: The membership problem is undecidable (there are and for which we cannot decide whether ) Proof: Assume for contradiction that the membership problem is decidable Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Thus, there exists a Turing Machine that solves the membership problem accepts YES NO rejects Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Let be a recursively enumerable language Let be the Turing Machine that accepts We will prove that is also recursive: we will describe a Turing machine that accepts and halts on any input Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Turing Machine that accepts and halts on any input YES accept accepts ? NO reject Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Therefore, is recursive Since is chosen arbitrarily, every recursively enumerable language is also recursive But there are recursively enumerable languages which are not recursive Contradiction!!!! Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Therefore, the membership problem is undecidable END OF PROOF Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Another famous undecidable problem: The halting problem Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI The Halting Problem Input: Turing Machine String Question: Does halt on input ? Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Theorem: The halting problem is undecidable (there are and for which we cannot decide whether halts on input ) Proof: Assume for contradiction that the halting problem is decidable Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Thus, there exists Turing Machine that solves the halting problem YES halts on NO doesn’t halt on Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Construction of Input: initial tape contents YES NO Encoding of String Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Construct machine : If returns YES then loop forever If returns NO then halt Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Loop forever YES NO Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Construct machine : Input: (machine ) If halts on input Then loop forever Else halt Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI copy Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Run machine with input itself: Input: (machine ) If halts on input Then loop forever Else halt Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI on input : If halts then loops forever If doesn’t halt then it halts NONSENSE !!!!! Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Therefore, we have contradiction The halting problem is undecidable END OF PROOF Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Another proof of the same theorem: If the halting problem was decidable then every recursively enumerable language would be recursive Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Theorem: The halting problem is undecidable Proof: Assume for contradiction that the halting problem is decidable Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI There exists Turing Machine that solves the halting problem YES halts on NO doesn’t halt on Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Let be a recursively enumerable language Let be the Turing Machine that accepts We will prove that is also recursive: we will describe a Turing machine that accepts and halts on any input Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Turing Machine that accepts and halts on any input NO reject halts on ? YES accept Halts on final state Run with input reject Halts on non-final state Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Therefore is recursive Since is chosen arbitrarily, every recursively enumerable language is also recursive But there are recursively enumerable languages which are not recursive Contradiction!!!! Courtesy Costas Busch - RPI

Courtesy Costas Busch - RPI Therefore, the halting problem is undecidable END OF PROOF Courtesy Costas Busch - RPI