CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.

Slides:



Advertisements
Similar presentations
Turing Machines Memory = an infinitely long tape Persistent storage A read/write tape head that can move around the tape Initially, the tape contains only.
Advertisements

CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
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.
Turing -Recognizable vs. -Decidable
1 COMP 382: Reasoning about algorithms Unit 9: Undecidability [Slides adapted from Amos Israeli’s]
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Foundations of (Theoretical) Computer Science Chapter 3 Lecture Notes (Section 3.2: Variants of Turing Machines) David Martin With.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
The Halting Problem Sipser 4.2 (pages ). CS 311 Mount Holyoke College 2 Taking stock All languages Turing-recognizable Turing-decidable Context-free.
The Halting Problem Sipser 4.2 (pages ).
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
Decidable languages Sipser 4.1 (pages ). CS 311 Mount Holyoke College 2 Hierarchy of languages All languages Turing-recognizable Turing-decidable.
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
CHAPTER 4 Decidability Contents Decidable Languages
Tutorial CSC3130 : Formal Languages and Automata Theory Tu Shikui ( ) SHB 905, Office hour: Thursday 2:30pm-3:30pm
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 6 Decidability Jan Maluszynski, IDA, 2007
Homework #9 Solutions.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
CS 310 – Fall 2006 Pacific University CS310 The Halting Problem Section 4.2 November 15, 2006.
Theory of Computing Lecture 20 MAS 714 Hartmut Klauck.
1 Introduction to Computability Theory Lecture11: The Halting Problem Prof. Amos Israeli.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Announcements Homework – HW8 due Tues 5/29 11am – HW5 grades are out Monday is Memorial Day; no office hours, etc. – Go see a parade, or some fireworks,
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
Introduction to CS Theory Lecture 3 – Regular Languages Piotr Faliszewski
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Computability Construct TMs. Decidability. Preview: next class: diagonalization and Halting theorem.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
CS 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
Turing -Recognizable vs. -Decidable
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.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 5 Reducibility Some slides are in courtesy.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Recursively Enumerable Languages
CSCI 2670 Introduction to Theory of Computing
CSE 105 Theory of Computation
Busch Complexity Lectures: Reductions
Lecture12 The Halting Problem
Reductions Costas Busch - LSU.
The Encoding of TM Motivation for encoding of TM
CSE 105 theory of computation
CSE 105 theory of computation
Intro to Theory of Computation
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
CSE322 PROPERTIES OF REGULAR LANGUAGES
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
More undecidable languages
CSE 105 theory of computation
More undecidable languages
Theory of Computability
Instructor: Aaron Roth
CSE 105 theory of computation
Intro to Theory of Computation
CSE 105 theory of computation
Presentation transcript:

CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Based on a work at Permissions beyond the scope of this license may be available at

DECIDABILITY IMPORTANT DECIDABLE LANGUAGES More Proofs 2

Notation Notes Turing Machines always take a single input string of finite length – M(w) But sometimes we want them to take as input several strings, or an object, or several objects 3

Notation Notes Several strings can be combined into one string by using a delimiter character not in the main alphabet – w = s 1 #s 2 #s 3 Many objects can be encoded as a finite string – Ex: MPEG-4 is a movie encoded as a very long string of 0’s and 1’s Since we already know these encodings can be done, we just write TM’s as taking multiple complex inputs, but put triangle brackets around them to denote “encode this as a string” – Ex: M( ) – For standard objects (TMs, DFAs, etc), no further explanation is necessary—use book as your guide

Prove that the class of Decidable languages is closed under Union Given: Two decidable languages A and B, and TMs that decide them, M A and M B. Want to Show: A TM M U that decides A U B. Construction: – M U (w) = //w is a string 1.Simulate running M A (w) – If it accepts, accept. If it rejects, go to step 2: 2.Simulate running M B (w) – If it accepts, accept. If it rejects, reject. Correctness: //this is for you to debate! Conclusion: M U is a TM that decides AUB, therefore AUB is decidable, and decidable languages are closed under union. QED. This proof is: (a)Correct (b)Incorrect

Prove that the class of Recognizable languages is closed under Union Given: Two recognizable languages A and B, and TMs that recognize them, M A and M B. Want to Show: A TM M U that recognizes A U B. Construction: – M U (w) = //w is a string 1.Simulate running M A (w) – If it accepts, accept. If it rejects, go to step 2: 2.Simulate running M B (w) – If it accepts, accept. If it rejects, reject. Correctness: //this is for you to debate! Conclusion: M U is a TM that recognizes AUB, therefore AUB is recognizable, and recognizable languages are closed under union. QED. This proof is: (a)Correct (b)Incorrect

Prove that the class of Recognizable languages is closed under Intersection Given: Two Turing-recognizable languages A and B, and TMs that recognize them, M A and M B. Want to Show: A TM M I that recognizes A intersect B. Construction: – M I (w) = //w is a string 1.Simulate running M A (w) – If it rejects, reject. If it accepts, go to step 2: 2.Simulate running M B (w) – If it accepts, accept. If it rejects, reject. Correctness: //this is for you to debate! Conclusion: M I is a TM that recognizes A intersect B, therefore A intersect B is recognizable, and recognizable languages are closed under intersection. QED. This proof is: (a)Correct (b)Incorrect

Prove that the class of Decidable languages is closed under Intersection Given: Two decidable languages A and B, and TMs that decide them, M A and M B. Want to Show: A TM M I that decides A intersect B. Construction: – M I (w) = //w is a string 1.Simulate running M A (w) – If it rejects, reject. If it accepts, go to step 2: 2.Simulate running M B (w) – If it accepts, accept. If it rejects, reject. Correctness: //this is for you to debate! Conclusion: M I is a TM that decides A intersect B, therefore A intersect B is decidable, and decidable languages are closed under intersection. QED. This proof is: (a)Correct (b)Incorrect

Prove that the class of Decidable languages is closed under Complement Given: A decidable language A, and a TM that decides it, M A. Want to Show: A TM M C that decides the complement of A. Construction: – M C (w) = //w is a string 1.Simulate running M A (w) – If it accepts, reject. If it rejects, accept. Correctness: //this is for you to debate! Conclusion: M C is a TM that decides the complement of A, therefore the complement of A is decidable, and decidable languages are closed under complement. QED. This proof is: (a)Correct (b)Incorrect

Prove that the class of Recognizable languages is closed under Complement Given: A recognizable language A, and a TM that recognizes it, M A. Want to Show: A TM M C that recognizes the complement of A. Construction: – M C (w) = //w is a string 1.Simulate running M A (w) – If it accepts, reject. If it rejects, accept. Correctness: //this is for you to debate! Conclusion: M C is a TM that recognizes the complement of A, therefore the complement of A is recognizable, and recognizable languages are closed under complement. QED. This proof is: (a)Correct (b)Incorrect