CSCI 2670 Introduction to Theory of Computing

Slides:



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

INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
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.
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
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 6 Decidability Jan Maluszynski, IDA, 2007
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.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
Midterm 2 review Jundong Liu School of EECS
CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich Faculty of Computer Sciences Izmir University of Economics.
Cardinality with Applications to Computability Lecture 33 Section 7.5 Wed, Apr 12, 2006.
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.
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.
Cardinality with Applications to Computability
The Acceptance Problem for TMs
A Universal Turing Machine
CS 461 – Nov. 2 Sets Prepare for ATM finite vs. infinite Infinite sets
CSE 105 theory of computation
This statement is false.
CSCI 2670 Introduction to Theory of Computing
Lecture12 The Halting Problem
CSCI 2670 Introduction to Theory of Computing
CSCE 355 Foundations of Computation
BCS 2143 Theory of Computer Science
Counting Sets.
CSE 2001: Introduction to Theory of Computation Fall 2013
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
CSE 105 theory of computation
Intro to Theory of Computation
Jaya Krishna, M.Tech, Assistant Professor
Automata and Formal Languages (Final Review)
Recap lecture 29 Example of prefixes of a language, Theorem: pref(Q in R) is regular, proof, example, Decidablity, deciding whether two languages are equivalent.
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
CSC 4170 Theory of Computation Decidable languages Section 4.1.
Decidable and undecidable languages
CSCI 2670 Introduction to Theory of Computing
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
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
CSE 105 theory of computation
Theory of Computability
CSCI 2670 Introduction to Theory of Computing
Cpt S 317: Spring 2009 Reading: Chapter 8 & 9
Instructor: Aaron Roth
Computability and Undecidability
CSE 105 theory of computation
CSE 105 theory of computation
Turing -Recognizable vs. -Decidable
Intro to Theory of Computation
Intro to Theory of Computation
Intro to Theory of Computation
CSE 105 theory of computation
CSE 105 theory of computation
Presentation transcript:

CSCI 2670 Introduction to Theory of Computing October 19, 2005

Agenda Yesterday Today A little more on decidable languages Countable sets Today More on countable sets Diagonalization An undecidable language October 19, 2005

Languages we know are decidable Input ADFA <D,w>, D is a DFA, w is a string ANFA <N,w>, N is an NFA, w is a string AREX <R,w>, R is an RE, w is a string EDFA <D>, D is a DFA and L(D) =  EQDFA L(R) <C,D>, C and D are both DFA’s and L(C) = L(D) R is a regular expression ACFG <G,w>, G is a CFG, w is a string ECFG <G>, G is a CFG L(G) G is a CFG

Comparing the size of infinite sets Given two infinite sets A and B, is there any way of determining if |A|=|B| or if |A|>|B|? Yes! Functional correspondence can show two infinite sets have the same number of elements Diagonalization can show one infinite set has more elements than another October 19, 2005

Functional correspondence Let f be a function from A to B f is called one-to-one if … f(a1) ≠ f(a2) whenever a1 ≠ a2 f is called onto if … For every b  B, there is some a  A such that f(a) = 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 19, 2005

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)} All positive primes October 19, 2005

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 19, 2005

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 19, 2005

The set of all infinite binary strings Is the set of all infinite binary strings countable? No Diagonalization also works to prove this is not countable On the other hand, the set of finite length binary strings is countable! Let xb be the binary representation of x f(x) = xb is 1-to-1 and onto function from N to the set of finite binary strings October 19, 2005

Is the set of all languages in Σ* countable? No This set has the same cardinality as the set of binary strings Σ* = {ε, a, b, aa, ab, ba, bb, aaa, aab, …} A = { a, ab, aaa, …} A = 0 1 0 0 1 0 0 1 … October 19, 2005

Σ* vs. languages in Σ* The set Σ* is countable Let |Σ| = n Every string in Σ* can be associated with a unique number by enumerating Σ* Let f(x) be the string associated with x The set of all languages in Σ*is the power set of Σ* October 19, 2005

Is the set of all TM’s countable? Yes Since all Turing machines can be represented by a string, the set of all Turing machines are countable Theorem: Some languages are not Turing-recognizable Proof: There are more languages than there are Turing machines October 19, 2005