CSCI 2670 Introduction to Theory of Computing October 19, 2005.

Slides:



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

INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Finite Automata CPSC 388 Ellen Walker Hiram College.
CSCI 2670 Introduction to Theory of Computing September 13, 2005.
CSCI 2670 Introduction to Theory of Computing September 15, 2004.
1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
Introduction to Computability Theory
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 Discussion1: Non-Deterministic Finite Automatons Prof. Amos Israeli.
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.
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.
CS 302: Discrete Math II A Review. An alphabet Σ is a finite set (e.g., Σ = {0,1}) A string over Σ is a finite-length sequence of elements of Σ For x.
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
Module 5 Topics Proof of the existence of unsolvable problems
Decidable and undecidable problems deciding regular languages and CFL’s Undecidable problems.
CHAPTER 4 Decidability Contents Decidable Languages
CS 310 – Fall 2006 Pacific University CS310 Decidability Section 4.1/4.2 November 10, 2006.
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.
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.
1 Introduction to Computability Theory Lecture11: The Halting Problem Prof. Amos Israeli.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
Chapter 7 Functions Dr. Curry Guinn. Outline of Today Section 7.1: Functions Defined on General Sets Section 7.2: One-to-One and Onto Section 7.3: The.
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
MA/CSSE 474 Theory of Computation Functions, Closure, Decision Problems.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
1 Undecidability Reading: Chapter 8 & 9. 2 Decidability vs. Undecidability There are two types of TMs (based on halting): (Recursive) TMs that always.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
Computer Language Theory
A Universal Turing Machine
Relations, Functions, and Countability
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
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.
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.
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.
CS 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
CSE 311 Foundations of Computing I Lecture 25 Pattern Matching, Cardinality, Computability Spring
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
CSE 311: Foundations of Computing Fall 2013 Lecture 26: Pattern matching, cardinality.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Section 2.5. Cardinality Definition: A set that is either finite or has the same cardinality as the set of positive integers (Z + ) is called countable.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Decidable.
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
CSCI 2670 Introduction to Theory of Computing
A Universal Turing Machine
This statement is false.
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
CSCE 355 Foundations of Computation
BCS 2143 Theory of Computer Science
Counting Sets.
CSCI 2670 Introduction to Theory of Computing
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.
Decidable Languages Costas Busch - LSU.
CSC 4170 Theory of Computation Decidable languages Section 4.1.
CSCI 2670 Introduction to Theory of Computing
Formal Languages, Automata and Models of Computation
CSCI 2670 Introduction to Theory of Computing
Computability and Undecidability
Presentation transcript:

CSCI 2670 Introduction to Theory of Computing October 19, 2005

Agenda Yesterday –A little more on decidable languages –Countable sets Today –More on countable sets –Diagonalization –An undecidable language

Languages we know are decidable LanguageInput A DFA, D is a DFA, w is a string A NFA, N is an NFA, w is a string A REX, R is an RE, w is a string E DFA, D is a DFA and L(D) =  EQ DFA L(R), C and D are both DFA’s and L(C) = L(D) R is a regular expression A CFG, G is a CFG, w is a string E CFG, G is a CFG L(G)G is a CFG

October 19, 2005 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(a 1 ) ≠ f(a 2 ) whenever a 1 ≠ a 2 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! 1/11/21/31/41/5 2/12/22/32/42/5 3/13/23/33/43/5 4/14/24/34/44/5 5/15/25/35/45/5 Etc…

October 19, 2005 The real numbers Is R + (the set of positive real numbers) countable? –No! nf(n) … … … … … X = … 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 x b be the binary representation of x –f(x) = x b 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 = …

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