Math.3336: Discrete Mathematics. Cardinality of Sets

Similar documents
Announcements. CS243: Discrete Structures. Sequences, Summations, and Cardinality of Infinite Sets. More on Midterm. Midterm.

Math.3336: Discrete Mathematics. Chapter 9 Relations

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Math.3336: Discrete Mathematics. Propositional Equivalences

Math.3336: Discrete Mathematics. Proof Methods and Strategy

Math.3336: Discrete Mathematics. Mathematical Induction

Math.3336: Discrete Mathematics. Combinatorics: Basics of Counting

Math.3336: Discrete Mathematics. Applications of Propositional Logic

Math.3336: Discrete Mathematics. Advanced Counting Techniques

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference

Math.3336: Discrete Mathematics. Nested Quantifiers

Functions. Definition 1 Let A and B be sets. A relation between A and B is any subset of A B.

CITS2211 Discrete Structures (2017) Cardinality and Countability

Mathematics 220 Workshop Cardinality. Some harder problems on cardinality.

1.4 Cardinality. Tom Lewis. Fall Term Tom Lewis () 1.4 Cardinality Fall Term / 9

CSE 20 DISCRETE MATH. Fall

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

A Short Review of Cardinality

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

Countable and uncountable sets. Matrices.

Discrete Structures for Computer Science

MATH 3300 Test 1. Name: Student Id:

CSE 311: Foundations of Computing. Lecture 26: Cardinality

1 Partitions and Equivalence Relations

Countable and uncountable sets. Matrices.

Section 7.5: Cardinality

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

ECS 120 Lesson 18 Decidable Problems, the Halting Problem

MATH FINAL EXAM REVIEW HINTS

Extended Essay - Mathematics

Sequences are ordered lists of elements

MATH 201 Solutions: TEST 3-A (in class)

CSE 20 Discrete Math. Winter, January 24 (Day 5) Number Theory. Instructor: Neil Rhodes. Proving Quantified Statements

Section 0. Sets and Relations

Discrete Mathematics 2007: Lecture 5 Infinite sets

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

NOTE: You have 2 hours, please plan your time. Problems are not ordered by difficulty.

Math 105A HW 1 Solutions

Sets and Functions. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Sets and Functions

LECTURE 22: COUNTABLE AND UNCOUNTABLE SETS

Lecture 3: Sizes of Infinity

One-to-one functions and onto functions

Discrete Structures - CM0246 Cardinality

1 Reals are Uncountable

Chapter 20. Countability The rationals and the reals. This chapter covers infinite sets and countability.

SETS AND FUNCTIONS JOSHUA BALLEW

Principles of Real Analysis I Fall I. The Real Number System

Math 4603: Advanced Calculus I, Summer 2016 University of Minnesota Notes on Cardinality of Sets

Iowa State University. Instructor: Alex Roitershtein Summer Exam #1. Solutions. x u = 2 x v

Algorithms: Lecture 2

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

Harvard CS 121 and CSCI E-207 Lecture 6: Regular Languages and Countability

Undecidability. We are not so much concerned if you are slow as when you come to a halt. (Chinese Proverb)

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

Math 320: Real Analysis MWF 1pm, Campion Hall 302 Homework 2 Solutions Please write neatly, and in complete sentences when possible.

Date: October 24, 2008, Friday Time: 10:40-12:30. Math 123 Abstract Mathematics I Midterm Exam I Solutions TOTAL

Countability. 1 Motivation. 2 Counting

Most Merry and Illustrated Proof of Cantor's Theorem on the Countability of Integers (Concise Version)

Name (please print) Mathematics Final Examination December 14, 2005 I. (4)

MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Finite and Infinite Sets

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

In N we can do addition, but in order to do subtraction we need to extend N to the integers

POL502: Foundations. Kosuke Imai Department of Politics, Princeton University. October 10, 2005

Theorems. Theorem 1.11: Greatest-Lower-Bound Property. Theorem 1.20: The Archimedean property of. Theorem 1.21: -th Root of Real Numbers

MATH 13 FINAL EXAM SOLUTIONS

Math 300: Final Exam Practice Solutions

The Different Sizes of Infinity

(a) We need to prove that is reflexive, symmetric and transitive. 2b + a = 3a + 3b (2a + b) = 3a + 3b 3k = 3(a + b k)

Exploring the infinite : an introduction to proof and analysis / Jennifer Brooks. Boca Raton [etc.], cop Spis treści

MATH 2200 Final LC Review

Cardinality of sets. Cardinality of sets

CS 2336 Discrete Mathematics

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

MATH31011/MATH41011/MATH61011: FOURIER ANALYSIS AND LEBESGUE INTEGRATION. Chapter 2: Countability and Cantor Sets

ABOUT THE CLASS AND NOTES ON SET THEORY

Economics 204 Summer/Fall 2011 Lecture 2 Tuesday July 26, 2011 N Now, on the main diagonal, change all the 0s to 1s and vice versa:

Exercises for Unit VI (Infinite constructions in set theory)


Intro to Theory of Computation

Great Theoretical Ideas in Computer Science. Lecture 5: Cantor s Legacy

Today. Wrapup of Polynomials...and modular arithmetic. Coutability and Uncountability.

MAT115A-21 COMPLETE LECTURE NOTES

computability and complexity theory

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Fundamentals of Pure Mathematics - Problem Sheet

MATH 521, WEEK 2: Rational and Real Numbers, Ordered Sets, Countable Sets

Cardinality of Sets. P. Danziger

9.1 HW (3+3+8 points) (Knapsack decision problem NP-complete)

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

CS103 Handout 08 Spring 2012 April 20, 2012 Problem Set 3

Solutions to Tutorial for Week 4

Solution. 1 Solutions of Homework 1. 2 Homework 2. Sangchul Lee. February 19, Problem 1.2

CS 208: Automata Theory and Logic

Homework 3 Solutions, Math 55

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

MATH 137 : Calculus 1 for Honours Mathematics. Online Assignment #2. Introduction to Sequences

Transcription:

Math.3336: Discrete Mathematics Cardinality of Sets Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu Fall 2018 Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 1/19

Assignments to work on Homework #5 due Wednesday, 10/03, 11:59pm No credit unless turned in by 11:59pm on due date Late submissions not allowed, but lowest homework score dropped when calculating grades Homework will be submitted online in your CASA accounts. You can find the instructions on how to upload your homework in our class webpage. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 2/19

Chapter 2 Basic Structures: Sets, Functions, Sequences Chapter 2 Overview Sets The Language of Sets Section 2.1 Set Operations Section 2.2 Set Identities Section 2.2 Functions The Types of Functions Section 2.3 Operations on Functions Section 2.3 Computability Section 2.3 Sequences and Summations* Types of Sequences Section 2.4 Summation Formulae Section 2.4 Set Cardinality Countable Sets Section 2.5 Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 3/19

Revisiting Sets Earlier we talked about sets and cardinality of sets. Recall: Cardinality of a set is number of elements in that set. This definition makes sense for sets with finitely many element, but more involved for infinite sets Agenda: Revisit the notion of cardinality for infinite sets Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 4/19

Section 2.5 Cardinality of Infinite Sets Sets with infinite cardinality are classified into two classes: 1 Countably infinite sets (e.g., natural numbers) 2 Uncountably infinite sets (e.g., real numbers) A set A is called countably infinite if there is a bijection between A and the set of positive integers. A set A is called countable if it is either finite or countably infinite Otherwise, the set is called uncountable or uncountably infinite Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 5/19

Example Prove: The set of odd positive integers is countably infinite. Need to find a function f from Z + to the set of odd positive integers, and prove that f is bijective Consider f (n) = 2n 1 from Z + to odd positive integers We need to show f is bijective (i.e., one-to-one and onto) Let s first prove injectivity, then surjectivity Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 6/19

Example, cont. Prove injectivity of f (n) = 2n 1 Recall: Function is injective if f (a) = f (b) a = b Suppose f (a) = f (b). Then 2a 1 = 2b 1 This implies a = b, establishing injectivity Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 7/19

Example, cont. Prove surjectivity of f (n) = 2n 1 Recall: Function is surjective if for every b B, there exists some a A such that f (a) = b Proof: Let b be an arbitrary positive odd number. Then b = 2k 1 for some k Z +. (Odd number is 2k 1 = 2(k 1) + 1 = 2l + 1 for l = k 1) Pick a = b + 1 2. It is clear that x is a positive integer, and f (a) = b. Thus, f is a surjection onto the set of positive odd integers. Hence, the set of odd positive integers is countably infinite. Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 8/19

Example, cont. Prove surjectivity of f (n) = 2n 1 Recall: Function is surjective if for every b B, there exists some a A such that f (a) = b Proof by contradiction: Suppose there is some odd positive integer b such that x Z + 2x 1 b This implies b+1 2 is not an integer. But since b is an odd positive integer, b + 1 is even Thus, b + 1 is divisible by 2, yielding a contradiction. Since we showed that there is a bijection (namely 2n 1) from positive integers to odd positive integers, the set of odd positive integers is countably infinite Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 9/19

Another Way to Prove Countable-ness One way to show a set A is countably infinite is to give bijection between Z + and A Another way is by showing members of A can be written as a sequence (a 1, a 2, a 3,...) Since such a sequence is a bijective function from Z + to A, writing A as a sequence a 1, a 2, a 3,... establishes one-to-one correspondence Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 10/19

Another Example Prove that the set of all integers is countable We can list all integers in a sequence, alternating positive and negative integers: a n = 0, 1, 1, 2, 2, 3, 3,... Observe that this sequence defines the bijective function: { n/2 if n even f (n) = (n 1)/2 if n odd Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 11/19

Rational Numbers are Countable Not too surprising Z and odd Z + are countably infinite More surprising: Set of rationals is also countably infinite! We ll prove that the set of positive rational numbers is countable by showing how to enumerate them in a sequence Recall: Every positive rational number can be written as the quotient p/q of two positive integers p, q Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 12/19

Rationals in a Table Now imagine placing rationals in a table such that: 1 Rationals with p = 1 go in first row, p = 2 in second row, etc. 2 Rationals with q = 1 in 1st column, q = 2 in 2nd column,... Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 13/19

Enumerating the Rationals How to enumerate entries in this table without missing any? Trick: First list those with p + q = 2, then p + q = 3,... Traverse table diagonally from left-to-right, in the order shown by arrows Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 14/19

Enumerating the Rationals, cont. This allows us to list all rationals in a sequence: 1 1, 2 1, 1 2, 1 3, 2 2, 3 1, 4 1, 3 2,... Hence, set of rationals is countable Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 15/19

Uncountability of Real Numbers Prime example of uncountably infinite sets is real numbers The fact that R is uncountably infinite was proven by George Cantor using the famous Cantor s diagonalization argument This was a shocking result in mathematics in the 1800 s This argument has inspired many similar famous proofs in the theory of computation Brief look at the diagonalization argument Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 16/19

Cantor s Diagonalization Argument For contradiction, assume the set of reals was countable Since any subset of a countable set is also countable, this would imply the set of reals between 0 and 1 is also countable Now, if reals between 0 and 1 are countable, we can list them in a table in some order: Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 17/19

Diagonalization Argument, cont Now, create a new real number R = 0.a 1 a 2 a 3... such that: { 4 dii 4 a i = 5 d ii = 4 Clearly, this new number R differs from each number R i in the table in at least one digit (its i th digit) Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 18/19

Diagonalization Argument, concluded Since R is not in the table, this is not a complete enumeration of all reals between 0 and 1 Hence, the set of real between 0 and 1 is not countable Since the superset of any uncountable set is also uncountable, set of reals is uncountably infinite Instructor: Dr. Blerina Xhabli, University of Houston Math.3336: Discrete Mathematics Cardinality of Sets 19/19