Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c)2001-2004 Michael P. Frank Modified by (c) 2004-2005 Haluk Bingöl 1/18 Module.

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

Based on Rosen, Discrete Mathematics & Its Applications, 5e (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module #0 - Overview.
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.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
EE1J2 – Discrete Maths Lecture 9
Introduction to Computability Theory
Great Theoretical Ideas in Computer Science.
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
A Very Practical Series 1 What if we also save a fixed amount (d) every year?
2012: J Paul GibsonTSP: Mathematical FoundationsMAT7003/L5- CountingAndEnumeration.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul.
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.
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.
Functions.
THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2.
Relation, function 1 Mathematical logic Lesson 5 Relations, mappings, countable and uncountable sets.
2015 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
2.4 Sequences and 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.
Copyright © Cengage Learning. All rights reserved. CHAPTER 7 FUNCTIONS.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl Module #4.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
Mathematical Induction
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/21 Module.
Relations, Functions, and Countability
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.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
Great Theoretical Ideas in Computer Science.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
2014 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
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.
CS 285- Discrete Mathematics
CSE 311: Foundations of Computing Fall 2013 Lecture 26: Pattern matching, cardinality.
CSE 311: Foundations of Computing Fall 2014 Lecture 27: Cardinality.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
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.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
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.
Discrete Mathematics CS 2610
COT 3100, Spring 2001 Applications of Discrete Structures
Lecture12 The Halting Problem
2.4 Sequences and Summations
Cardinality of Sets Section 2.5.
Lecture 7 Functions.
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
Discrete Structures for Computer Science
Countable and Countably Infinite Sets
Lesson 5 Relations, mappings, countable and uncountable sets
Rosen 5th ed., §1.8 ~44 slides, ~2 lectures
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics and its Applications
Lesson 5 Relations, mappings, countable and uncountable sets
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
Formal Languages, Automata and Models of Computation
Dept. of Mathematics 이산수학 Discrete Mathematics Dr. Chae, Gab-Byung
Intro to Theory of Computation
Discrete Mathematics and its Applications
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics CS 2610
CS21 Decidability and Tractability
Intro to Theory of Computation
Presentation transcript:

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module #14 - Countability Bogazici University Department of Computer Engineering CmpE 220 Discrete Mathematics 14. Cardinality and Infinite Sets Haluk Bingöl

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 2/18 Module #14 - Countability Module #14: Cardinality & Infinite Sets Rosen 5 th ed., last part of §3.2 ~10 slides, ½ lecture Topic #∞

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 3/13 Module #14 - Countability Infinite Cardinalities (from §3.2) Using what we learned about functions in §1.8, it’s possible to formally define cardinality even for infinite sets. We can also show that infinite sets come in different sizes of infinite! This also gives us some interesting proof examples.

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 4/13 Module #14 - Countability Cardinality: Formal Definition Def. For any two (possibly infinite) sets A and B, we say that A and B have the same cardinality (written |A|=|B|) iff there exists a bijection (bijective function) from A to B. When A and B are finite, it is easy to see that such a function exists iff A and B have the same number of elements n  ℕ.

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 5/13 Module #14 - Countability Countable versus Uncountable Def. For any set S, if S is finite or if |S|=| ℕ |, we say S is countable. Else, S is uncountable. Intuition behind “countable:” we can enumerate (sequentially list) elements of S in such a way that any individual element of S will eventually be counted in the enumeration. Examples: ℕ, ℤ.Intuition behind “countable:” we can enumerate (sequentially list) elements of S in such a way that any individual element of S will eventually be counted in the enumeration. Examples: ℕ, ℤ. Uncountable means: No series of elements of S (even an infinite series) can include all of S ’s elements. Examples: ℝ, ℝ 2, P( ℕ )Uncountable means: No series of elements of S (even an infinite series) can include all of S ’s elements. Examples: ℝ, ℝ 2, P( ℕ )

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 6/13 Module #14 - Countability Countable Sets: Examples Thm. The set ℤ is countable. Proof: Consider f: ℤ  ℕ where f(i)=2i for i  0 and f(i) =  2i  1 for i<0. Note f is bijective. Thm. The set of all ordered pairs of natural numbers (n,m) is countable. Consider listing the pairs in order by their sum s=n+m, then by n. Every pair appears once in this series; the generating function is bijective.

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 7/13 Module #14 - Countability Uncountable Sets: Example Thm. The open interval of reals [0,1) :  {r  ℝ | 0  r < 1} is uncountable. Proof by diagonalization: (Cantor, 1891) Assume there is a series {r i } = r 1, r 2,... containing all elements r  [0,1). Consider listing the elements of {r i } in decimal notation (although any base will do) in order of increasing index:... (continued on next slide) Georg Cantor

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 8/13 Module #14 - Countability Uncountability of Reals, cont’d A postulated enumeration of the reals: r 1 = 0.d 1,1 d 1,2 d 1,3 d 1,4 d 1,5 d 1,6 d 1,7 d 1,8 … r 2 = 0.d 2,1 d 2,2 d 2,3 d 2,4 d 2,5 d 2,6 d 2,7 d 2,8 … r 3 = 0.d 3,1 d 3,2 d 3,3 d 3,4 d 3,5 d 3,6 d 3,7 d 3,8 … r 4 = 0.d 4,1 d 4,2 d 4,3 d 4,4 d 4,5 d 4,6 d 4,7 d 4,8 …... Now, consider a real number generated by taking all the digits d i,i that lie along the diagonal in this figure and replacing them with different digits.

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 9/13 Module #14 - Countability Uncountability of Reals, fin. E.g., a postulated enumeration of the reals: r 1 = … r 2 = … r 3 = … r 4 = … OK, now let’s add 1 to each of the diagonal digits (mod 10), that is changing 9’s to … can’t be on the list anywhere!

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 10/13 Module #14 - Countability Transfinite Numbers The cardinalities of infinite sets are not natural numbers, but are special objects called transfinite cardinal numbers. The cardinality of the natural numbers,  0 :  | ℕ |, is the first transfinite cardinal number. (There are none smaller.) The continuum hypothesis claims that | ℝ |=  1, the second transfinite cardinal.

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 11/13 Module #14 - Countability Do Uncountable Sets Really Exist? The set of objects that can be defined using finite-length strings of symbols (“descriptions”) is only countable. Therefore, any uncountable set must consist primarily of elements which individually have no finite descriptions. Löwenheim-Skolem theorem: No consistent theory can ever force an interpretation involving uncountables. The “constructivist school” asserts that only objects constructible from finite descriptions exist. (e.g.  R) Most mathematicians are happy to use uncountable sets anyway, because postulating their existence has not led to any demonstrated logical contradictions (so far).

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 12/13 Module #14 - Countability Countable vs. Uncountable You should: Know how to define “same cardinality” in the case of infinite sets. Know the definitions of countable and uncountable. Know how to prove (at least in easy cases) that sets are either countable or uncountable.

Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 13/13 Module #14 - Countability References Rosen Discrete Mathematics and its Applications, 5e Mc GrawHill, 2003Rosen Discrete Mathematics and its Applications, 5e Mc GrawHill, 2003