Discrete Mathematics CS 2610

Slides:



Advertisements
Similar presentations
Basic Structures: Functions and Sequences
Advertisements

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.
EE1J2 – Discrete Maths Lecture 9
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 ).
Great Theoretical Ideas in Computer Science.
Functions f( ) = A B Lecture 15: Nov 4.
Sequence A list of objects arranged in a particular order.
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.
CS 2210 (22C:019) Discrete Structures Sets and Functions Spring 2015 Sukumar Ghosh.
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.
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.
Sequences & Summations CS 1050 Rosen 3.2. Sequence A sequence is a discrete structure used to represent an ordered list. A sequence is a function from.
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.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.1 and 7.2.
Mathematical Induction
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?
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.
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.
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
Great Theoretical Ideas in Computer Science about AWESOME Some Generating Functions Probability.
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.
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.
Great Theoretical Ideas In Computer Science
Cardinality with Applications to Computability
CS 2210:0001 Discrete Structures Sets and Functions
2.4 Sequences and Summations
Counting Sets.
Cardinality of Sets Section 2.5.
Countable or Uncountable…That is the question!
Lecture 7 Functions.
Diagonalization Fact: Many books exist.
Discrete Structures for Computer Science
CSE15 Discrete Mathematics 02/27/17
Countable and Countably Infinite Sets
Uncountable sets & fixed points
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
Intro to Theory 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.
Discrete Mathematics CS 2610
Intro to Theory of Computation
Presentation transcript:

Discrete Mathematics CS 2610 February 24, 2009 -- part 3

Cardinality Def.: The cardinality of a set is the number of elements in the set. Def.: Let A and B be two sets. A and B have the same cardinality iff there is a one-to-one correspondence (bijection) between A and B

Countable Sets and Uncountable Sets Def.: Set A is countable if it is finite or if it has the same cardinality as the set of positive integers. Otherwise it is uncountable. (aleph) denotes the cardinality of infinite countable sets Examples: Infinite Countable Sets: N, Z+, Z-, Z Infinite Uncountable Sets: R, R+, R-

Countable Sets and Uncountable Sets How do you demonstrate that a set is countable ? Suppose A is a set. If there is a one-to-one and onto function f : A  Z+, then A is countable. Recall, one-to-one means xy(f(x) = f(y)  x = y) onto means yx( f(x) = y)

Countable Sets and Uncountable Sets Theorem: The set {x | x is an odd postive integer} is countable. Proof: We need a one-to-one correspondence between this set and Z+ 1, 3, 5, 7, 9, … corresponds to a1, a2, a3, a4, a5 … We could also consider f(n) = 2n -1 from Z+ to the set of odd positive integers. Then show that f is one-to-one and show that it is onto. From above, the sequence an = 2n -1 where n = 1, 2, 3, ….

Countable Sets and Uncountable Sets Theorem: The set Z is countable. Proof: List them like this: 0, 1, -1, 2, -2, 3, -3, 4, -4 … Which corresponds to a1, a2, a3, a4, a5, a6 … What we’ve actually done is given the one-to-one correspondence between all integers and the positive integers, i.e., the mapping from Z to Z+ What about an expression for this? f(n) = n/2 when n is even f(n) = -(n-1)/2 when n is odd

Countability Theorem: The set P of all ordered pairs of positive integers (n, m) is countable. Proof: Can we find a one-to-one and onto function from P to Z+?

Countability (1,1) (2,1) (3,1) (4,1) (5,1)  (1,2) (2,2) (3,2) (4,2) (5,2) (1,3) (2,3) (3,3) (4,3) (5,3) (1,4) (2,4) (3,4) (4,4) (5,4) (1,5) (2,5) (3,5) (4,5) (5,5) Note, the positive rational numbers are countable. Just replace m,n with m/n.

Uncountable sets Theorem: The set of real numbers is uncountable. If a subset of a set is uncountable, then the set is uncountable. The cardinality of a subset is at least as large as the cardinality of the entire set. It is enough to prove that there is a subset of R that is uncountable Theorem: The open interval of real numbers [0,1) = {r  R | 0  r < 1} is uncountable. Proof by contradiction using the Cantor diagonalization argument (Cantor, 1879)

Uncountable Sets: R Proof (BWOC) using diagonalization: Suppose R is countable (then any subset say [0,1) is also countable). So, we can list them: r1, r2, r3, … where r1 = 0.d11d12d13d14… the dij are digits 0-9 r2 = 0.d21d22d23d24… r3 = 0.d31d32d33d34… r4 = 0.d41d42d43d44… etc. Now let r = 0.d1d2d3d4… where di = 4 if dii  4 di = 5 if dii = 4 But r is not equal to any of the items in the list so it’s missing from the list so we can’t list them after all. r differs from ri in the ith position, for all i. So, our assumption that we could list them all is incorrect.