Download Discrete Mathematics. Basic Structures: Sets, Functions, Sequences, Sums, and Matrices and more Slides Discrete Mathematics in PDF only on Docsity!
Basic Structures: Sets, Functions,
Sequences, Sums, and Matrices
Chapter 2 Edited by Shih-Tsung Liang
Chapter Summary
- Sets (้ๅ)
- The Language of Sets
- Set Operations
- Set Identities
- Functions (ๅฝๆธ)
- Types of Functions
- Operations on Functions
- Computability
- Sequences and Summations (ๅบๅ่ๅ ็ธฝ)
- Types of Sequences
- Summation Formula
- Set Cardinality (้ๅๅบๆธ)
- Matrices (็ฉ้ฃ)
Sets
- A set is an unordered collection of objects.
- the students in this class
- the chairs in this room
- The objects in a set are called the elements
(ๅ
็ด ), or members of the set. A set is said to
contain its elements.
- The notation a โ A denotes that a is an
element of the set A.
- If a is not a member of A, write a โ A
Describing a Set: Roster Method (็ชฎ่ๆณ)
- S = { a,b,c,d}
- Order not important S = { a,b,c,d} = { b,c,a,d}
- Each distinct object is either a member or not; listing more than once does not change the set. S = { a,b,c,d} = { a,b,c,b,c,d}
- Ellipses (โฆ) may be used to describe a set without listing all of the members when the pattern is clear. S = { a,b,c,d, โฆ, z }
Some Important Sets
N = natural numbers (่ช็ถๆธ)= { 0 ,1,2,3โฆ.} Z = integers (ๆดๆธ) = {โฆ,-3,-2,-1,0,1,2,3,โฆ} Zโบ = positive integers (ๆญฃๆดๆธ) = {1,2,3,โฆ..} R = set of real numbers (ๅฏฆๆธ) R
= set of positive real numbers (ๆญฃๅฏฆๆธ) C = set of complex numbers (่คๆธ) Q = set of rational numbers (ๆ็ๆธ)
Set-Builder Notation
- Specify the property or properties that all members must satisfy: S = { x | x is a positive integer less than 100} O = { x | x is an odd positive integer less than 10} O = { x โ Zโบ | x is odd and x < 10}
- A predicate may be used: S = { x | P( x )}
- Example: S = { x | Prime( x )}
- Positive rational numbers : Q + = { x โ R | x = p/ q, for some positive integers p, q}
Universal Set and Empty Set
- The universal set (ๅฎ้ๅ) U is the set containing everything currently under consideration. - Sometimes implicit - Sometimes explicitly stated. - Contents depend on the context.
- The empty set (็ฉบ้ๅ) is the set with no elements. Symbolized โ
, but {} also used. U Venn Diagram a e i o u V John Venn (1834-1923) Cambridge, UK
Some things to remember
- Sets can be elements of sets.
{{1,2,3}, a, { b,c}}
{N,Z,Q,R}
- The empty set is different from a set containing the empty set. โ
โ { โ
}
Subsets (ๅญ้ๅ)
Definition : The set A is a subset of B , if and only if every element of A is also an element of B.
- The notation A โ B is used to indicate that A is a subset of the set B.
- A โ B holds if and only if is true.
- Because a โ โ
is always false, โ
โ S ,for every set S.
- Because a โ S โ a โ S, S โ S, for every set S.
Showing a Set is or is not a Subset of Another Set
- Showing that A is a Subset of B : To show that A โ B , show that if x belongs to A, then x also belongs to B.
- Showing that A is not a Subset of B : To show that A is not a subset of B , A โ B , find an element x โ A with x โ B. (Such an x is a counterexample to the claim that x โ A implies x โ B .) Examples :
- The set of all computer science majors at your school is a subset of all students at your school.
- The set of integers with squares less than 100 is not a subset of the set of nonnegative integers.
Proper Subsets (็ๅญ้)
Definition : If A โ B , but A โ B , then we say A is a proper subset of B , denoted by A โ B. If A โ B , then is true. Venn Diagram U B A
Set Cardinality
Definition : If there are exactly n distinct elements in S where n is a nonnegative integer, we say that S is finite. Otherwise it is infinite. Definition : The cardinality of a finite set A, denoted by | A |, is the number of (distinct) elements of A. Examples :
- |รธ| = 0
- Let S be the letters of the English alphabet. Then | S | = 26
- |{1,2,3}| = 3
- |{รธ}| = 1
- The set of integers is infinite.
Cartesian Product
- The ordered n-tuple (n- ๅ
็ต ) (a 1 ,a 2 ,โฆ..,a n ) is the ordered collection that has a 1 as its first element and a 2 as its second element and so on until a n as its last element.
- Two n-tuples are equal if and only if their corresponding elements are equal.
- 2 - tuples are called ordered pairs.
- The ordered pairs ( a, b) and ( c,d) are equal if
and only if a = c and b = d.
Cartesian Product
Definition : The Cartesian Product (็ฌๅกๅ
ไน็ฉ)of two sets A and B , denoted by A ร B is the set of ordered pairs (a,b) where a โ A and b โ B. Example : A = { a,b } B = {1,2,3} A ร B = {( a ,1),( a ,2),( a ,3), ( b ,1),( b, 2),( b, 3)} Renรฉ Descartes (1596-1650)