THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2.

Slides:



Advertisements
Similar presentations
COUNTING AND PROBABILITY
Advertisements

Cantor’s Infinities Raymond Flood Gresham Professor of Geometry.
1 COMP 382: Reasoning about algorithms Unit 9: Undecidability [Slides adapted from Amos Israeli’s]
2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
2.1 Sets. DEFINITION 1 A set is an unordered collection of objects. DEFINITION 2 The objects in a set are called the elements, or members, of the set.
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.
Copyright © Cengage Learning. All rights reserved.
EE1J2 – Discrete Maths Lecture 9
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
CHAPTER 4 Decidability Contents Decidable Languages
Chapter 2 The Basic Concepts of Set Theory
Pigeonhole.
Sequence A list of objects arranged in a particular order.
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
Copyright © Cengage Learning. All rights reserved. 3 Differentiation Rules.
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.
2012: J Paul GibsonTSP: Mathematical FoundationsMAT7003/L5- CountingAndEnumeration.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul.
Hawkes Learning Systems: College Algebra
Cardinality of Sets Section 2.5.
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
2.4 Sequences and 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 NATURE OF COUNTING Copyright © Cengage Learning. All rights reserved. 12.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
P.1 Real Numbers. 2 What You Should Learn Represent and classify real numbers. Order real numbers and use inequalities. Find the absolute values of real.
Cantor and Countability: A look at measuring infinities How BIG is big? = a Googol 10 googol = a Googolplex = one Tremilliomilliotrecentrecentre.
Copyright © Cengage Learning. All rights reserved. 2 Limits and Derivatives.
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”
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
A Universal Turing Machine
Relations, Functions, and Countability
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
Chapter 2 Section 2.5 Infinite Sets. Sets and One-to-One Correspondences An important tool the mathematicians use to compare the size of sets is called.
Aim: How can the word ‘infinite’ define a collection of elements?
Copyright © Cengage Learning. All rights reserved.
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.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Copyright © Cengage Learning. All rights reserved. Fundamental Concepts of Algebra 1.1 Real Numbers.
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
THE NATURE OF COUNTING Copyright © Cengage Learning. All rights reserved. 12.
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
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 2.6 Infinite Sets.
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.
THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2.
Infinite sets We say that a set A is infinite if a proper subset B exists of A such that there is a bijection It is easy to see that no set with a finite.
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
A Universal Turing Machine
2.4 Sequences and Summations
Cardinality of Sets Section 2.5.
Lecture 7 Functions.
COUNTING AND PROBABILITY
2 Chapter Numeration Systems and 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:

THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2

2.4 Finite and Infinite Sets

3 Infinite Sets

4 Certain sets, such as and A = {1000, 2000, 3000,...}, have a common property. We call these infinite sets. If the cardinality of a set is 0 or a counting number, we say the set is finite. Otherwise, we say it is infinite. We can also say that a set is finite if it has a cardinality less than some counting number, even though we may not know its precise cardinality.

5 Example 1 – Finding a one-to-one correspondence Which of the following sets can be placed into a one-to-one correspondence? K = {3, 4}, L = {4}, M = {3}, N = {three}, P = { }, Q = {t, h, r, e} Solution: Notice that L = {4} P = { } M = {3} Q = { t, h, r, e } N = {three}

6 Example 1 – Solution We see that L, M, and N all have the same cardinality, and using that knowledge we see that any pair of them can be placed into a one-to-one correspondence; we write L M, L N, and M N. We also see that P and Q can be placed into a one-to-one correspondence. cont’d

7 Infinite set In the late 18th century, Georg Cantor assigned a cardinal Number (pronounced “aleph-naught”) to the set of counting numbers. That is, is the cardinality of the set of counting numbers = {1, 2, 3, 4,...} The set E = {2, 4, 6, 8,...} also has cardinality, since it can be put into a one-to-one correspondence with set : = {1, 2, 3, 4,..., n,...} E = {2, 4, 6, 8,..., 2n,...}

8 Infinite set Notice that all elements of E are elements of the set, and that E . In such a case, we say that E is a proper subset of. Cantor used this property as a defining property for infinite sets.

9 Example 2 – Infinite set Show that the set of integers = {..., –3, –2, –1, 0, 1, 2, 3,...} is infinite. Solution: We can show that the set of integers can be placed into a one-to-one correspondence with the set of counting numbers: = {1, 2, 3, 4, 5, 6, 7,..., 2n, 2n + 1,...} = {0, +1, –1, +2, –2, +3, –3,...,+n, –n,...} Since is a proper subset of, we see that the set of integers is infinite.

10 Infinite set If a set is finite or if it has cardinality, we say that the set is countable. Thus, both the set of counting numbers and the set of integers are countable. A set that is not countable is said to be uncountable. In the example 2 we have seen that and are countable.

11 Example 3 – Show that rationals are countable Show that the set of rational numbers is countable. Solution: First, consider the positive rational numbers and arrange them in rows so that all the numbers with denominators of 1 are written in row 1, those with denominator 2 are written in row 2, and so on. Notice that some numbers are highlighted because those numbers, when reduced, are found somewhere else in the list.

12 Example 3 – Solution We see that every nonnegative rational number will appear on this list. For example, 103/879 will appear in row 103 and column 879. To set up a one-to-one correspondence between the set of nonnegative rationals and the set of counting numbers, we follow the path shown in next figure. cont’d

13 Example 3 – Solution cont’d

14 Example 3 – Solution Now we set up the one-to-one correspondence: (we skip because it is equal to and is already in our list), What we have shown is that the set of positive rational numbers has cardinality. Finally, we use the method shown in Example 2; that is, we let each negative number follow its positive counterpart, so we can extend this correspondence to include all negative rational numbers. Thus, the set of all rational numbers has cardinality and is therefore countable. cont’d

15 Example 4 – Show that reals are uncountable Show that the set of real numbers is uncountable. Solution: In order to prove that the set of real numbers is uncountable, we note that every set is either countable or uncountable. We will assume that the set is countable, and then we will arrive at a contradiction. This contradiction, in turn, leads us to the conclusion that our assumption is incorrect, thus establishing that the set is uncountable. This process is called proof by contradiction.

16 Example 4 – Solution Let’s suppose that is countable. Then, there is some one-to-one correspondence between and, say: Now, if we assume that there is a one-to-one correspondence between and, then every decimal number is in the above list. cont’d

17 Example 4 – Solution To show this is not possible, we construct a new decimal as follows. The first digit of this new decimal is any digit different from the first digit of the entry corresponding to the first correspondence. (That is, anything other than 2 using the above-listed correspondence). The second digit is any digit different from the second digit of the entry corresponding to the second correspondence (4 in this example). Do the same for all the numbers in the one-to-one correspondence. cont’d

18 Example 4 – Solution Because of the way we have constructed this new number, it is not on the list. But we began by assuming that all numbers are on the list (i.e., that all decimal numbers are part of the one-to-one correspondence). Since both these statements cannot be true, the original assumption has led to a contradiction. This forces us to accept the only possible alternative to the original assumption. That is, it is not possible to set up a one-to-one correspondence between and, which means that is uncountable. cont’d

19 Infinite set It can also be shown that the irrational numbers (real numbers that are not rational) are uncountable. Furthermore, the set {x | a  x  b}, where a and b are any real numbers, is also uncountable.

20 Cartesian Product of Sets

21 Cartesian Product of Sets There is an operation of sets called the Cartesian product that provides a way of generating new sets when given the elements of two sets. Suppose we have the sets A = {a, b, c} and B = {1, 2} The Cartesian product of sets A and B, denoted by A  B, is the set of all ordered pairs (x, y) where x  A and y  B. For this example, A  B = {(a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2)} Notice that A  B  B  A.

22 Example 5 – Cardinality of a Cartesian product How many elements are in the Cartesian product of the given sets? a. A = {Frank, George, Hazel} and B = {Alfie, Bogie, Calvin, Doug, Ernie} b. C = {U.S. Senators} and D = {U.S. President, U.S. Vice President, Secretary of State}.

23 Example 5(a) – Solution One of the ways to find a Cartesian product is to represent the sets as an array. Since a Cartesian product can be arranged as a rectangular array, we see that the number of elements is the product of the number of elements in the sets. That is, since | A | = 3 and | B | = 5, we see |A  B| = 3  5 = 15. cont’d

24 Example 5(b) – Solution We are looking for |C  D|, but we see it is not practical to form the rectangular array because | C | = 100 and | D | = 3. We still can visualize the size of the array even without writing it out, so we conclude |C  D| = | C |  | D | = 100  3 = 300 cont’d

25 Cartesian Product of Sets

26 Example 6 – Classify as finite or infinite Classify each of the sets as finite or infinite. a. Set of people on Earth b. Set of license plates that can be issued using three letters followed by three numerals c. Set of drops of water in all the oceans of the world Solution: a. We do not know the size of this set, but we do know that there are fewer than 10 billion people on Earth. If the cardinality of a set is less than a finite number (and 10 billion is finite), then it must be a finite set.

27 Example 6 – Solution b. We can use the fundamental counting principle to calculate the number of possible license plates: 26  26  26  10  10  10 = 17,576,000 Note that each “26” counts the number of letters of the alphabet, and each “10” counts the number of numerals in each position. Since this is a particular number, we see that this set of license plates is finite. c. There is a finite number of drops that make up an ounce, and there are a certain number of ounces in a gallon, and a certain number of gallons in a cubic foot. cont’d

28 Example 6 – Solution The earth will fit entirely inside a cube of a certain size, and if this cube were filled with water, it would contain a finite number of gallons. The number of drops of water in all the oceans of the world is certainly less than this number, and hence the set is finite. cont’d