EE1J2 – Discrete Maths Lecture 9

Slides:



Advertisements
Similar presentations
Basic Structures: Functions and Sequences
Advertisements

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
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.
Great Theoretical Ideas in Computer Science.
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
CSE115/ENGR160 Discrete Mathematics 02/22/11 Ming-Hsuan Yang UC Merced 1.
EE1J2 – Discrete Maths Lecture 7
CSE115/ENGR160 Discrete Mathematics 02/21/12
CHAPTER 4 Decidability Contents Decidable Languages
Chapter 2 The Basic Concepts of Set Theory
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 8 Equivalence relations on sets Function between sets Types of function.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
CS 310 – Fall 2006 Pacific University CS310 The Halting Problem Section 4.2 November 15, 2006.
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.
1 CMSC 250 Chapter 7, Functions. 2 CMSC 250 Function terminology l A relationship between elements of two sets such that no element of the first set is.
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.
THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2.
Relation, function 1 Mathematical logic Lesson 5 Relations, mappings, countable and uncountable sets.
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.
Week 7 - Friday.  What did we talk about last time?  Set disproofs  Russell’s paradox  Function basics.
The Language of Sets MATH 102 Contemporary Math S. Rook.
Copyright © Cengage Learning. All rights reserved. CHAPTER 7 FUNCTIONS.
Ch. 11: Cantor’s Infinity!. N = {1, 2, 3, 4, 5, 6, …} “the natural numbers” Z = {…, –3, –2, –1, 0, 1, 2, 3, …} “the integers” Q = {all quotients “a/b”
Functions Section 2.3. Section Summary Definition of a Function. – Domain, Cdomain – Image, Preimage Injection, Surjection, Bijection Inverse Function.
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.
Aim: How can the word ‘infinite’ define a collection of elements?
Slide Section 2-1 Symbols and Terminology. SYMBOLS AND TERMINOLOGY Designating Sets Sets of Numbers and Cardinality Finite and Infinite Sets Equality.
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.
Discrete Structures Li Tak Sing ( 李德成 ) Lectures
Math 344 Winter 07 Group Theory Part 2: Subgroups and Isomorphism
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/27/2009.
Basic Structures: Sets, Functions, Sequences, and Sums.
Cardinality with Applications to Computability Lecture 33 Section 7.5 Wed, Apr 12, 2006.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
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.
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.
Math 51/COEN 19. Sequences and Summations - vocab An arithmetic progression is a sequence of the form a, a+d, a+2d, …, a+nd, … with fixed a, d in R and.
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.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
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.
Cardinality with Applications to Computability
The Acceptance Problem for TMs
Discrete Mathematics CS 2610
Lecture12 The Halting Problem
2.4 Sequences and Summations
Cardinality of Sets Section 2.5.
Lecture 7 Functions.
Discrete Structures for Computer Science
Countable and Countably Infinite Sets
ICS 253: Discrete Structures I
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Discrete Mathematics and its Applications
Discrete Math for CS CMPSC 360 LECTURE 43 Last time: Variance
Module #4.5, Topic #∞: Cardinality & Infinite Sets
Chapter 2 The Basic Concepts of Set Theory
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:

EE1J2 – Discrete Maths Lecture 9 Isomorphic sets Cardinality Countability and 0 Countability of ℤ and ℚ

Isomorphic Sets If there exists a bijection between two sets A and B, f: A  B, then: The elements of A and B are in ‘one-to-one’ correspondence A and B are basically the same set A and B are isomorphic f 1-1 and onto - bijection

Example 1 Let A = {0,1,2,3} and B = {a,b,c,d} The function f :A  B defined by {(0,a),(1,b),(2,c),(3,d)} is a bijection The sets A and B are isomorphic. B is just a ‘re-labelled’ version of A

Example 2 Recall that ℕ is the set of positive whole numbers and ℤ is the set of all whole numbers. Then the function: f : ℕ  ℤ, f(n) = n/2 if n is even, f(n)=-(n+1)/2 if n is odd is a bijection Hence ℤ and ℕ are isomorphic

Example 2 continued f : ℕ  ℤ, f(n) = n/2 if n is even, f(n)=-(n+1)/2 if n is odd 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ….                  …. 0 -1 1 -2 2 -3 3 -4 4 -5 5 -6 6 -7 7 -8 8 ….

Cardinality Revisited Recall that for a finite set A={a1,…,an}, the cardinality of A is simply the number of members which A has. In this case |A|=n For infinite sets the notion of cardinality is more complex. But, if two infinite sets A and B are isomorphic, then surely |A|=|B|

Cardinality Revisited In other words, if we can find a bijection f:AB, then |A|=|B| Because, in this case B is just ‘A with different labels’

Countable Sets The simplest infinite set is the set of natural numbers ℕ = {0,1,2,3,…} E.g: if n ℕ then we can talk about the next biggest member of ℕ, i.e. n+1 The same is not true of the real numbers ℝ or even the rational numbers ℚ Given any n  ℕ , we also know that by counting through the numbers, starting at 0, we will eventually reach n. We can count ℕ

Countability A set A is called countable if it is isomorphic with ℕ i.e A is countable if there exists a bijection f: ℕA The cardinality of ℕ, |ℕ|, is denoted by 0 – pronounced aleph zero

Countability of ℤ It is easy to show that the set ℤ of integers is countable. Remember, ℤ = {…,-3,-2,-1,0,1,2,3,…} Define f: ℕ ℤ (as in previous example) by:

Countability of ℤ So, ℤ is countable, and |ℤ|= 0 Claim: f is a bijection f is 1-1 Suppose f(m)=f(n). If f(m)=f(n) is positive, then m=2f(m)=2f(n)=n. If f(m)=f(n) is negative, then m=2f(m)-1=2f(n)-1=n f is onto, by definition Hence f is a bijection So, ℤ is countable, and |ℤ|= 0

Countability and ‘listing’ Sometimes it is difficult to write down the bijection f : ℕA which shows that A is countable The first step in constructing a bijection with ℕ is to show that A can be written as a list Take the integers in the previous example: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ….                  …. 0 -1 1 -2 2 -3 3 -4 4 -5 5 -6 6 -7 7 -8 8 ….

Countability of ℕ  ℕ Recall that ℕ  ℕ is the set {(n,m) : n,m  ℕ} Claim: ℕ  ℕ is countable How can we write ℕ  ℕ as a list? (0,1) (0,2) (0,3) … (0,n) … ? This is no good – we’ll never get to (1,1) for example

Countability of ℕ  ℕ 0 1 2 3 4 5 6 …. 0 (0,0) (0,1) (0,2) (0,3) (0,4) (0,5) (0,6) … 1 (1,0) (1,1) (1,2) (1,3) (1,4) (1,5) (1,6) … 2 (2,0) (2,1) (2,2) (2,3) (2,4) (2,5) (2,6) … 3 (3,0) (3,1) (3,2) (3,3) (3,4) (3,5) (3,6) … 4 (4,0) (4,1) (4,2) (4,3) (4,4) (4,5) (4,6) … :

Countability of ℕ  ℕ So the countability of ℕ  ℕ is demonstrated by the list: (0,0) (1,0) (1,1) (2,0) (2,1) (2,2) (3,0) (3,1) (3,2) … All pairs containing just 0 All pairs containing just 0 and 1 and not in ‘red’ section All pairs containing just 0, 1 or 2 and not in ‘red’ or ‘blue’ sections

Countability of ℚ It is not surprising that ℤ is countable … or that ℕ  ℕ is countable A much more surprising result, demonstrated by the mathematician George Cantor, is that ℚ is countable This is counter-intuitive, but it is true. In other words, in some sense there are ‘no more’ rational numbers than there are natural numbers

Cantor’s Proof of the Countability of ℚ Cantor’s proof is based on a particular ordering of ℚ For each n let Sn be the set of rational numbers x=a/b such that n=max{|a|,b}and such that xSm for m<n (assume a and b have no common factors), so that: S0={0}, S1={-1,1}, S2={-2,-1/2,1/2,2}, S3={-3,-3/2,-2/3,-1/3,1/3,2/3,3/2,3} etc

Countability of ℚ Now list the elements of Sn in order of n: S0 = 0 ... = …

Countability of ℚ Every member of ℚ eventually appears on list. The list is ‘counted’ as follows: S0 = 0 S1 = -1,1 S2 = -2, -1/2, 1/2, 2 S3 = -3, -3/2, -2/3, -1/3, 1/3, 2/3, 3/2, 3 S4 = -4, -4/3, -3/4,-1/4,1/4, 3/4, 4/3, 4 ... = …

Generalisation of Cantor’s Proof Let A={a1,…,aN} be a finite set The set FS(A) of finite sequences of elements of A is countable To construct a proof, let Sn be the set of sequences of elements in A of length n Order Sn ‘alphabetically’ according to the alphabet a1,…,aN

Generalisation of Cantor’s Proof (continued) Now list the sets S0, S1, S2,… Clearly every finite sequence of elements from A eventually appears in the list, and The list can be counted using Cantor’s method

Summary of Lecture 9 Cardinality Countability Cardinality of ℕ, definition of 0 Countability of ℚ