Diagonalization Fact: Many books exist.

Slides:



Advertisements
Similar presentations
Countability. The cardinality of the set A is equal to the cardinality of a set B if there exists a bijection from A to B cardinality? bijection? injection.
Advertisements

Basic Structures: Functions and Sequences
1 Diagonalization Fact: Many books exist. Fact: Some books contain the titles of other books within them. Fact: Some books contain their own titles within.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 10 Cardinality Uncountability of the real numbers.
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
Great Theoretical Ideas in Computer Science.
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.
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
Functions f( ) = A B Lecture 15: Nov 4.
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
A Very Practical Series 1 What if we also save a fixed amount (d) every year?
Cardinality of a Set “The number of elements in a set.” Let A be a set. a.If A =  (the empty set), then the cardinality of A is 0. b. If A has exactly.
Cardinality of Sets Section 2.5.
Sequences and Summations
2.4 Sequences and Summations
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
1 Lecture 3 (part 3) Functions – Cardinality Reading: Epp Chp 7.6.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Mathematical Induction
Copyright © 2014 Curt Hill Cardinality of Infinite Sets There be monsters here! At least serious weirdness!
A Universal Turing Machine
Relations, Functions, and Countability
COMPSCI 102 Introduction to Discrete Mathematics.
INFIINITE SETS CSC 172 SPRING 2002 LECTURE 23. Cardinality and Counting The cardinality of a set is the number of elements in the set Two sets are equipotent.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
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.
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/27/2009.
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)
Great Theoretical Ideas in Computer Science.
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
Lecture 4 Infinite Cardinals. Some Philosophy: What is “2”? Definition 1: 2 = 1+1. This actually needs the definition of “1” and the definition of the.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
Section 3.2: Sequences and Summations. Def: A sequence is a function from a subset of the set of integers (usually the set of natural numbers) to a set.
CS 285- Discrete Mathematics
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.
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.
Sequences Lecture 11. L62 Sequences Sequences are a way of ordering lists of objects. Java arrays are a type of sequence of finite size. Usually, mathematical.
One of Cantor's basic concepts was the notion of the size or cardinality of a set M, denoted by |M|  M - finite sets M is an n-set or has size n, if.
1-1 Copyright © 2013, 2005, 2001 Pearson Education, Inc. Section 2.4, Slide 1 Chapter 2 Sets and Functions.
CSE15 Discrete Mathematics 03/01/17
Cardinality with Applications to Computability
Sets (2.1) A set is a collection or group of objects or elements or members. (Cantor 1895) A set is said to contain its elements. There must be an underlying.
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
The Acceptance Problem for TMs
Discrete Mathematics CS 2610
A Universal Turing Machine
Background Material Reading: Sections 1.1 – 1.4
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
2.4 Sequences and Summations
Cardinality of Sets Section 2.5.
Finite and Infinite Sets
Countable or Uncountable…That is the question!
Lecture 7 Functions.
Countable and Countably Infinite Sets
The sum of any two even integers is even.
ICS 253: Discrete Structures I
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics and its Applications
Lecture 43 Section 10.1 Wed, Apr 6, 2005
Formal Languages, Automata and Models of Computation
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics CS 2610
Functions Rosen 2.3, 2.5 f( ) = A B Lecture 5: Oct 1, 2.
Cardinality Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted |A| = |B|, if and only if there is a one-to-one correspondence.
CSCI 2670 Introduction to Theory of Computing
Intro to Theory of Computation
Presentation transcript:

Diagonalization Fact: Many books exist. Fact: Some books contain the titles of other books within them. Fact: Some books contain their own titles within them. Consider the following book with title The Special Book. The Special Book is defined to be a book that contains the titles of all books that do not contain their own titles. Question: Does the special book exist? Could one write the special book? A similar contradiction is known as The Barber of Seville Paradox.

Diagonalization Definition: P(N) is the set of all subsets of N. Theorem: P(N) is uncountable. Proof: (by contradiction) Suppose that P(N) is countable. Then by definition it is either finite or countably infinite. Clearly, it is not finite, therefore it must be countably infinite. By definition, since it is countably infinite it has the same cardinality as N (the natural numbers) and, by definition, there is a bijection from N to P(N).

Consider the following table: f: N => P(N) 0 => P0, 1 => P1, 2 => P2, … *f is “onto” so every set in P(N) is in this list. Consider the following table: 0 1 2 3 … P0 d00 d01 d02 d03 P1 d10 d11 d12 d13 P2 d20 d21 d22 d23 : dij = *The table for f provides a 2 dimensional bit vector. Example: Set {2, 5, 6} => P* =0010011000…. , 1’s only for the present number

Consider/define the set D such that for each j ≥ 0: if and only if (*) Note that D is represented by the complement (1 0) of the diagonal. Observations: D is a subset of P Since P0, P1, P2, … is a list of all the subsets of P, it follows that D = Pi (**), for some i ≥ 0. Question: Is ? By definition of D given in *, if and only if But D = Pi by **, and substitution gives if and only if A contradiction. Hence, P(N) is uncountable. 

Diagonalization Theorem: The real numbers are uncountable. Proof: (by contradiction) Let R denote the set of all real numbers, and suppose that R is countable. Then by definition it is either finite or countably infinite. Clearly, it is not finite, therefore it must be countably infinite. By definition, since it is countably infinite it has the same cardinality as N (the natural numbers) and, by definition, there is a bijection from N to R.

f: N => R 0 => r0, 1 => r1, 2 => r2, … *f is “onto” so every real number is in this list. Consider the following table: 0 1 2 3 … r0 d00 d01 d02 d03 r1 d10 d11 d12 d13 r2 d20 d21 d22 d23 : where ri = xi.di0 di1 di2 … dim … (padded with zero’s to the right) Consider real numbers over [0, 1), or xi is 0 *The table is a 2 dimensional vector of digits.

Consider/define the real number: y = 0.y0y1y2…(infinite) where: yi = (dii +1) mod 10 for all i ≥ 0 (*) Observations: y is a real number Since r0, r1, r2, … is a list of all real numbers, it follows that y must be in this list, i.e., y = rj, for some j ≥ 0. This means that y = rj = 0.dj0 dj1 dj2 … djj-1 djj djj+1 … (from the table) This also means that yi = dji, for all i ≥ 0, and, in particular, that: yj = djj But by *: yj = (djj +1) mod 10 a contradiction. Therefore, no such one-to-one and onto function exists, and therefore the real numbers are uncountable. So, real numbers with 0 as the integer part is uncountably infinite. Similarly, reals with 1 as the integer part in uncounatbly infinite, and so on. 

Rational number set is countable: represent with integers p and q (for p/q) over a matrix, and index them in a special cross-diagonal pattern Is the set of 2-tuples of integers (p, q) countable? 3-tuples? n-tuples, for constant n?