CSCI 2670 Introduction to Theory of Computing

Slides:



Advertisements
Similar presentations
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
Advertisements

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.
1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
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 ).
CSCI 2670 Introduction to Theory of Computing October 19, 2005.
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
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.
CHAPTER 4 Decidability Contents Decidable Languages
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
CS 310 – Fall 2006 Pacific University CS310 The Halting Problem Section 4.2 November 15, 2006.
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
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.
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.
CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich Faculty of Computer Sciences Izmir University of Economics.
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.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
D E C I D A B I L I T Y 1. 2 Objectives To investigate the power of algorithms to solve problems. To explore the limits of algorithmic solvability. To.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
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.
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.
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
The Acceptance Problem for TMs
CS 461 – Nov. 2 Sets Prepare for ATM finite vs. infinite Infinite sets
CIS Automata and Formal Languages – Pei Wang
Theory of Computability
Recursively Enumerable and Recursive Languages
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
This statement is false.
CSCI 2670 Introduction to Theory of Computing
Busch Complexity Lectures: Reductions
Lecture12 The Halting Problem
Reductions Costas Busch - LSU.
Theory of Computability
BCS 2143 Theory of Computer Science
LIMITS OF ALGORITHMIC COMPUTATION
CSCI 2670 Introduction to Theory of Computing
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
CSCI 2670 Introduction to Theory of Computing
CS21 Decidability and Tractability
CSCI 2670 Introduction to Theory of Computing
Formal Languages, Automata and Models of Computation
Intro to Theory of Computation
CSCI 2670 Introduction to Theory of Computing
More undecidable languages
Theory of Computability
CSCI 2670 Introduction to Theory of Computing
CS21 Decidability and Tractability
CSCI 2670 Introduction to Theory of Computing
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
Decidability continued….
Intro to Theory of Computation
Cpt S 317: Spring 2009 Reading: Chapter 8 & 9
Instructor: Aaron Roth
CSE 105 theory of computation
Intro to Theory of Computation
CIS Automata and Formal Languages – Pei Wang
Intro to Theory of Computation
CSE 105 theory of computation
Presentation transcript:

CSCI 2670 Introduction to Theory of Computing October 20, 2004

Agenda Yesterday Today Some decidable problems involving regular languages and finite automata One undecidable language EQCFG Today More undecidable languages Techniques for showing a languages is not decidable October 20, 2004

Announcements Quiz tomorrow No tutorial tomorrow Enumerators, definition of algorithm, decidable languages No tutorial tomorrow Extra office hours today (3:00 – 5:00) October 20, 2004

Relationship of classes of languages Turing-recognizable Decidable Context-free Regular October 20, 2004

Turing machine acceptance problem Consider the following language ATM={<M,w> | M is a TM that accepts w} Theorem: ATM is Turing-recognizable Theorem: ATM is undecidable Proof: The universal Turing machine recognizes, but does not decide, ATM October 20, 2004

The universal Turing machine U = “On input <M, w>, wher M is a TM and w is a string: Simulate M on input w If M ever enters its accept state, accept If M ever enters its reject state, reject” October 20, 2004

Why can’t U decide ATM? Intuitively, if M never halts on w, then U never halts on <M,w> This is also known as the halting problem Given a TM M and a string w, does M halt on input w? Undecidable We will prove this more rigorously later Need some new tools for proving properties of languages October 20, 2004

Comparing the size of infinite sets Given two infinite sets A and B, is there any way of determining if |A|>|B|? Yes! Diagonalization October 20, 2004

Functional correspondence Let f be a function from A to B f is called one-to-one if … f(a) ≠ f(b) whenever a ≠ b f is called onto if … For every b  B, there is some a  A such that f(a) = f(b) f is called a correspondence if it is one-to-one and onto A correspondence is a way to pair elements of the two sets October 20, 2004

Example correspondence Consider f:Z* → P, where Z*= {0,1,2,…} and P = {positive squares} f(x) = (x+1)2 Is f one-to-one? Yes Is f onto? Therefore |Z| = |P| October 20, 2004

Countable sets Let N = {1, 2, 3, …} be the set of natural numbers The set A is countable if … A is finite, or |A| = |N| Some example of countable sets Integers {x | x  Z and x = 1 (mod 3)} October 20, 2004

The positive rational numbers Is Q = {m/n | m,n  N} countable? Yes! Etc… 1/1 1/2 1/3 1/4 1/5 2/1 2/2 2/3 2/4 2/5 3/1 3/2 3/3 3/4 3/5 4/1 4/2 4/3 4/4 4/5 5/1 5/2 5/3 5/4 5/5 October 20, 2004

The real numbers Is R+ (the set of positive real numbers) countable? No! n f(n) 1 1.56439… 2 3.23891… 3 7.42210… 4 2.22266… 5 0.16982… X = 4.1337… Diagonalization October 20, 2004