CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.

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

CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Georg Cantor
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Prof. Shachar Lovett Clicker frequency: CA CSE 20 Discrete math Prof. Shachar Lovett
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.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 10 Cardinality Uncountability of the real numbers.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
EE1J2 – Discrete Maths Lecture 9
Introduction to Computability Theory
Great Theoretical Ideas in Computer Science.
Lecture ,3.3 Sequences & Summations Proof by Induction.
A Very Practical Series 1 What if we also save a fixed amount (d) every year?
1 Lecture 6 Topics –Proof of the existence of unsolvable problems Problems/languages not in REC Proof Technique –There are more problems/languages than.
Great Theoretical Ideas in Computer Science.
Cantor’s Legacy: Infinity And Diagonalization Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 25Apr 13, 2004Carnegie.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Functions A B f( ) =. This Lecture We will define a function formally, and then in the next lecture we will use this concept in counting. We will also.
Cardinality of Sets Section 2.5.
Implications of Cantorian Transfinite Set Theory on Creation.
“TO INFINITY AND BEYOND” A DEEPER LOOK AND UNDERSTANDING.
1 How Big Is Infinity? Some Mathematical Surprises Roger House Scientific Buzz Café French Garden Restaurant & Bistro Sebastopol, CA 2013 July 25 Copyright.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
1 Lecture 3 (part 3) Functions – Cardinality Reading: Epp Chp 7.6.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Copyright © Cengage Learning. All rights reserved. CHAPTER 7 FUNCTIONS.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
A Universal Turing Machine
Relations, Functions, and Countability
Donald Byrd rev. 28 November 2012
COMPSCI 102 Introduction to Discrete Mathematics.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
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.
I dare you not to get excited when you read Cantor’s Diagonal Proof: Georg Cantor was the most important mathematician no one has ever heard of. He did.
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
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
To Infinity And Beyond! CS Lecture 11 The Ideal Computer: no bound on amount of memory Whenever you run out of memory, the computer contacts the.
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.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
1-1 Copyright © 2013, 2005, 2001 Pearson Education, Inc. Section 2.4, Slide 1 Chapter 2 Sets and Functions.
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Discrete Mathematics CS 2610
CSE 20 – Discrete Mathematics
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
2.4 Sequences and Summations
Cardinality of Sets Section 2.5.
Countable or Uncountable…That is the question!
Lecture 7 Functions.
Discrete Structures for Computer Science
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics and its Applications
Module #4.5, Topic #∞: Cardinality & Infinite Sets
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.
Presentation transcript:

CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. Based on a work at Permissions beyond the scope of this license may be available at LeeCreative Commons Attribution- NonCommercial-ShareAlike 4.0 International Licensehttp://peerinstruction4cs.org

Today’s Topics: 1. Countably infinitely large sets 2. Uncountable sets  “To infinity, and beyond!” (really, we’re going to go beyond infinity) 2

Set Theory and Sizes of Sets  How can we say that two sets are the same size?  Easy for finite sets (count them)--what about infinite sets?  Georg Cantor ( ), who invented Set Theory, proposed a way of comparing the sizes of two sets that does not involve counting how many things are in each  Works for both finite and infinite  SET SIZE EQUALITY:  Two sets are the same size if there is a bijective (injective and surjective) function mapping from one to the other  Intuition: neither set has any element “left over” in the mapping 3

Injective and Surjective f is: a) Injective b) Surjective c) Bijective (both (a) and (b)) d) Neither 4 Sequences of a’s Natural numbers 1234…1234… a aa aaa aaaa … f

Can you make a function that maps from the domain Natural Numbers, to the co-domain Positive Evens? A. Yes and my function is bijective B. Yes and my function is not bijective C. No (explain why not) 5 Positive evens Natural numbers 1234…1234… 2468…2468…

Can you make a function that maps from the domain Natural Numbers, to the co-domain Positive Evens? f(x)=2x 6 Natural numbers 1234…1234… 2468…2468… f Positive evens

Can you make a function that maps from the domain Natural Numbers, to the co-domain Positive Odds? A. Yes and my function is bijective B. Yes and my function is not bijective C. No (explain why not) 7 Positive odds Natural numbers 1234…1234… 1357…1357…

Can you make a function that maps from the domain Natural Numbers, to the co-domain Positive Odds? f(x)=2x-1 8 Natural numbers 1234…1234… 1357…1357… f Positive odds

Countably infinite size sets  So | ℕ | = |Even|, even though it seems like it should be | ℕ | = 2|Even|  Also, | ℕ | = |Odd|  Another way of thinking about this is that two times infinity is still infinity  Does that mean that all infinite size sets are of equal size? 9

It gets even weirder: Rational Numbers (for simplicity we’ll do ratios of natural numbers, but the same is true for all Q) 10 1/11/21/31/41/51/6… 2/12/22/32/42/52/6… 3/13/23/33/43/53/6… 4/14/24/34/44/54/6… 5/15/25/35/45/55/6... 6/16/26/36/46/56/6 …………………

It gets even weirder: Rational Numbers (for simplicity we’ll do ratios of natural numbers, but the same is true for all Q) 11 1/11/21/31/41/51/6… 2/12/22/32/42/52/6… 3/13/23/33/43/53/6… 4/14/24/34/44/54/6… 5/15/25/35/45/55/6... 6/16/26/36/46/56/6 ………………… Is there a bijection from the natural numbers to Q + ? A.Yes B.No

It gets even weirder: Rational Numbers (for simplicity we’ll do ratios of natural numbers, but the same is true for all Q) 12 1/1 11/2 21/3 41/4 61/5 101/6… 2/1 32/2 x2/3 72/4 x2/52/6… 3/1 53/2 83/3 x3/43/53/6… 4/1 94/2 x4/34/44/54/6… 5/1 115/25/35/45/55/6... 6/16/26/36/46/56/6 …………………

Sizes of Infinite Sets  The number of Natural Numbers is equal to the number of positive Even Numbers, even though one is a proper subset of the other!  | ℕ | = |E + |, not | ℕ | = 2|E + |  The number of Rational Numbers is equal to the number of Natural Numbers  | ℕ | = | ℚ + |, not | ℚ + | ≈ | ℕ | 2  But it gets even weirder than that:  It might seem like Cantor’s definition of “same size” for sets is overly broad, so that any two sets of infinite size could be proven to be the “same size”  Actually, this is not so 13

Thm. | ℝ | != | ℕ | Proof by contradiction: Assume | ℝ | = | ℕ |, so a bijective function f exists between ℕ and ℝ. 14 Want to show: no matter how f is designed (we don’t know how it is designed so we can’t assume anything about that), it cannot work correctly. Specifically, we will show a number z in ℝ that can never be f(n) for any n, no matter how f is designed. Therefore f is not surjective, a contradiction. Natural numbers 1234…1234… ???z?…???z?… f Real numbers

15 n f (n) … … … …… We construct z as follows: z’s n th digit is the n th digit of f(n), PLUS ONE* (*wrap to 1 if the digit is 9) Below is an example f What is z in this example? a).244… b).134… c).031… d).245… Thm. | ℝ | != | ℕ | Proof by contradiction: Assume | ℝ | = | ℕ |, so a bijective function f exists between ℕ and ℝ.

16 n f (n) 1.d 1 1 d 1 2 d 1 3 d 1 4 … 2.d 2 1 d 2 2 d 2 3 d 2 4 … 3.d 3 1 d 3 2 d 3 3 d 3 4 … …… What is z? a).d 1 1 d 1 2 d 1 3 … b).d 1 1 d 2 2 d 3 3 … c).[d ] [d ] [d ] … d).[d ] [d ] [d ] … Thm. | ℝ | != | ℕ | Proof by contradiction: Assume | ℝ | = | ℕ |, so a bijective function f exists between ℕ and ℝ. We construct z as follows: z’s n th digit is the n th digit of f(n), PLUS ONE* (*wrap to 1 if the digit is 9) Below is a generalized f

17 n f (n) 1.d 1 1 d 1 2 d 1 3 d 1 4 … 2.d 2 1 d 2 2 d 2 3 d 2 4 … 3.d 3 1 d 3 2 d 3 3 d 3 4 … …… How do we reach a contradiction? Must show that z cannot be f(n) for any n How do we know that z ≠ f(n) for any n? a)We can’t know if z = f(n) without knowing what f is and what n is b)Because z’s n th digit differs from n‘s n th digit c)Because z’s n th digit differs from f(n)’s n th digit Thm. | ℝ | != | ℕ | Proof by contradiction: Assume | ℝ | = | ℕ |, so a bijective function f exists between ℕ and ℝ.

Thm. | ℝ | != | ℕ |

Diagonalization 19 n f (n) 1.d 1 1 d 1 2 d 1 3 d 1 4 d 1 5 d 1 6 d 1 7 d 1 8 d 1 9 … 2.d 2 1 d 2 2 d 2 3 d 2 4 d 2 5 d 2 6 d 2 7 d 2 8 d 2 9 … 3.d 3 1 d 3 2 d 3 3 d 3 4 d 3 5 d 3 6 d 3 7 d 3 8 d 3 9 … 4.d 4 1 d 4 2 d 4 3 d 4 4 d 4 5 d 4 6 d 4 7 d 4 8 d 4 9 … 5.d 5 1 d 5 2 d 5 3 d 5 4 d 5 5 d 5 6 d 5 7 d 5 8 d 5 9 … 6.d 6 1 d 6 2 d 6 3 d 6 4 d 6 5 d 6 6 d 6 7 d 6 8 d 6 9 … 7.d 7 1 d 7 2 d 7 3 d 7 4 d 7 5 d 7 6 d 7 7 d 7 8 d 7 9 … 8.d 8 1 d 8 2 d 8 3 d 8 4 d 8 5 d 8 6 d 8 7 d 8 8 d 8 9 … 9.d 9 1 d 9 2 d 9 3 d 9 4 d 9 5 d 9 6 d 9 7 d 9 8 d 9 9 … ……

Some infinities are more infinite than other infinities 20 Natural numbers are called countable Any set that can be put in correspondence with ℕ is called countable (ex: E +, ℚ + ). Equivalently, any set whose elements can be enumerated in an (infinite) sequence a 1,a 2, a 3,… Real numbers are uncountable Any set for which cannot be enumerated by a sequence a 1,a 2,a 3,… is called “uncountable” But it gets even weirder… There are more than two categories!

Some infinities are more infinite than other infinities 21 | ℕ | is called א 0 o |E+| = | ℚ | = א 0 | ℝ | is maybe א 1 o Although we just proved that | ℕ | < | ℝ |, and nobody has ever found a different infinity between | ℕ | and | ℝ |, mathematicians haven’t proved that there are not other infinities between | ℕ | and | ℝ |, making | ℝ | = א 2 or greater o In fact, it can be proved that such theorems can never be proven… Sets exist whose size is א 0, א 1, א 2, א 3 … An infinite number of aleph numbers! o An infinite number of different infinities

Famous People: Georg Cantor ( )  His theory of set size, in particular transfinite numbers (different infinities) was so strange that many of his contemporaries hated it  Just like many CSE 20 students!  “scientific charlatan” “renegade” “corrupter of youth”  “utter nonsense” “laughable” “wrong”  “disease”  “I see it, but I don't believe it!” –Georg Cantor himself 22 “The finest product of mathematical genius and one of the supreme achievements of purely intellectual human activity.” –David Hilbert